Guide - How to use Pushover notifications with Domoticz via bash

All kinds of 'OS' scripts
Post Reply
ben53252642
Posts: 364
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

Guide - How to use Pushover notifications with Domoticz via bash

Post by ben53252642 » Saturday 13 January 2018 13: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:

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 &
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:

Code: Select all

script:///root/scripts/pushover/pushover.sh "#SUBJECT" "#MESSAGE"
pushover domoticz http action.PNG
pushover domoticz http action.PNG (76.29 KiB) Viewed 568 times
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 :D

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest