Skip to content

A Shell Script for sending pushsafer.com notifications in SHC Raspberry Pi SmartHome Control.

License

Notifications You must be signed in to change notification settings

appzer/SHC-pushsafer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

SHC-pushsafer

Pushsafer

A Shell Script for sending pushsafer.com notifications in SHC Raspberry Pi SmartHome Control.

Pushsafer make it easy and safe to get push-notifications in real time on your

  • Android device
  • iOS device (incl. iPhone, iPad, iPod Touch)
  • Windows 10 Phone & Desktop
  • Browser (Chrome & Firefox)

Download:

https://github.com/appzer/SHC-pushsafer/

Usage:

In pushsafer.sh replace the variable PRIVATEKEY with your private or alias key.

Copy pushsafer.sh and set permissions

cp pushsafer.sh /usr/bin
chmod 755 /usr/bin/pushsafer.sh

Now you have access from anywhere on this file.

In SHC you call the script as a switching function

pushsafer.sh "My Message" "My Title" "Device" "Icon" "Sound" "Vibration" "URL" "URLTitle" "Time2Live" "Priority" "Retry" "Expire" "Confirm" "Answer" "AnswerOptions" "AnswerForce"

Find API description here at pushsafer api to set up your push notification!

Example:

pushsafer.sh "Motion detected" "SHC" "119" "82" "17" "3" "https://www.pushsafer.com" "Open Pushsafer" "60" "2" "60" "120" "10" "1" "yes|no|maybe" "1"