OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) How To: Push notifications for OpenSprinkler Reply To: How To: Push notifications for OpenSprinkler

#67003

Tygerr
Participant

The code needs to be updated for Firmware 2.1.9, since the JSON codes for the rain sensor have changed.

If you edit the ospi_push_notifications.py file, change the following lines:
Line 220:
–Old: if ( enabled[“urs”] == 1):
–New: if ( enabled[“sn1t”] > 0):

Line 236:
–Old: rainSensor = data[“rs”]
–New: rainSensor = data[“sn1”]

Tha fixes the error.

We are currently away till Monday July 21. Orders placed during this time will be shipped on Tuesday July 22. Thank you for your understanding!
This is default text for notification bar