Fork me on GitHub

pimatic-pushsafer by Kevin Siml (appzer) | github | npm

pimatic-pushsafer

Pushsafer

A plugin for sending pushsafer.com notifications in pimatic.

Forked from and original created by: thexperiments

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 Phone & Desktop
  • Browser (Chrome & Firefox)

Configuration

You can load the backend by editing your config.json to include:

{
  "plugin": "pushsafer",
  "privatekey": "Your20CharPrivateKey"
}

in the plugins section. For all configuration options see pushsafer-config-schema

Currently you can send pushsafer notifications via action handler within rules.

Example:

titleTokens, messageTokens, sound, device, icon, vibration

if it is 08:00 push title:"Good morning!" message:"Time to get out of bed!" sound:"11" device:"312" icon:"4" iconcolor:"#00FF00" vibration:"2" url:"https://www.pushsafer.com" urltitle:"Open Pushsafer.com" time2live:"1000" priority:"2" retry:"60" expire:"600" answer:"1"

in general: if X then push

title:"title of the push notification" message:"message of the notification" sound:"11" device:"312" icon:"4" iconcolor:"#FF0000" vibration:"2" url:"https://www.pushsafer.com" urltitle:"Open Pushsafer.com" time2live:"60" priority:"2" retry:"60" expire:"600" answer:"1"

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

Plugin Config Options

Pushsafer.com config options
OptionDescriptionDefault
privatekey
string
Pushsafer private key
""
title
string
Title for the notification
""
message
string
Message for the notification
""
sound
string
Sound for the notification, see https://www.pushsafer.com/en/pushapi
"0"
icon
string
Icon for the notification, see https://www.pushsafer.com/en/pushapi
"1"
iconcolor
string
Icon Color, leave empty as default or a Hexadecimal Colorcode, Example: #FF0000
""
vibration
string
Vibration for the notification, see https://www.pushsafer.com/en/pushapi
""
url
string
An URL or URL Scheme see https://www.pushsafer.com/en/url_schemes
""
urltitle
string
The URLs title
""
time2live
string
Integer number 0-43200: Time in minutes, after which message automatically gets purged.
""
priority
string
Integer number -2, -1, 0, 1, 2
""
retry
string
Integer number 60-10800: Time in seconds, after the message is resend.
""
expire
string
Integer number 60-10800: Time in seconds, after retry is canceling.
""
answer
string
Integer number 1 = answer is possible or 0 = answer is not possible.
""
device
string
device or device group id to send the notification to
""
pimatic-pushsafer is written by Kevin Siml (appzer)