Hi guys!
Need your help to send Push notifications on WindowsPhone for
confirm Bluetooth Presence Detection.
I use SuperToasty: http://www.supertoasty.com/ (http://www.supertoasty.com/)
Simple GET request (with optional web-based image)
http://api.supertoasty.com/notify/{DEVICEID}?title={TITLE}&text={TEXT}&sender={SENDER}&image={IMAGEURL}
where:
{} = DEVICEID your device ID
{TITLE} = the post title
{SENDER} = the original sender or source of the notification
IMAGEURL {} = fully-qualified url picture (http or https only) [optional]
Is it possible to tell me how to do this?
#--------------------------------
# Gestion de présence smartphone
define Alex_Nokia930 PRESENCE local-bluetooth e8:15:0e:48:37:6b 10 10
define Sakina_S5 PRESENCE local-bluetooth e4:12:1d:23:8d:a0 10 10
attr Alex_Nokia930 event-on-change-reading state
define nokia_present_Notify notify Alex_Nokia930:present {fhem("set Notifications msg 'FHEM' 'Présent' '' 0 ''")}
define nokia_absent_Notify notify Alex_Nokia930:absent {fhem("set Notifications msg 'FHEM' 'Absent' '' 0 ''")}
Thank you very much for your help
I neither have a Windowsphone nor do I have any knowhow on that supertoasty app, but your request could be solved with the GetHttpFile routine in Perl. See here:
http://www.fhemwiki.de/wiki/HTML_Aufruf_senden (http://www.fhemwiki.de/wiki/HTML_Aufruf_senden)
Given the API below, that should be pretty self-explanatory:
define html_call notify myphone:present.* { GetHttpFile("api.supertoasty.com", "/notify/{DEVICEID}?title={TITLE}&text={TEXT}&sender={SENDER}&image={IMAGEURL} ") }