Send Pushover notifications


#5

Bookmarking for future looking into


#6

while pushover looks potentially useful, is this any different from sending push notification to contacts from webcore directly?

thanks!


Code review wanted: notification suite with @recipients, urgency levels, repeating, and presence-based message queuing
#7

worked great

define
const string token = ‘myAppKeyWentHere’;
const string user = ‘myUserKeyWentHere’;
string message = ‘hello world’;
string sound = ‘tugboat’;
string priority = 0;
end define;

execute
Make a POST request to https://api.pushover.net/1/messages.json with type FORM and data {token,user,message,sound,priority};
end execute;

Link for more info on pushover api

PUSHOVER SOUNDS

pushover - Pushover (default)
bike - Bike
bugle - Bugle
cashregister - Cash Register
classical - Classical
cosmic - Cosmic
falling - Falling
gamelan - Gamelan
incoming - Incoming
intermission - Intermission
magic - Magic
mechanical - Mechanical
pianobar - Piano Bar
siren - Siren
spacealarm - Space Alarm
tugboat - Tug Boat
alien - Alien Alarm (long)
climb - Climb (long)
persistent - Persistent (long)
echo - Pushover Echo (long)
updown - Up Down (long)
none - None (silent)

also I did have to use forms as Ipaterson said above


#8

you can send different priorities and sound, 0 is default normally used, but say if you made it ‘1’, it would bypass the quit times you set in app, a pri 2 (emergency) would keep resending until you acknowledge you got msg in the client app

mostly just a preference, been using for years and has been very reliable

the cost is
" $4.99 USD once, per-platform (iOS, Android, Desktop)"

not per device, so in the last couple years I have used, it cost me about $10 as I registered to use on windows and Android, if I wanted to add iphones, would cost me another 4.99


#9

ahh, thats nice specially on an iphone. with ios 11 apple now generously allows max of 10 repeats for alerts. why they couldnt make “till read” is still a mystery to me. though if my phone is on silent iphones emergency bypass for certain contacts still lets the alerts come through, though i am guessing apple wouldnt allow that for any non-apple apps.

thank you.


#10

This is a notification piston I never completed, although looking over it it should work, it includes a PushOver notification will response checking and fall back.


Pushbullet Capability?
#11

thanks like the fallback idea

fyi: your keys were in that import, might want to remove those


#12

ended up using this, changed the sound to ‘bike’ though

also the anonymizer changed the link, will need to use https://api.pushover.net/1/messages.json vs the webcore.co

thanks everyone for your help


#13

Don’t worry keys are long since regenerated, I mess around way too much so regenerate keys a lot!


#14

Just spotted this thread and thought I’d give it a try.
Put the pushover url in as instructed.
Should it do anything else apart from say which door has been opened?
Is there something else I need to do?
Edit. I see what I’m missing.
Edit2. Signed up to pushover. Input user and token but no sound generated. Any ideas?


#15

Used email address as user.
Used the token in the app but I’m getting the following error.


#16

You need to add a new application in pushover then use the that as the token and your user key as user, email address is not used anywhere.


#17

@ady624 they do have an open API. This could be a cool direct intrgration


#18

the “Your User Key” is on the main page of https://pushover.net/ when you log in

the app key “API Token/Key” is on the application you create “Your Applications (Create an Application/API Token)” on same page

you will also need to install the pushover app on your phone if not already (for that you use the login information, not tokens) :slight_smile:

when I created the app in pushover website, I used this for icon, call the app something like MySmartThingsApp, creating different apps for different uses allows you to use different icons based on what is sending the push, for example my uptimerobot alerts use their icon, helps to visually see where from

smartthings

is confusing sense

token = app token
user = user token


#19

@John68 you have posted very helpful information on this thread about how to use pushover with webcore. it would be great if you took the relevant parts from those posts and made one post in the examples categories on how to use pushover. users might find it easier to follow and find with search.

thank you.


#20

yep, can do that


#21

“Should it do anything else apart from say which door has been opened?”

I should of added, in the sample, I sent a msg to my sonos speakers and a pushover alert

could remove the sonos speakers part if just testing the pushover stuff


#22

I moved this into feature suggestions category. But,@John68 and/or @ipaterson if you’re willing to do a single write up and/or video tutorial, this would be a big community asset, and that would have a great home in the tutorials category!


#23

Thanks @John68, looks very promising.


#24

I am just learning myself, ipaterson was the one that came up with the way to make it happen