June 29, 2016 at 10:41 am #3580
As I read here: https://pushover.net/api it`s possible to send messages to specified devices.
Unfortunately in the Pulse-Station Blockly for Pushover I don`t see this possibility.
Is there a workaround?
Why I need this?
As long as I work on new scences, I don`t want to receive the test-messages at all devices, but only e.g. at my mobile… (My wife got angry with me, because the got all messages at her mobile too ;-))
AndiJune 29, 2016 at 3:27 pm #3584
You can use a blocky custom PHP block to send the Pushover messages in a custom way.
<?php curl_setopt_array($ch = curl_init(), array( CURLOPT_URL => "https://api.pushover.net/1/messages.json", CURLOPT_POSTFIELDS => array( "token" => "APP_TOKEN", "user" => "USER_KEY", "message" => "hello world", ), CURLOPT_SAFE_UPLOAD => true, )); curl_exec($ch); curl_close($ch);
You can then set custom parameters any way you prefer 🙂
LauraJuly 4, 2016 at 2:15 pm #3593
Thanx a lotJuly 4, 2016 at 3:14 pm #3594
Did you manage to get it to work?
Feel free to share the code back 🙂
LauraJuly 5, 2016 at 12:52 pm #3596
It´s exactly like you said:
curl_setopt_array($ch = curl_init(), array(
CURLOPT_URL => “https://api.pushover.net/1/messages.json”,
CURLOPT_POSTFIELDS => array(
“token” => “APP_Token”,
“user” => “USER_KEY”,
“device” => “DJ-mobile”,
“sound” => “alien”,
“message” => “Test”,
CURLOPT_SAFE_UPLOAD => true,
APP_Token = Your APP-Key from https://pushover.net/apps/
User_key = Your User-KEy from https://pushover.net/
device = Device-Name from https://pushover.net/
sound = from https://pushover.net/api#sounds
Maybe you can pimp the Pushover-Blockly with “device” as a free field for the next update?
🙂July 5, 2016 at 4:00 pm #3597
Added to the ideas list.
LauraJanuary 8, 2017 at 1:33 pm #4039
anything new about this topic?
Btw: in the sound DDL “none” is missing, too.January 9, 2017 at 12:08 am #4041
I’ve looked into the code and:
It’s compiled and encrypted, I cannot change it
This means I cannot add the sound and I cannot add a device specific message.
What I can do is completely rewrite it from scratch, which shouldn’t be too difficult, it just takes time.
I’m only now starting to figure out how to add custom blocky blocks inside PulseStation, so I can get started on that as well.
Nothing I can’t solve, just takes a lot more time for a free hobby project.
K.RensJanuary 9, 2017 at 11:43 am #4045
Thanx for answer.
Unfortunately I cannot programm Blocky until now….
So in that point I cannot help you 🙁January 11, 2017 at 12:11 am #4053
But it works with the custom php blocky block, right?
You should be able to already do all you want untill we rewrite the full code?
K.RensFebruary 12, 2017 at 6:24 pm #4143
I took a little workaround:
1) Calling Scene:
2) Called Scene
Unfortunately Pulse-Station “forgets” the variables, so I have to save them for using them at the called Scene.
AndiFebruary 13, 2017 at 7:56 pm #4144
Koen told me that he uses for this the virtual devices LOV. With them you can use up to 4 values.
I think this should be another way:
1) Create a virtual LOV device (e.g. “Pushover”)
2) Calling Scene:
3) Called Scene:
Feel free to give some comments.
You must be logged in to reply to this topic.