Originally posted by teladog01
View Post
Announcement
Collapse
No announcement yet.
HS3 Pushover Plugin
Collapse
X
-
PM sent w/ full console log. Here is the resulting error message at the end of the console log:
Code:[1/28/2017 3:36:35 PM] Sending to Pushover As Glance Message... [1/28/2017 3:36:36 PM] WebException Error: The remote server returned an error: (400) Bad Request. [1/28/2017 3:36:36 PM] Web Exception Response: <?xml version="1.0" encoding="UTF -8"?> <hash> <text>missing</text> <errors type="array"> <error>you must supply at least one data parameter</error> </errors> <status type="integer">0</status> <request>826c6199b28300c421a28fxxxxxxxxxx</request> </hash>
Comment
-
Originally posted by teladog01 View PostPM sent w/ full console log. Here is the resulting error message at the end of the console log:
Code:[1/28/2017 3:36:35 PM] Sending to Pushover As Glance Message... [1/28/2017 3:36:36 PM] WebException Error: The remote server returned an error: (400) Bad Request. [1/28/2017 3:36:36 PM] Web Exception Response: <?xml version="1.0" encoding="UTF -8"?> <hash> <text>missing</text> <errors type="array"> <error>you must supply at least one data parameter</error> </errors> <status type="integer">0</status> <request>826c6199b28300c421a28fxxxxxxxxxx</request> </hash>
Comment
-
Originally posted by mrhappy View PostI'm afraid I can't verify it, whilst it is there in the plugin I never had a yes/no as to whether or not it works. I would suggest enabling debug mode, try and send a message and then send me the log and I will take a look.
Oddly enough, now I am experiencing a ~ 2 minute delay in getting regular pushover messages on my phone from the time the event runs to send the message. Previously it was so fast I thought it used the precogs from minority report._______________________________________________
HS3 : HSpro (3.0.0.460) on Win2012 (vm on ESXi)
Plugins: HSTouch, UPBSpud, Kinect, Nest, IFTTT, DirecTV, EasyTrigger, Imperihome, Zwave, RFXcom, UltraMon3, UltraWeatherBug3, UltraGCIR3, UltraLog3, UltraPioneer, PHLocation, Pushover, Pushalot, MCSSPrinklers S, JowiHue
Jon00 Plugins: Bluetooth Proximity, Performance Monitor, DB Chart, Links
Comment
-
Originally posted by jlrichar View PostI just got around to testing it yesterday. I could not get a glance to show up on my watch.
Oddly enough, now I am experiencing a ~ 2 minute delay in getting regular pushover messages on my phone from the time the event runs to send the message. Previously it was so fast I thought it used the precogs from minority report.
Comment
-
Originally posted by mrhappy View PostHmm...there is a delay in the plugin that is there to stop sending multiple glance messages (the advice is to send no more than once every fifteen minutes I think) but pushover messages should not be affected by that. Could you stop the plugin, restart it and then send the message and see if the delay is still there?
It really seems that the plugin is introducing the delay. Is there more information I can provide to help resolve this?_______________________________________________
HS3 : HSpro (3.0.0.460) on Win2012 (vm on ESXi)
Plugins: HSTouch, UPBSpud, Kinect, Nest, IFTTT, DirecTV, EasyTrigger, Imperihome, Zwave, RFXcom, UltraMon3, UltraWeatherBug3, UltraGCIR3, UltraLog3, UltraPioneer, PHLocation, Pushover, Pushalot, MCSSPrinklers S, JowiHue
Jon00 Plugins: Bluetooth Proximity, Performance Monitor, DB Chart, Links
Comment
-
Originally posted by Beltane View PostAs the title suggests, I'm trying to use version 27 of the Pushover plugin with HS3 298. I can receive push notifications, but they come 3 minutes after I manually trigger the event and during those 3 minutes, HS3 is completely unresponsive. Here are what the logs look like:
Dec-29 10:14:46 AM Event Event Trigger "Notifications Push Test Event"
Dec-29 10:18:50 AM Pushover 3P Pushover Notification Sent - Message Title: Testing
Any thoughts on what is going on during those three minutes and how I might correct the issue?
Thank you for your help.
Something with the pushover plugin seems to be slowing HS3 down._______________________________________________
HS3 : HSpro (3.0.0.460) on Win2012 (vm on ESXi)
Plugins: HSTouch, UPBSpud, Kinect, Nest, IFTTT, DirecTV, EasyTrigger, Imperihome, Zwave, RFXcom, UltraMon3, UltraWeatherBug3, UltraGCIR3, UltraLog3, UltraPioneer, PHLocation, Pushover, Pushalot, MCSSPrinklers S, JowiHue
Jon00 Plugins: Bluetooth Proximity, Performance Monitor, DB Chart, Links
Comment
-
Here is the log from the plugin console for startup (I replaced things that looked like my tokens with the word "removed"):
Code:Sub Main() Called Connecting to server at 127.0.0.1... Connected, waiting to be initialized... [2/11/2017 2:07:40 PM] Plugin Starting - Starting Thread [2/11/2017 2:07:40 PM] ****** InitIO Ended ****** [2/11/2017 2:07:40 PM] BackGround Thread Started [2/11/2017 2:07:40 PM] No Need To Move APIToken [2/11/2017 2:07:40 PM] APITokens: Default=removed [2/11/2017 2:07:40 PM] Current Line 0: Default Current Line 1: removed [2/11/2017 2:07:40 PM] First APIToken: removed [2/11/2017 2:07:40 PM] pushtoken: removed [2/11/2017 2:07:40 PM] emerExpiry: 300 [2/11/2017 2:07:40 PM] emerInterval: 60 [2/11/2017 2:07:40 PM] Attempting Sound Download.... [2/11/2017 2:07:40 PM] Downloading sounds from Pushover [2/11/2017 2:07:40 PM] rSound Download: <?xml version="1.0" encoding="UTF-8"?> <hash> <sounds> <pushover>Pushover (default)</pushover> <bike>Bike</bike> <bugle>Bugle</bugle> <cashregister>Cash Register</cashregister> <classical>Classical</classical> <cosmic>Cosmic</cosmic> <falling>Falling</falling> <gamelan>Gamelan</gamelan> <incoming>Incoming</incoming> <intermission>Intermission</intermission> <magic>Magic</magic> <mechanical>Mechanical</mechanical> <pianobar>Piano Bar</pianobar> <siren>Siren</siren> <spacealarm>Space Alarm</spacealarm> <tugboat>Tug Boat</tugboat> <alien>Alien Alarm (long)</alien> <climb>Climb (long)</climb> <persistent>Persistent (long)</persistent> <echo>Pushover Echo (long)</echo> <updown>Up Down (long)</updown> <none>None (silent)</none> </sounds> <status type="integer">1</status> <request>removed</request> </hash> [2/11/2017 2:07:40 PM] Adding: 1 - pushover - Pushover (default) [2/11/2017 2:07:40 PM] Adding: 2 - bike - Bike [2/11/2017 2:07:40 PM] Adding: 3 - bugle - Bugle [2/11/2017 2:07:40 PM] Adding: 4 - cashregister - Cash Register [2/11/2017 2:07:40 PM] Adding: 5 - classical - Classical [2/11/2017 2:07:40 PM] Adding: 6 - cosmic - Cosmic [2/11/2017 2:07:40 PM] Adding: 7 - falling - Falling [2/11/2017 2:07:40 PM] Adding: 8 - gamelan - Gamelan [2/11/2017 2:07:40 PM] Adding: 9 - incoming - Incoming [2/11/2017 2:07:40 PM] Adding: 10 - intermission - Intermission [2/11/2017 2:07:40 PM] Adding: 11 - magic - Magic [2/11/2017 2:07:40 PM] Adding: 12 - mechanical - Mechanical [2/11/2017 2:07:40 PM] Adding: 13 - pianobar - Piano Bar [2/11/2017 2:07:40 PM] Adding: 14 - siren - Siren [2/11/2017 2:07:40 PM] Adding: 15 - spacealarm - Space Alarm [2/11/2017 2:07:40 PM] Adding: 16 - tugboat - Tug Boat [2/11/2017 2:07:40 PM] Adding: 17 - alien - Alien Alarm (long) [2/11/2017 2:07:40 PM] Adding: 18 - climb - Climb (long) [2/11/2017 2:07:40 PM] Adding: 19 - persistent - Persistent (long) [2/11/2017 2:07:40 PM] Adding: 20 - echo - Pushover Echo (long) [2/11/2017 2:07:40 PM] Adding: 21 - updown - Up Down (long) [2/11/2017 2:07:40 PM] Adding: 22 - none - None (silent) [2/11/2017 2:07:40 PM] Downloaded 22 sounds from Pushover - Adding Device Defaul t [2/11/2017 2:07:40 PM] Attempting To Produce a Client/Group List [2/11/2017 2:07:40 PM] Clients: Jason_iPhone_5=Nothing Niki_iPhone_6=Nothing Jas on_iPhone_6=Nothing [2/11/2017 2:07:40 PM] Current Line 0: Jason_iPhone_5 Current Line 1: Nothing [2/11/2017 2:07:40 PM] Current Line 0: Niki_iPhone_6 Current Line 1: Nothing [2/11/2017 2:07:40 PM] Current Line 0: Jason_iPhone_6 Current Line 1: Nothing [2/11/2017 2:07:40 PM] Found IFACE_NAME, exit [2/11/2017 2:07:40 PM] End Of Enumerator - Create Devices: False [2/11/2017 2:07:41 PM] Devices Owned By Plugin: 1178 Name: Pushover 3P Root Devi ce [2/11/2017 2:07:41 PM] Devices Owned By Plugin: 1179 Name: Pushover 3P Enabled/D isabled [2/11/2017 2:07:41 PM] Devices Owned By Plugin: 1180 Name: Pushover 3P Last Mess age Sent [2/11/2017 2:07:41 PM] Devices Owned By Plugin: 1181 Name: Pushover 3P Disable N on-Emergency Messages [2/11/2017 2:07:41 PM] Devices Owned By Plugin: 1182 Name: Pushover 3P Applicati on Messages Remaining [2/11/2017 2:07:41 PM] Array: bCode(0) - 1178 [2/11/2017 2:07:41 PM] Array: bCode(1) - 1179 [2/11/2017 2:07:41 PM] Array: bCode(2) - 1180 [2/11/2017 2:07:41 PM] Array: bCode(3) - 1181 [2/11/2017 2:07:41 PM] Array: bCode(4) - 1182 [2/11/2017 2:07:41 PM] Sending Status: True Device Value: 100 [2/11/2017 2:07:41 PM] Starting Flood Control Timer [2/11/2017 2:07:41 PM] Glance Message Delay Value: 20 [2/11/2017 2:07:41 PM] Worker Thread Completed [2/11/2017 2:08:31 PM] ******** ActionConfigured Called DataIn IsNothing: False [2/11/2017 2:08:31 PM] ActionConfigured - 6585 Action Keys Count: 0 [2/11/2017 2:08:31 PM] Call to DeSerialize the Information [2/11/2017 2:08:31 PM] Return from DeSerialize Key Count: 8 [2/11/2017 2:08:31 PM] sKey ActionConfigured: mKey_6585_5593_A1 Actions: Jason_i Phone_6 [2/11/2017 2:08:31 PM] sKey ActionConfigured: mTitle_6585_5593_A1 Actions: HS3 [2/11/2017 2:08:31 PM] sKey ActionConfigured: mMessage_6585_5593_A1 Actions: $$D TR:1352: [2/11/2017 2:08:31 PM] sKey ActionConfigured: mPriority_6585_5593_A1 Actions: Hi gh [2/11/2017 2:08:31 PM] sKey ActionConfigured: mSound_6585_5593_A1 Actions: none [2/11/2017 2:08:31 PM] sKey ActionConfigured: mAPI_6585_5593_A1 Actions: Default [2/11/2017 2:08:31 PM] sKey ActionConfigured: mURL_6585_5593_A1 Actions: [2/11/2017 2:08:31 PM] sKey ActionConfigured: mURLTitle_6585_5593_A1 Actions: [2/11/2017 2:08:31 PM] itemsConfigured: 6 [2/11/2017 2:08:31 PM] Configured: True [2/11/2017 2:08:31 PM] ******** ActionFormatUI Called UID: 6585 DataIn IsNothing : False [2/11/2017 2:08:31 PM] DeSerializeObject To Be Called [2/11/2017 2:08:31 PM] ActionFormatUI Keys Count: 8 [2/11/2017 2:08:31 PM] ActionFormatUI sKey: mKey_6585_5593_A1 [2/11/2017 2:08:31 PM] ActionFormatUI sKey: mTitle_6585_5593_A1 [2/11/2017 2:08:31 PM] ActionFormatUI sKey: mMessage_6585_5593_A1 [2/11/2017 2:08:31 PM] ActionFormatUI sKey: mPriority_6585_5593_A1 [2/11/2017 2:08:31 PM] ActionFormatUI sKey: mSound_6585_5593_A1 [2/11/2017 2:08:31 PM] ActionFormatUI sKey: mAPI_6585_5593_A1 [2/11/2017 2:08:31 PM] ActionFormatUI sKey: mURL_6585_5593_A1 [2/11/2017 2:08:31 PM] ActionFormatUI sKey: mURLTitle_6585_5593_A1
The part below is after I ran the event to send a message:
Code:[2/11/2017 2:08:48 PM] ******** ActionConfigured Called DataIn IsNothing: False [2/11/2017 2:08:48 PM] ActionConfigured - 6585 Action Keys Count: 8 [2/11/2017 2:08:48 PM] Call to DeSerialize the Information [2/11/2017 2:08:48 PM] Return from DeSerialize Key Count: 8 [2/11/2017 2:08:48 PM] sKey ActionConfigured: mKey_6585_5593_A1 Actions: Jason_i Phone_6 [2/11/2017 2:08:48 PM] sKey ActionConfigured: mTitle_6585_5593_A1 Actions: HS3 [2/11/2017 2:08:48 PM] sKey ActionConfigured: mMessage_6585_5593_A1 Actions: $$D TR:1352: [2/11/2017 2:08:48 PM] sKey ActionConfigured: mPriority_6585_5593_A1 Actions: Hi gh [2/11/2017 2:08:48 PM] sKey ActionConfigured: mSound_6585_5593_A1 Actions: none [2/11/2017 2:08:48 PM] sKey ActionConfigured: mAPI_6585_5593_A1 Actions: Default [2/11/2017 2:08:48 PM] sKey ActionConfigured: mURL_6585_5593_A1 Actions: [2/11/2017 2:08:48 PM] sKey ActionConfigured: mURLTitle_6585_5593_A1 Actions: [2/11/2017 2:08:48 PM] itemsConfigured: 6 [2/11/2017 2:08:48 PM] Configured: True [2/11/2017 2:08:48 PM] ********* HandleAction Called [2/11/2017 2:08:48 PM] ********* [2/11/2017 2:08:48 PM] APIStr: Default [2/11/2017 2:08:48 PM] PushMessage Sub Called - DeviceName: Jason_iPhone_6 [2/11/2017 2:08:48 PM] Priority: high [2/11/2017 2:08:48 PM] Emergency Priority - Second Check [2/11/2017 2:08:48 PM] SendStatus Is True - Send The Message [2/11/2017 2:08:48 PM] Populating Message Array [2/11/2017 2:08:48 PM] No Separate User Key Found - Using Master [2/11/2017 2:08:48 PM] Device Names: Jason_iPhone_6 [2/11/2017 2:08:48 PM] Web Client Busy Status: False [2/11/2017 2:08:48 PM] *** CustomReplacement Function Entered Input String: No M essages [2/11/2017 2:09:09 PM] *** ReplacementFunction Return: No Messages [2/11/2017 2:09:09 PM] *** CustomReplacement Function Entered Input String: HS3 [2/11/2017 2:09:31 PM] *** ReplacementFunction Return: HS3 [2/11/2017 2:09:31 PM] *** CustomReplacement Function Entered Input String: [2/11/2017 2:09:52 PM] *** ReplacementFunction Return: [2/11/2017 2:09:52 PM] URL Encoded Message: [2/11/2017 2:09:52 PM] No sTimeStamp Value Sent [2/11/2017 2:09:52 PM] First Token: removed [2/11/2017 2:09:52 PM] API Token Found In List [2/11/2017 2:09:52 PM] pushToken: removed [2/11/2017 2:09:52 PM] Key: user [2/11/2017 2:09:52 PM] Item: removed [2/11/2017 2:09:52 PM] Key: url [2/11/2017 2:09:52 PM] Item: [2/11/2017 2:09:52 PM] Key: url_title [2/11/2017 2:09:52 PM] Item: [2/11/2017 2:09:52 PM] Key: priority [2/11/2017 2:09:52 PM] Item: 1 [2/11/2017 2:09:52 PM] Key: title [2/11/2017 2:09:52 PM] Item: HS3 [2/11/2017 2:09:52 PM] Key: device [2/11/2017 2:09:52 PM] Item: Jason_iPhone_6 [2/11/2017 2:09:52 PM] Key: sound [2/11/2017 2:09:52 PM] Item: none [2/11/2017 2:09:52 PM] Key: token [2/11/2017 2:09:52 PM] Item: removed [2/11/2017 2:09:52 PM] Key: message [2/11/2017 2:09:52 PM] Item: No Messages [2/11/2017 2:09:52 PM] Sending to Pushover... [2/11/2017 2:09:53 PM] WebClient Is Running: False [2/11/2017 2:09:53 PM] Web Response Header: Transfer-Encoding [2/11/2017 2:09:53 PM] Web Response Header: Connection [2/11/2017 2:09:53 PM] Web Response Header: Access-Control-Allow-Origin [2/11/2017 2:09:53 PM] Web Response Header: Access-Control-Allow-Methods [2/11/2017 2:09:53 PM] Web Response Header: Access-Control-Allow-Headers [2/11/2017 2:09:53 PM] Web Response Header: Access-Control-Max-Age [2/11/2017 2:09:53 PM] Web Response Header: X-Limit-App-Limit [2/11/2017 2:09:53 PM] Web Response Header: X-Limit-App-Remaining [2/11/2017 2:09:53 PM] Web Response Header: X-Limit-App-Reset [2/11/2017 2:09:53 PM] Web Response Header: X-UA-Compatible [2/11/2017 2:09:53 PM] Web Response Header: X-Request-Id [2/11/2017 2:09:53 PM] Web Response Header: X-Runtime [2/11/2017 2:09:53 PM] Web Response Header: X-Frame-Options [2/11/2017 2:09:53 PM] Web Response Header: Strict-Transport-Security [2/11/2017 2:09:53 PM] Web Response Header: Cache-Control [2/11/2017 2:09:53 PM] Web Response Header: Content-Type [2/11/2017 2:09:53 PM] Web Response Header: Date [2/11/2017 2:09:53 PM] Web Response Header: ETag [2/11/2017 2:09:53 PM] Messages Remaining: 7072 [2/11/2017 2:09:53 PM] Reply: <?xml version="1.0" encoding="UTF-8"?> <hash> <status type="integer">1</status> <request>removed</request> </hash> [2/11/2017 2:09:53 PM] Reply Status: 1 [2/11/2017 2:09:53 PM] Pushover Notification Sent - Message Title: HS3 [2/11/2017 2:09:53 PM] Message Total: 1
_______________________________________________
HS3 : HSpro (3.0.0.460) on Win2012 (vm on ESXi)
Plugins: HSTouch, UPBSpud, Kinect, Nest, IFTTT, DirecTV, EasyTrigger, Imperihome, Zwave, RFXcom, UltraMon3, UltraWeatherBug3, UltraGCIR3, UltraLog3, UltraPioneer, PHLocation, Pushover, Pushalot, MCSSPrinklers S, JowiHue
Jon00 Plugins: Bluetooth Proximity, Performance Monitor, DB Chart, Links
Comment
-
The issue with Beltane I traced to an issue with the custom replacement function, you can see it enters this routine and that seems for reasons not entirely clear to introduce a delay. That has been there for a while so I am at a bit of a loss as to why it is all of a sudden it is delayed. Perhaps someone can see if I am doing anything stupid in the below?
Code:Public Function CustomReplacement(ByVal Input As String) As String Try Log("*** CustomReplacement Function Entered Input String: " & Input, LogLevel.Debug) Log("*** DISABLED FOR DEBUGGING ***", LogLevel.Debug) 'Dim ReplacedString As String = Input 'Dim SupportStrings() As String = {"%ShortTime%", "%LongTime%", "%ShortDate%", "%LongDate%", "%HSUptime%", "%HSWanIP%"} 'Dim CurrentReplacement As String = "" 'For Each SingleString As String In SupportStrings ' Select Case SingleString ' Case "%ShortTime%" : CurrentReplacement = DateTime.Now.ToShortTimeString() ' Case "%LongTime%" : CurrentReplacement = DateTime.Now.ToLongTimeString() ' Case "%ShortDate%" : CurrentReplacement = DateTime.Now.ToShortDateString ' Case "%LongDate%" : CurrentReplacement = DateTime.Now.ToLongDateString ' Case "%HSUptime%" : CurrentReplacement = hs.SystemUpTime ' Case "%HSWanIP%" : CurrentReplacement = hs.WANIP ' End Select ' ReplacedString = ReplacedString.Replace(SingleString, CurrentReplacement) 'Next ' Log("*** ReplacementFunction Return: " & ReplacedString, LogLevel.Debug) Return Input Catch ex As Exception Log("CustomReplacement Exception: " & ex.Message.ToString, LogLevel.Both) Return Input End Try End Function
I've just commented it all out - can someone try this please?
https://drive.google.com/file/d/0B5D...ew?usp=sharing
Comment
-
Installed the plugin yesterday and it's great! Thanks.
I do have two questions.
I don't understand how the emergency differs from a standard one.
Is there a cost to pushover.com for this service? I received an email from them saying I have a week trial. Does it stop after a week?
Thanks again for the plugin!-Tim
HSPro - 3.XXX - Dell mini W7 x32
Way2 Call
Elk M1 Gold
UPB HAI switches
HAI RC2000 Thermostat
Comment
-
Originally posted by email68 View PostInstalled the plugin yesterday and it's great! Thanks.
I do have two questions.
I don't understand how the emergency differs from a standard one.
Is there a cost to pushover.com for this service? I received an email from them saying I have a week trial. Does it stop after a week?
Thanks again for the plugin!
Comment
-
Originally posted by mrhappy View Post
I've just commented it all out - can someone try this please?
https://drive.google.com/file/d/0B5D...ew?usp=sharing
About that glances API? Did you make any changes that need to be tested?_______________________________________________
HS3 : HSpro (3.0.0.460) on Win2012 (vm on ESXi)
Plugins: HSTouch, UPBSpud, Kinect, Nest, IFTTT, DirecTV, EasyTrigger, Imperihome, Zwave, RFXcom, UltraMon3, UltraWeatherBug3, UltraGCIR3, UltraLog3, UltraPioneer, PHLocation, Pushover, Pushalot, MCSSPrinklers S, JowiHue
Jon00 Plugins: Bluetooth Proximity, Performance Monitor, DB Chart, Links
Comment
-
Originally posted by jlrichar View PostThanks for putting this test version up. This version has no delay. I'm not sure how the delay crept in, but it was likely present before I tried testing the glances API. I most likely just noticed it then. I do remember that an event that I have for my doorbell that sends both a pushover message, and says "dingaling dinga dong dingaling dong" via speaker.exe was about a minute delayed the last few times I was home when it was activated. Since pushover action was part of that event it is likely that the delay was a result of this.
About that glances API? Did you make any changes that need to be tested?
There were no changes to the glances API, I've only had contact from one other user who said it works - does it work for you or are you still having issues with it?
Comment
Comment