OpenSprinkler Forums OpenSprinkler Unified Firmware Wunderground, CA Water Restrictions Reliability Reply To: Wunderground, CA Water Restrictions Reliability

#41028

DaveC
Participant

I don’t live in CA but I’ve been following this thread. I’ve integrated OS into an automation app so I’m interested in the reliability of the device and getting info that helps users know when something is not working as expected. I don’t have a solution but here’s some info on how to get current rain delay info (and a suggestion for Ray).

Relative to seeing rain delay events, I assume you know that you can see historical ‘Rain Delay End Events’ in the log file which show what the duration was. I know this works for manually created rain delays. I would think it would be true for auto set delays too but have not tested. Have you’ve seen some expected auto rain delay events in the log file? For troubleshooting problems like this it would be good of the log file contained an event for when the delay started and what the duration will be (Suggestion).

Current rain delay info is available from the API. You can issue API commands from a web browser. The command would look like:
http://192.168.1.80/jc?/pw=%5Bwhatever your MD5 hashed pwd is], replacing 192.168.1.80 with you OS’s IP address
The response will contain info that tells you if rain delay is in effect and when it will end (described in the API doc).

An example…
Command:
http://192.168.1.80/jc?/pw=944c6d5d72868e442a3dda88297ac500
Response:
{“devt”:1450337786,”nbrd”:3,”en”:1,”rd”:1,”rs”:0,”rdst”:1450380976,”loc”:”Ault, Colorado”,”wtkey”:””,”sunrise”:438,”sunset”:994,”eip”:1089139017,”lwc”:1450335543,”lswc”:1450335543,”lrun”:[9,7,376,1450337777],”sbits”:[0,0,0,0],”ps”:[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],”wto”:{}}

For Rain Delay;
“rd”:1 means rain delay in effect (0 would be no rain delay)
Rdst”: 1450380976 is the stop time. It’s in epoch format. There are converters in excel or you can subtract the value in “devt” from it. The result will be the number of seconds left in the current delay (devt = the current time).

HTH,
Dave