Announcement
Collapse
No announcement yet.
HS3 Pushover Plugin
Collapse
X
-
Originally posted by akatar View Postperhaps i can try an older version?
Comment
-
Originally posted by akatar View Postin the log
nov-11 0:08:53 Pushover 3P No User Key Specified, please enter in config page nov-11 0:08:52 Plug-In Finished initializing plug-in Pushover 3P nov-11 0:08:52 Pushover 3P Plugin Starting - Starting Thread
and now i can click the link
very strange
but it works
thanks!!
Comment
-
Originally posted by mrhappy View PostI wanted to do this myself (because 512 characters on a single line can't be fun or easy) however there is no in built jQuery text area function (here is the list of jQuery controls http://homeseer.com/support/homeseer...y_controls.htm and unless I am missing it the only way is the text box control I already have). I don't know whether this is an oversight or the intention is to just embed a textarea tag, I will look further and see what I can do.
Code:Dim saveButton As New clsJQuery.jqButton("SaveMsg_" & uid & sUnique, "Save Message", Pagename, True) Dim message As String = "" Dim ta As String = "Message_" & uid & sUnique stb.Append("<textarea name='" & ta & "' cols='80' rows='20' style='width: 484px; height: 159px;'>" & message & "</textarea>" & saveButton.Build & "</td></tr></table>")
GavinAuthor of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin
Comment
-
Originally posted by beerygaz View PostAnother question, is are the methods in your plugin exposed so I can call them from a script? I'm using HS3 replacement variables and I have a device where the device string has some of HTML in it and I want to strip out the HTML and then send the pushover message.
Here's a code snippet that Adam posted earlier in this thread. I use it in quite a few scripts.
Code:Try Dim CO(7) As Object CO(0) = "All Clients" 'must be matched with a device name already in the plugin or 'All Clients' CASE SENSITIVE CO(1) = message 'message body CO(2) = subject 'message text CO(3) = priority 'low/normal/high/emergency CO(4) = sound 'message sound from list already in HomeSeer - must match CO(5) = Nothing CO(6) = Nothing CO(7) = Nothing hs.PluginFunction("Pushover 3P", "", "Pushscript", CO) Catch ex As Exception hs.WriteLog("", "Exception in script: " & ex.Message) End Try
Cheers
AlHS 4.2.8.0: 2134 Devices 1252 Events
Z-Wave 3.0.10.0: 133 Nodes on one Z-Net
Comment
-
Emergency message expiration
What time limit for expiration do you send with an emergency message? I have been waiting over an hour to get a message expired trigger.
I actually would like- To know what the "retry" and "expire" parameters are
- Request the ability to configure these options within the plug-in and even better to have defaults in the plug-in that can be overridden when a message is sent.
HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
Comment
-
Originally posted by rprade View PostWhat time limit for expiration do you send with an emergency message? I have been waiting over an hour to get a message expired trigger.
I actually would like- To know what the "retry" and "expire" parameters are
- Request the ability to configure these options within the plug-in and even better to have defaults in the plug-in that can be overridden when a message is sent.
Comment
-
Originally posted by mrhappy View PostBy default emergency messages expire after 300 seconds, the option is in the configuration page to change it and it is stored in the INI file. If this is not working for you then I would need to look at it, it is a slightly problematic piece of programming if I remember right because I have to ask the pushover server whether the message has expired as I'm not sure the option to have pushover call into HS (authentication being one of those issues) is available to me. Timers had to be started and all sorts. In terms of the retry period are you able to expand where that is mentioned? Not something I remember seeing but this function of the triggers I'm not sure is wildly used.
As far as the retry I think it is the "eInterval=60" in the ini file. It is described in the api https://pushover.net/api under Emergency Priority (2). I did receive a message expired trigger.
Let me test some more to check the timing.HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
Comment
-
Originally posted by rprade View PostLet me check it out. I found an error in my events to show me expiration. I see the settings in the ini file. I totally missed it on the config page, it is there. It was too obvious
As far as the retry I think it is the "eInterval=60" in the ini file. It is described in the api https://pushover.net/api under Emergency Priority (2). I did receive a message expired trigger.
Let me test some more to check the timing.
I'll see how feasible it is to add some ability to change those values per message (if you so wish), I'm very guarded by making massive changes to the UI sometimes as I really don't want to mess peoples existing actions up if they have tens of messages already saved in event actions.
Comment
-
hi happy ,
i have a question about the emergency acknowledge.
can there only be set 1 for trigger in homeseer , or can i use it separate for other events ?
so like event 1 is an emergency message and i need to acknowledge.. if i acknowledge it will trigger event (test)
and if i have event 2 , and its also an emergency message and i need to acknowledge, if i acknowledge it will trigger event (test2)
or does that not work ?
i never tested it .Preferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts
HS3Pro 4.1.14.0 on windows 10 enterprise X64 on hp quadcore laptop 8 GB.
Comment
-
Originally posted by Malosa View Posthi happy ,
i have a question about the emergency acknowledge.
can there only be set 1 for trigger in homeseer , or can i use it separate for other events ?
so like event 1 is an emergency message and i need to acknowledge.. if i acknowledge it will trigger event (test)
and if i have event 2 , and its also an emergency message and i need to acknowledge, if i acknowledge it will trigger event (test2)
or does that not work ?
i never tested it .
The way I left it was that it would always trigger on the last emergency notification sent by the plugin which in reality for most users probably will actually be the last message sent. If you wanted you could try some events like the attached screenshot where the acknowledged trigger event was enabled/disabled on the event where the message was sent. I don't know however how this will behave in practice, I don't actually use any emergency messages.Last edited by mrhappy; December 4, 2015, 03:01 PM.
Comment
Comment