OpenSprinkler › Forums › Third-Party Software › Integration with Davis Weather Station?
Tagged: Weather adjustment
- This topic has 6 replies, 2 voices, and was last updated 1 year ago by Chester Corcos.
-
AuthorPosts
-
December 18, 2023 at 8:48 pm #77769
Chester CorcosParticipantI’m thinking about using a David Weather Station to supply all the necessary measurements for evapotranspiration adjustment.
Has anyone done something like this?
December 19, 2023 at 10:50 am #77771
RayKeymasterI believe this has been implemented by @rmloeb. You can check it on the openSprinkler-weather main github page:
https://github.com/OpenSprinkler/OpenSprinkler-Weather
search ‘Davis’ you will find the link.January 14, 2024 at 12:43 am #77920
Chester CorcosParticipantIt looks like the code that fetches is here: https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/613efae85660d8fbb5875980ea9675bff51e5902/weather.cpp#L133-L147
I could use some help figuring it out though 🙏
January 15, 2024 at 3:27 pm #77919
Chester CorcosParticipantHey there, so I have my weather station set up. Now that I’m digging deeper into that github repo you sent me, it just seems a bit too complicated. I don’t want to connect WeatherLink to Wunderground… I have my weather conditions on my local network pretty simply:
`
❯❯❯ curl -X GET -H “application/json” http://weatherlinklive-719e35.local/v1/current_conditions
{“data”:{“did”:”001D0A719E35″,”ts”:1705210312,”conditions”:[{“lsid”:690486,”data_structure_type”:1,”txid”:2,”temp”: 46.9,”hum”:90.9,”dew_point”: 44.4,”wet_bulb”: 45.5,”heat_index”: 46.9,”wind_chill”: 46.0,”thw_index”: 46.0,”thsw_index”: 44.0,”wind_speed_last”:4.00,”wind_dir_last”:130,”wind_speed_avg_last_1_min”:2.75,”wind_dir_scalar_avg_last_1_min”:135,”wind_speed_avg_last_2_min”:2.56,”wind_dir_scalar_avg_last_2_min”:137,”wind_speed_hi_last_2_min”:6.00,”wind_dir_at_hi_speed_last_2_min”:118,”wind_speed_avg_last_10_min”:3.18,”wind_dir_scalar_avg_last_10_min”:128,”wind_speed_hi_last_10_min”:8.00,”wind_dir_at_hi_speed_last_10_min”:136,”rain_size”:1,”rain_rate_last”:0,”rain_rate_hi”:0,”rainfall_last_15_min”:0,”rain_rate_hi_last_15_min”:0,”rainfall_last_60_min”:1,”rainfall_last_24_hr”:39,”rain_storm”:39,”rain_storm_start_at”:1705158841,”solar_rad”:0,”uv_index”:0.0,”rx_state”:0,”trans_battery_flag”:0,”rainfall_daily”:39,”rainfall_monthly”:39,”rainfall_year”:39,”rain_storm_last”:null,”rain_storm_last_start_at”:null,”rain_storm_last_end_at”:null},{“lsid”:690482,”data_structure_type”:4,”temp_in”: 68.3,”hum_in”:42.6,”dew_point_in”: 44.7,”heat_index_in”: 66.5},{“lsid”:690481,”data_structure_type”:3,”bar_sea_level”:30.024,”bar_trend”:-0.006,”bar_absolute”:29.855}]},”error”:null}%
`
I discovered the /su url from another discussion <https://opensprinkler.com/forums/topic/weather-server-call-failures/> and I can easily run a little server on my raspberry pi to proxy the request into the desired format. Is there any documentation about this though? What request is OpenSprinkler sending to get the weather and what should the response look like?
Thanks,
Chet
January 16, 2024 at 6:34 pm #77929
Chester CorcosParticipantI’m trying to reverse engineer the endpoint by setting up a local web server and see what gets requested, but it doesn’t seem to work.
when I go to /su url and set the weather url to my local server, it returns {“result”:2,”item”:””} and when I go back, nothing changed and no requests were made…
Any ideas?
January 16, 2024 at 7:12 pm #77931
Chester CorcosParticipantOk. I’m starting to see how this works. I just need to do something here:
January 17, 2024 at 5:20 pm #77937
Chester CorcosParticipantHey Ray! I created PR here that uses my weather station! https://github.com/OpenSprinkler/OpenSprinkler-Weather/pull/146
My entire OpenSprinkler system with ETo is now able to run without an internet connection 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Third-Party Software › Integration with Davis Weather Station?