OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › How To: Push notifications for OpenSprinkler
Tagged: qu
- This topic has 54 replies, 1 voice, and was last updated 5 years, 12 months ago by
Tygerr.
-
AuthorPosts
-
September 11, 2017 at 9:21 am #47664
PatParticipantThe github link in the first post has very detailed instructions. https://github.com/drsprite/OpenSprinkler-Push-Notifications
Further, OpenSprinkler has something built in, too. https://openthings.freshdesk.com/support/solutions/articles/5000716372-creating-an-ifttt-key-and-applet
I can’t speak to the level of detail that the built in function has compared to the script we’ve been running for the last couple of years.
September 11, 2017 at 3:25 pm #47668
middleseaParticipantFor those interested in pushing notifications to Telegram via IFTTT, this is an outline of how I do it:
1. First you need to create a telegram bot. You can find many detailed guides on how to do this by searching.
2. Find either your telegram ID # or add your bot to a group and find the group ID. Again you can find out how to get those numbers by searching.
3. Create a IFTTT Webhooks applet and choose receive web request with event name “sprinkler”
4. In the url field put “https://api.telegram.org/bot<YOUR BOT KEY HERE>/sendMessage”
5. Choose method “POST”
6. Choose content type “application/json”
7. The Body should look something like this:{ “chat_id”: “<YOUR TELEGRAM USER # or GROUP ID #>”, “text”: “<Whatever Text or emojis you want here> {{Value1}}” , “disable_notification”: “true”}
The disable notification part can be removed if you want to have audible notifications, personally I don’t want to be beeped at about sprinklers..
Also you need to enable IFTTT integration in Open Sprinkler.
Cheers
January 30, 2018 at 3:02 am #48804
wifi75ParticipantHello IFTTT work, very good!
But is possible translate it in italian language?ses the atthachment
Attachments:
October 1, 2018 at 2:27 pm #52855
chochyParticipantHi Pat,
Thanks for your hard work on this, it works great! I’m currently using your python script with pushover. I’m wondering if you could add an option to be notified when a rain delay is activated or deactivated. I don’t use a rain sensor, I use the weather adjustment method, so I don’t get notifications when it rains. Thank you.
June 26, 2020 at 4:23 am #67003
TygerrParticipantThe 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.
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › How To: Push notifications for OpenSprinkler
