Announcement

Collapse
No announcement yet.

HS3 Pushover Plugin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • petez69
    replied
    Originally posted by mrhappy View Post
    Thanks for the feedback and hope you enjoy it
    Seriously mate, its a great plugin.....I've not used Pushover before....I've got a bunch of remote telemetry devices on another project that were sending me e-mails, I'm now migrating to push....

    You've done a great job

    Pete

    Leave a comment:


  • mrhappy
    replied
    Originally posted by petez69 View Post
    New Pushover user.....thankyou VERY MUCH for the plugin. Changing a number of SMS and e-mail notifications over to this plugin.....works a treat...

    Pete
    Thanks for the feedback and hope you enjoy it

    Leave a comment:


  • petez69
    replied
    New Pushover user.....thankyou VERY MUCH for the plugin. Changing a number of SMS and e-mail notifications over to this plugin.....works a treat...

    Pete

    Leave a comment:


  • mrhappy
    replied
    Originally posted by ez1976 View Post

    here you go:
    Sep-17 2:15:42 PM Length 320
    Sep-17 2:15:41 PM Event Running script statement immediately: &nhs.writelog("Length", hs.replacevariables("$$DSA:Jon00-RSS01-02: $$DSA:Jon00-RSS01-03: $$DSA:Jon00-RSS01-04: $$DSA:Jon00-RSS01-05: $$DSA:Jon00-RSS01-06: $$DSA:Jon00-RSS01-07:").Length)
    Sep-17 2:15:41 PM Event Event Trigger "C. Generic Events Temp 1"

    the RSS devices are News headlines that get updated and then get pushed to my phone every hour.
    when i have only 1-4 RSS devices it works but when i add up to 07 the push never arrives (and are not written in the log on the plugin page. same as with the attachment link).

    i am sorry but i couldnt find how to enable debug.
    OK don't worry about the debug mode just at the minute - can you just talk me through exactly what happens when you copy $$DSA:Jon00-RSS01-02: $$DSA:Jon00-RSS01-03: $$DSA:Jon00-RSS01-04: $$DSA:Jon00-RSS01-05: $$DSA:Jon00-RSS01-06: $$DSA:Jon00-RSS01-07: into the message body then - does that send the message?

    Leave a comment:


  • ez1976
    replied
    Originally posted by mrhappy View Post
    In the example you say works I can see that you have seven RSS devices (02-07) and then in the ones you say you add they appear to be the same (RSS01-02 to RSS01-07) - do you mean that RSS01-01 works and then when you add 02-07 that fails? Can you please tell me what the following say in the log;

    &nhs.writelog("Length", hs.replacevariables("$$DSA:Jon00-RSS01-02: $$DSA:Jon00-RSS01-03: $$DSA:Jon00-RSS01-04: $$DSA:Jon00-RSS01-05: $$DSA:Jon00-RSS01-06: $$DSA:Jon00-RSS01-07:").Length)

    Messages are limited to 512 characters, that has always been the case however previously to version .43 the decision as to what exceeded 512 characters was made before the replacement variables exchange. That created a problem when the replacement variable names were greater than their actual replacements.

    I will try sort this out before looking at the images if that is OK.
    here you go:
    Sep-17 2:15:42 PM Length 320
    Sep-17 2:15:41 PM Event Running script statement immediately: &nhs.writelog("Length", hs.replacevariables("$$DSA:Jon00-RSS01-02: $$DSA:Jon00-RSS01-03: $$DSA:Jon00-RSS01-04: $$DSA:Jon00-RSS01-05: $$DSA:Jon00-RSS01-06: $$DSA:Jon00-RSS01-07:").Length)
    Sep-17 2:15:41 PM Event Event Trigger "C. Generic Events Temp 1"

    the RSS devices are News headlines that get updated and then get pushed to my phone every hour.
    when i have only 1-4 RSS devices it works but when i add up to 07 the push never arrives (and are not written in the log on the plugin page. same as with the attachment link).

    i am sorry but i couldnt find how to enable debug.

    Leave a comment:


  • mrhappy
    replied
    Originally posted by ez1976 View Post

    Sure.
    i will try this tonight.
    i switched to Linux from the windows version (pushover worked just fine on it) but since the move to linux these issues started.
    i even tried to reset the permission on the folder that holds the attachments (these are snapshots from the IP cameras).
    it seems that it is even a limitation on the message size? on windows i could send a lot more characters than on linux.

    i am on the .43 beta version but the same issues were also on the .42 (but per your request i will downgrade back to .42)


    Update:
    i sent smaller MSG:
    Date & Time: Event: Data:
    9/16/2018 12:35:58 PM Send Pushover Message Device: Eyal
    Message: $$DSA:Jon00-RSS01-02: $$DSA:Jon00-RSS01-03: $$DSA:Jon00-RSS01-04: $$DSA:Jon00-RSS01-05: $$DSA:Jon00-RSS01-06: $$DSA:Jon00-RSS01-07:
    Title: כותרת
    Priority: normal
    Sound: system default
    URL:
    URL Title:
    Application Name: Default
    Attachment Path:
    9/16/2018 12:35:58 PM Event Action Send Message From Event C. Generic Events Temp
    that ran just fine (with no attachments)

    i then added more info the the MSG:
    $$DSA:Jon00-RSS01-02:

    $$DSA:Jon00-RSS01-03:

    $$DSA:Jon00-RSS01-04:

    $$DSA:Jon00-RSS01-05:

    $$DSA:Jon00-RSS01-06:

    $$DSA:Jon00-RSS01-07:

    and now the msg didnt arrive and i even reloaded the configuration page under the plugin and it took around 45 seconds to load.
    once loaded the new message didnt even appear in the log (under the "home" in the configuration page of the plugin)


    edit: i cant find in the help file how to enable debug. can you please send me the instructions?
    thanks
    In the example you say works I can see that you have seven RSS devices (02-07) and then in the ones you say you add they appear to be the same (RSS01-02 to RSS01-07) - do you mean that RSS01-01 works and then when you add 02-07 that fails? Can you please tell me what the following say in the log;

    &nhs.writelog("Length", hs.replacevariables("$$DSA:Jon00-RSS01-02: $$DSA:Jon00-RSS01-03: $$DSA:Jon00-RSS01-04: $$DSA:Jon00-RSS01-05: $$DSA:Jon00-RSS01-06: $$DSA:Jon00-RSS01-07:").Length)

    Messages are limited to 512 characters, that has always been the case however previously to version .43 the decision as to what exceeded 512 characters was made before the replacement variables exchange. That created a problem when the replacement variable names were greater than their actual replacements.

    I will try sort this out before looking at the images if that is OK.

    Leave a comment:


  • ez1976
    replied
    Originally posted by mrhappy View Post

    There could be a couple of issues here but I am far from a Linux expert, firstly could you download the version from the updater (.42) and see whether or not that solves the issue with messages not sending with all of their message content - some changes were made in respect to this when replacement variables were used in the message body.

    The error about the post url data sort of suggests some type of XML issue, I imagine this is the reply from Pushover rather than the sending but not sure. Could you enable debug logging and try the same message send and then send me a copy of the debug log? The instructions on how to do that are in the help file.

    The delay you see again could be a couple of things and if I can sort out the first two then perhaps I might sort out the last one.
    Sure.
    i will try this tonight.
    i switched to Linux from the windows version (pushover worked just fine on it) but since the move to linux these issues started.
    i even tried to reset the permission on the folder that holds the attachments (these are snapshots from the IP cameras).
    it seems that it is even a limitation on the message size? on windows i could send a lot more characters than on linux.

    i am on the .43 beta version but the same issues were also on the .42 (but per your request i will downgrade back to .42)


    Update:
    i sent smaller MSG:
    Date & Time: Event: Data:
    9/16/2018 12:35:58 PM Send Pushover Message Device: Eyal
    Message: $$DSA:Jon00-RSS01-02: $$DSA:Jon00-RSS01-03: $$DSA:Jon00-RSS01-04: $$DSA:Jon00-RSS01-05: $$DSA:Jon00-RSS01-06: $$DSA:Jon00-RSS01-07:
    Title: כותרת
    Priority: normal
    Sound: system default
    URL:
    URL Title:
    Application Name: Default
    Attachment Path:
    9/16/2018 12:35:58 PM Event Action Send Message From Event C. Generic Events Temp
    that ran just fine (with no attachments)

    i then added more info the the MSG:
    $$DSA:Jon00-RSS01-02:

    $$DSA:Jon00-RSS01-03:

    $$DSA:Jon00-RSS01-04:

    $$DSA:Jon00-RSS01-05:

    $$DSA:Jon00-RSS01-06:

    $$DSA:Jon00-RSS01-07:

    and now the msg didnt arrive and i even reloaded the configuration page under the plugin and it took around 45 seconds to load.
    once loaded the new message didnt even appear in the log (under the "home" in the configuration page of the plugin)


    edit: i cant find in the help file how to enable debug. can you please send me the instructions?
    thanks

    Last edited by ez1976; September 16, 2018, 01:14 PM.

    Leave a comment:


  • mrhappy
    replied
    Originally posted by ez1976 View Post
    Hey
    i moved to a linux based HS3 and installed the 0.43 version.
    for some reason messages that were just great on windows do not arrive unless i remove like 2/3 of the message content.
    and now when i try to send an attachment i get this:
    Sep-15 9:03:16 PM Pushover 3P Error POST URL Data at the root level is invalid. Line 1, position 1.
    Lately some push notification arrive after 2 seconds and some take up to a few minutes. is this something to do with the linux version? because on windows i didnt have any issues

    centos 7
    Mono JIT compiler version 5.14.0.177 (tarball Sat Aug 4 08:32:47 UTC 2018)
    Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com



    thanks in advance
    There could be a couple of issues here but I am far from a Linux expert, firstly could you download the version from the updater (.42) and see whether or not that solves the issue with messages not sending with all of their message content - some changes were made in respect to this when replacement variables were used in the message body.

    The error about the post url data sort of suggests some type of XML issue, I imagine this is the reply from Pushover rather than the sending but not sure. Could you enable debug logging and try the same message send and then send me a copy of the debug log? The instructions on how to do that are in the help file.

    The delay you see again could be a couple of things and if I can sort out the first two then perhaps I might sort out the last one.

    Leave a comment:


  • ez1976
    replied
    Hey
    i moved to a linux based HS3 and installed the 0.43 version.
    for some reason messages that were just great on windows do not arrive unless i remove like 2/3 of the message content.
    and now when i try to send an attachment i get this:
    Sep-15 9:03:16 PM Pushover 3P Error POST URL Data at the root level is invalid. Line 1, position 1.
    Lately some push notification arrive after 2 seconds and some take up to a few minutes. is this something to do with the linux version? because on windows i didnt have any issues

    centos 7
    Mono JIT compiler version 5.14.0.177 (tarball Sat Aug 4 08:32:47 UTC 2018)
    Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com



    thanks in advance
    Last edited by ez1976; September 15, 2018, 01:19 PM.

    Leave a comment:


  • teladog01
    replied
    Originally posted by mrhappy View Post

    I'm not sure what Pushover will say but unless things have changed they don't officially support tabbing that I am aware of. If they say they are supported but I need to make changes in the plugin then I will do my best, the text area that I use for the data is not rich text that I remember (nor is it a HS control for that matter) so might need some changes there also.
    Joshua from Pushover support replied to my inquiry regarding inconsistent display of messages with tabs:

    It looks like everything is working as expected, the only reason the
    tabs don't align properly in the message list is because the font
    size is smaller than what is used in the dedicated message view.
    I replied back asking if he had any tips for getting the spacing to be consistent when using tabs for a "table-like" format in Pushover messages. So far no reply. Will report back if they get back to me.

    Leave a comment:


  • crab987
    replied
    Originally posted by teladog01 View Post
    Does anyone have a better way to fake a table in a Pushover message or have any insight how to get tabs to display correctly?
    Since those 3 entries are shorter, did you try to add second tab to them. Looks like that should even them out and display all "Enabled..." aligned.

    Leave a comment:


  • mrhappy
    replied
    Originally posted by teladog01 View Post

    I noticed this as well, paul, and tried the experiment you suggested. The message looks terrible in the HS3 event text box, and gives mixed results in the Pushover app...the single message detail view displays the message properly formatted as I hope to see it. But in the message list preview, the formatting is still wrong. I've submitted feedback to the Pushover team re: this inconsistency in formatting in the app.

    The Pushover app screenshots are both the exact same message, first one is how it shows in the list preview, the second is the single message detail view.


    Click image for larger version Name:	Screenshot 2018-08-21 09.38.24.png Views:	1 Size:	51.1 KB ID:	1242494
    Click image for larger version Name:	File Aug 21, 8 27 38 AM.jpeg Views:	1 Size:	343.8 KB ID:	1242496Click image for larger version Name:	File Aug 21, 8 28 08 AM.jpeg Views:	1 Size:	478.0 KB ID:	1242495
    I'm not sure what Pushover will say but unless things have changed they don't officially support tabbing that I am aware of. If they say they are supported but I need to make changes in the plugin then I will do my best, the text area that I use for the data is not rich text that I remember (nor is it a HS control for that matter) so might need some changes there also.

    Leave a comment:


  • teladog01
    replied
    Originally posted by paul View Post
    looks like it did actually tab out, but you're just getting different tabbing based on the fact that the font is different.
    I noticed this as well, paul, and tried the experiment you suggested. The message looks terrible in the HS3 event text box, and gives mixed results in the Pushover app...the single message detail view displays the message properly formatted as I hope to see it. But in the message list preview, the formatting is still wrong. I've submitted feedback to the Pushover team re: this inconsistency in formatting in the app.

    The Pushover app screenshots are both the exact same message, first one is how it shows in the list preview, the second is the single message detail view.


    Click image for larger version  Name:	Screenshot 2018-08-21 09.38.24.png Views:	1 Size:	51.1 KB ID:	1242494
    Click image for larger version  Name:	File Aug 21, 8 27 38 AM.jpeg Views:	1 Size:	343.8 KB ID:	1242496Click image for larger version  Name:	File Aug 21, 8 28 08 AM.jpeg Views:	1 Size:	478.0 KB ID:	1242495

    Leave a comment:


  • paul
    replied
    I'm just guessing, but looking at the iOS app copy of the message, it kinda looks like it did actually tab out, but you're just getting different tabbing based on the fact that the font is different. You see how Backyard, Front-Entry and trailer are all shorter entries, and those three are all tabbed further to the left. Try adding an extra tab after Backyard and Front-Entry, and an extra two tabs after Trailer, and see what happens. Will look wrong in the event page, but may look correct on iOS.....

    Leave a comment:


  • teladog01
    replied
    Has anyone figured out what the deal is with tab characters in a Pushover message?

    I'm trying to get a block of text to display in a "table-like" format. Since the Pushover app uses a variable width font, regular spaces will not suffice to get things to align appropriately. By using tabs in a text editor, I can get the desired format:


    Click image for larger version  Name:	Screenshot 2018-08-20 18.37.27.png Views:	2 Size:	357.7 KB ID:	1242388


    But then when I paste it into the text box in the HS3 event it looks like this:


    Click image for larger version  Name:	Screenshot 2018-08-20 18.29.20.png Views:	2 Size:	347.9 KB ID:	1242387

    And after clicking the update button and collapsing the event it looks like this:


    Click image for larger version  Name:	Screenshot 2018-08-20 18.29.41.png Views:	2 Size:	243.6 KB ID:	1242386


    And then the message in the iOS app looks like this:


    Click image for larger version  Name:	File Aug 20, 6 30 18 PM.jpeg Views:	2 Size:	455.6 KB ID:	1242385


    Does anyone have a better way to fake a table in a Pushover message or have any insight how to get tabs to display correctly?

    Leave a comment:

Working...
X