Guide - How to use Pushover notifications with Domoticz via bash
Posted: Saturday 13 January 2018 12:02
As the current implementation of the Pushover notification option in Domoticz is causing Domoticz to crash for me (Version: 3.8805) I have created an alternate method for using Pushover notifications with Domoticz (Linux only):
1) Create a bash script somewhere on your system containing:
The token and user you need to enter are the exact same that you would put into the Domoticz Pushover notification settings.
2) In Domoticz settings on the Notifications tab make sure Pushover is disabled, then enable "Custom HTTP/Action:"
Fill out the settings as below changing the path to the path of your bash script as necessary:
Press "Test" and you should get a notification on your phone then don't forget to press "Apply Settings" at the top of the page.
Done
1) Create a bash script somewhere on your system containing:
Code: Select all
#!/bin/bash
curl -s --max-time 60 -F "token=ENTERYOURTOKEN" -F "user=ENTERYOURUSER" -F "title=$1" -F "message=$2" https://api.pushover.net/1/messages.json &
2) In Domoticz settings on the Notifications tab make sure Pushover is disabled, then enable "Custom HTTP/Action:"
Fill out the settings as below changing the path to the path of your bash script as necessary:
Code: Select all
script:///root/scripts/pushover/pushover.sh "#SUBJECT" "#MESSAGE"
Done
