Originally posted by kideon
View Post
Announcement
Collapse
No announcement yet.
HS3 Pushover Plugin
Collapse
X
-
-
That sounds like a plan, if I could make a suggestion I wonder if it is possible to expand the triggers slightly, so that there is on message received, message priority, message (body/title) contains and so on?
The other suggestion would be that it would be great if there was a script command which just grabbed the latest message (e.g. URL and so on) that way you could just do a &hs.plugin("Pushover",DeviceName) style call which would return an object with the various components e.g. (1) = title, (2) = message, (3) = priority, (4) = url title, (5) = url and so on. I guess the other way would be to put it all into some devices, but it would be nice to be able to see the URL, message title, message body and so on for various scripting.
I hope I am not pushing the suggestion here, but even with HS integration through IFTTT (which to my knowledge does not have receive support, only push) I think triggers for Pushover would still really add value to the plugin.
My programming is not 100%, and I am sure you are miles ahead of me but if you need any help please yell out and if there is anything I can do I would be happy to. I was thinking about having a go at something like this and storing the received messages in an structured collection which could be used to see the messages received and be used to process however I don't want to duplicate if not required.
Many thanks for the plugin as well, it has been running very happily in the background of my system with a grand total of zero issues, I love it when things just work!
Comment
-
Originally posted by mrhappy View PostI'll take a look at this tomorrow compared with hs2, I didn't think there was any change here with ref to the api key. As I wrote the hs2 one on the hoof so to speak with no real planning I know I ended up confused in places. Unfortunately if this is the case then the more I think about it the more I think I can't really now add an event action to specify an api because people may have hundreds of events already set up to send messages and I run the risk of breaking existing events.
The best I could suggest would be to perhaps look at a script to send the messages instead of the plugin.
[Clients]
Client1=thedevicekeygoeshere, thealternativeapikeygoeshere
In this way, you could parse the ini entry, and the first element will always be the device key. If the second element doesn't exist, then the default api key will be used, but if it is defined, then the alternative one will be used.
I know I could resurrect my old script from HS2, from before using your plugin, but I like the plugin, so hoping you will add this.
Comment
-
Being able to act based on the content of the message would be good. Ittt is handicapped in some ways that homeseer can remedy. For example IDT can only email one registered email address and the same for sms. Ittt could trigger pushover which triggers homeseer which can then do about anything
Comment
-
Originally posted by travisdh View PostIf you need any help let me know I have not got websockets going but did get a rough proof of concept working with event triggers for priority, title contains and body contains triggers
Some of the classes in the System.Net.WebSockets namespace are supported on Windows 7, Windows Vista SP2, and Windows Server 2008. However, the only public implementations of client and server WebSockets are supported on Windows 8 and Windows Server 2012. The classes and class elements in the System.Net.WebSockets namespace that are supported on Windows 7, Windows Vista SP2, and Windows Server 2008 are abstract classes. This allows an application developer to inherit and extend these abstract classes with an actual implementation of client WebSockets.
Comment
-
The web sockets does look like a giant pain lol, if it is not possible I wonder if it is easier to not be realtime, but go on a timer and just check / fetch messages rather than be a push service specifically.
Not ideal, but then maybe the timer can be set for every 10 - 30 minutes which should not be too much of a burden on their servers, and still enough time to trigger for non-essential functions.
Comment
-
Originally posted by travisdh View PostThe web sockets does look like a giant pain lol, if it is not possible I wonder if it is easier to not be realtime, but go on a timer and just check / fetch messages rather than be a push service specifically.
Not ideal, but then maybe the timer can be set for every 10 - 30 minutes which should not be too much of a burden on their servers, and still enough time to trigger for non-essential functions.
The stuff I did get working was actually all in a script and I think a script is a much more appropriate solution, everything apart from a native triggers screen can be done by a script. If I was to do it in a plugin then I would be required to handle peoples usernames/passwords and store them for a time whilst I was registering for the secret key. Whilst I have no sinister intentions if I was to do this in a plugin then no one knows that I am not siphoning off these usernames/passwords for less well meaning intentions, it is something I am very wary of. If this was instead handled in a script then people could see exactly what is being done with this information and be happier knowing that these usernames/passwords are not being uploaded somewhere else. I can put together a script if that would help but for the time being I do not think I am going to make it part of the plugin.
Comment
-
Thanks so much for the multiple application support.
Is it possible to allow replacement variables or similar functionality to the events so that the sound used, or the message to be sent comes from the value in another device? Then I could allow my HSTouch clients to have a selector box for various events, and people in the house could decide what sound they want for that notification.Yeah, I know I can do it all in a script, but would be nice in the plugin.
Comment
-
Originally posted by Automated View PostThanks so much for the multiple application support.
Is it possible to allow replacement variables or similar functionality to the events so that the sound used, or the message to be sent comes from the value in another device? Then I could allow my HSTouch clients to have a selector box for various events, and people in the house could decide what sound they want for that notification.Yeah, I know I can do it all in a script, but would be nice in the plugin.
I'm a bit confused about the sound being a replacement variable - I think the answer is no because the event drop down is populated when the plugin loads because Pushover need me to query and download the list of sounds (as it is possible that they may increase the number of sounds at some point). I need to use a drop down list to try and force people along the road of only using a sound that Pushover actually have, I could have a text box and then use a replacement variable but from a user interface point of view I was always taught if the input was to be a selection of known values then you should not have any ability to introduce unknown values (ie use a selector rather than a text box where users can write any old rubbish in the box). I think a script is the way to solve this.
Albeit I appreciate that in scripting you can send whatever you want to the plugin but people who are using this method in scripting should already have enough knowledge to work out if they are sending incorrect information to the plugin.
Comment
-
Originally posted by mrhappy View PostNo worries, I do need to fix up those couple of issues you said about.
I'm a bit confused about the sound being a replacement variable - I think the answer is no because the event drop down is populated when the plugin loads because Pushover need me to query and download the list of sounds (as it is possible that they may increase the number of sounds at some point). I need to use a drop down list to try and force people along the road of only using a sound that Pushover actually have, I could have a text box and then use a replacement variable but from a user interface point of view I was always taught if the input was to be a selection of known values then you should not have any ability to introduce unknown values (ie use a selector rather than a text box where users can write any old rubbish in the box). I think a script is the way to solve this.
Albeit I appreciate that in scripting you can send whatever you want to the plugin but people who are using this method in scripting should already have enough knowledge to work out if they are sending incorrect information to the plugin.
No worries...I usually end up with scripting certain things like that since we like a lot of customization and dynamic like behavior controlled through the HSTouchPad screens.
Comment
-
Not working
I can't seem to get this pushover plugin to work. I am able to receive messages coming from the pushover website but I am NOT able to receive messages coming from HomeSeer via plugin. I enabled developer mode and here's what I see:
[12/13/2014 3:23:13 PM] *********
[12/13/2014 3:23:13 PM] HandleAction Called
[12/13/2014 3:23:13 PM] PushMessage Sub Called - DeviceName: All Clients
[12/13/2014 3:23:13 PM] Priority: normal
[12/13/2014 3:23:13 PM] Emergency Priority - Second Check
[12/13/2014 3:23:13 PM] SendStatus Is False - Do Not Send The Message
[12/13/2014 3:23:13 PM] Messages Disabled in Pushover Device
[12/13/2014 3:23:13 PM] *********
Please advise.
Comment
Comment