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

Tagged: 

Viewing 5 posts - 51 through 55 (of 55 total)
  • Author
    Posts
  • #47664

    Pat
    Participant

    The 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.

    #47668

    middlesea
    Participant

    For 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

    #48804

    wifi75
    Participant

    Hello IFTTT work, very good!
    But is possible translate it in italian language?

    ses the atthachment

    • This reply was modified 2 years, 5 months ago by wifi75.
    • This reply was modified 2 years, 5 months ago by wifi75.
    • This reply was modified 2 years, 5 months ago by wifi75.
    #52855

    chochy
    Participant

    Hi 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.

    #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.

Viewing 5 posts - 51 through 55 (of 55 total)
  • You must be logged in to reply to this topic.

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