Regarding this part of the code:
Require 'ssl.https'
Local pushover_url = 'https://api.pushover.net/1/messages.json'
In this line, "pushover_url" this direction from where was taken?
Well I already have the account in pushover, and I got the key and the token but it still does not let me send messages from the script.
Thank you.
17.04.2017, 14:48 (This post was last modified: 17.04.2017, 14:49 by Erwin van der Zwart.)
Hi,
You need to create a application on the website of pushover and put the generated application token in the script and you can use the phone app, in the app you see your user token, this one must also be put in the script.
After both keys are filled in you should be able to receive push messages on your phone.
30.01.2018, 18:02 (This post was last modified: 30.01.2018, 20:28 by Keitz.)
I will send a jpeg file attachments with pushover. But I do not know how.
Can anybody help me ?
i have tried this :
local data_str = 'token=****************&user=*******************&device=gsm&message=snapshot.jpeg&attachment=' .. image .. '&title=LogicMachine&sound=bike&priority=0'
local res, code, headers, status = ssl.https.request(pushover_url, data_str)
I receive a message with an icon of a image but no my image is not there.
Hi Daniel,
I have been using pushover for several months now and am sending more than 10.000 messages a month using the LM5 in my KNX-system. Since the number of messages is too (limit of 7.500) high I use different pushover-applications to separate the messages (weather, heating, alarmsystem, ventilation, etc...). It also allows formatting in the messages (I included a screendump from my ipad). Apart from that it also allows for priority-messaging: most of my message are just logging (low priority), you can elevate priority level so a pop-up box shows f.e. when an alarm is triggered.
I did not know that it also allows for sending of attachments - apparently since mid january... This was for me the only thing still missing since I want to send pics taken by my security cams.
So I do think that the pushover platform still has some advantages...maybe some good ideas for your next version...
Keep up the good work, still loving my LM.
Thanks, Bart
(30.01.2018, 18:02)Keitz Wrote: I will send a jpeg file attachments with pushover. But I do not know how.
Can anybody help me ?
i have tried this :
local data_str = 'token=****************&user=*******************&device=gsm&message=snapshot.jpeg&attachment=' .. image .. '&title=LogicMachine&sound=bike&priority=0'
local res, code, headers, status = ssl.https.request(pushover_url, data_str)
I receive a message with an icon of a image but no my image is not there.
[ raw binary data of image file here ]
----abcdefg--
Hi Keitz,
I am very much interested in this feature also...
This is the link with some more info: https://pushover.net/api#attachments
Apparently it needs some sub-headers to identify what type of image.
Don't know on how to implement it in the existing code.
Maybe admin, Daniel or Erwin can have a look...
Thanks, Bart
Try this, I've tested it with nginx and apache so other servers might reject this request. Fill params table with your post arguments, filedata variable should contain binary data of your jpeg image, set request url as needed.
(01.02.2018, 13:09)admin Wrote: Try this, I've tested it with nginx and apache so other servers might reject this request. Fill params table with your post arguments, filedata variable should contain binary data of your jpeg image, set request url as needed.
(01.02.2018, 13:09)admin Wrote: Try this, I've tested it with nginx and apache so other servers might reject this request. Fill params table with your post arguments, filedata variable should contain binary data of your jpeg image, set request url as needed.