Forum Replies Created
-
AuthorPosts
-
Chester CorcosParticipantI think that’s a good idea, Ray. This will require an update to the firmware though, not the weather api. The controller needs to keep track of the evaporation every day and then when it comes to water, it will simply calculate how much has evaporated compared to the baseline – an average would work just fine. This is a much better way of doing this…
Chester CorcosParticipant(blank message because I forgot to check email replies)
Chester CorcosParticipantHey @davemiedema, did you end up getting around to this?
Chester CorcosParticipanthmm. this only seems to be a problem if you turn it on more than once.
`
# This will not show up in the logs
curl ‘http://192.168.1.79/cm?pw=xxxx&sid=0&en=1&t=60’
sleep 10
curl ‘http://192.168.1.79/cm?pw=xxxx&sid=0&en=1&t=60’ # extend another 60 seconds
sleep 10
curl ‘http://192.168.1.79/cm?pw=xxxx&sid=0&en=0’# This will show up in the logs.
curl ‘http://192.168.1.79/cm?pw=xxxx&sid=1&en=1&t=60’
sleep 10
curl ‘http://192.168.1.79/cm?pw=xxxx&sid=1&en=0’
`
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 🙂
Chester CorcosParticipantOk. I’m starting to see how this works. I just need to do something here:
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?
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
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 🙏
-
AuthorPosts