Taking Advantage of the "URL" field for Prowl / Pushover

Ryan McLean mcleanrs-xtension at outlook.com
Sat Apr 21 16:19:16 EDT 2018


For some time I have been wanting to put a physical button outside the house that can control things in the house. Sort of like an Amazon dash button.


I have not succeeded in this quite yet, but today I have come close.


(small diversion)

It would be easy if there were an iBeacon with a button that made it transmit momentarily and/or momentarily change it's UUID.

These come close: https://store.kontakt.io/next-generation/43-bluetooth-tag-s18-3.html

But I would have to write my own iOS app that could receive the button_pressed packet from the beacon and pass that onto Xtension via JSON

(end small diversion)


What I am doing instead is leveraging the "url" field available in Prowl (many of you use) and Pushover (I use - very similar) to send a trigger back to Xtension - making the notification actually interactive.


Here is what I did:

1- I took my notification global script and made a new script with an additional field for URL (I think I could have just made a different script call as well - but for now this was easier)

2- I setup my triggering-event with a URL back into Xtension / JSON interface.

3- Setup Pushover (I don't know if prowl can do the same) to open the URL by default, when provided, from the iOS notification.

4- Success!


What's the use case?

I am going to put an iBeacon in my car. When the iBeacon is tripped I'll get a notification that says something like "Going home?" If I am indeed about to head home I can interact with the notification which will let Xtension know I'll be home soon (and in my case...as soon as the weather warms up...kick the air conditioning on ahed of my arrival).


With the power of Xtension I could setup additional use use cases, triggering notifications, and actions. For example, I may have my "Going Home?" notification only trip if I have recently exited the iBeacon I have at my work desk (and presumably, that means, only trip when I am leaving work and not every other time I arrive at my car).


As with all other things, the possibilities are endless...enjoy!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20180421/34bbd36d/attachment.html>


More information about the XTensionList mailing list