Announcement

Collapse
No announcement yet.

HS3 Pushover Plugin

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

  • akurz
    replied
    Originally posted by mrhappy View Post

    I am an idiot. Please can you try this version...
    Agree with Dan-O: No idiot - by a long shot.

    Latest version works a treat.

    Thanks!
    Alex

    Leave a comment:


  • stefxx
    replied
    Originally posted by mrhappy View Post

    OK I can change this and probably should in all my plugins, thanks for the heads up. I'm not against minor changes like this...
    Excellent! Keep up the good work!

    Leave a comment:


  • mrhappy
    replied
    Originally posted by stefxx View Post
    Thanks mrHappy! Latest version works just fine.

    However, you are using images from the "contemporary" folder. While it does exist on my HS4 production system, (upgraded from HS3) it does not exist on a fresh HS4 installation (my dev environment). All the references images exist in the "status" folder as well, and they are exactly the same.

    The simple fix would be to use the ones from the "status" folder, that should work for HS3 and HS4. As I workaround, I copied the images to the contemporary folder for now.

    I know, HS4 is not supported
    OK I can change this and probably should in all my plugins, thanks for the heads up. I'm not against minor changes like this...

    Leave a comment:


  • stefxx
    replied
    Thanks mrHappy! Latest version works just fine.

    However, you are using images from the "contemporary" folder. While it does exist on my HS4 production system, (upgraded from HS3) it does not exist on a fresh HS4 installation (my dev environment). All the references images exist in the "status" folder as well, and they are exactly the same.

    The simple fix would be to use the ones from the "status" folder, that should work for HS3 and HS4. As I workaround, I copied the images to the contemporary folder for now.

    I know, HS4 is not supported

    Leave a comment:


  • Dan-O
    replied
    Originally posted by mrhappy View Post

    I am an idiot. Please can you try this version...
    NO WAY ARE YOU AN IDIOT!

    I use your Pushover Plugin all the time.


    Leave a comment:


  • mrhappy
    replied
    Originally posted by akurz View Post
    Hi there.

    Looks like with the latest version 0.0.0.52 sending messages from a script in HS3 doesn't work anymore. There's no errors or anything - just no message sent. Same script with same parameters works fine with 0.0.0.48. I've downgraded and got everything working for now, so no pressure.

    Here's the relevant part of the script:

    Code:
    Dim CO(8) as Object
    CO(0) = "phone1|phone2"
    CO(1) = "Roomba hat eine Reinigungsaufgabe in " & Total_Time & " Minuten erledigt und ist nun zurück im Dock."
    CO(2) = "Roomba Reinigung beendet"
    CO(3) = Nothing
    CO(4) = "Gamelan"
    CO(5) = Nothing
    CO(6) = Nothing
    CO(7) = "iRobot"
    CO(8) = Nothing
    
    hs.PluginFunction("Pushover 3P", "", "Pushscript", CO)
    Cheers,
    Alex
    I am an idiot. Please can you try this version...
    Attached Files

    Leave a comment:


  • akurz
    replied
    Hi there.

    Looks like with the latest version 0.0.0.52 sending messages from a script in HS3 doesn't work anymore. There's no errors or anything - just no message sent. Same script with same parameters works fine with 0.0.0.48. I've downgraded and got everything working for now, so no pressure.

    Here's the relevant part of the script:

    Code:
    Dim CO(8) as Object
    CO(0) = "phone1|phone2"
    CO(1) = "Roomba hat eine Reinigungsaufgabe in " & Total_Time & " Minuten erledigt und ist nun zurück im Dock."
    CO(2) = "Roomba Reinigung beendet"
    CO(3) = Nothing
    CO(4) = "Gamelan"
    CO(5) = Nothing
    CO(6) = Nothing
    CO(7) = "iRobot"
    CO(8) = Nothing
    
    hs.PluginFunction("Pushover 3P", "", "Pushscript", CO)
    Cheers,
    Alex

    Leave a comment:


  • SteveMSJ
    replied
    Originally posted by Ltek View Post
    One small feature request if you can... it would be extremely helpful if you were able to have a tab in the PI that lists all the PO notifications used in Events (and the event they are associated to). I find that with over 350 events and growing, I often duplicate notifications and/or forget where a notification 'lives'. In the Vera system, I could see all event notifications in a table and see what-is-where.
    Originally posted by mrhappy View Post
    This would be useful for me just as much as anyone else...sadly this is a HS limitation (and any other solution involves a huge amount of work to move the event structures outside of the HS provided solutions). If you query the events via the scripting call then all you get is the list of events and when it comes to the actions it just says that they belong to a plugin with no further information, as such I can't get a list of them easily. I contemplated making a list when an event is called and then saving that event into a list but that will be out of date should the action be changed or the action be deleted so I'd rather not have something than have something that was inaccurate.
    Ltek It might not be exactly what you want but have you tried Jon00's Event Viewer? It has many uses and you can filter by search words. If you enter 'Send Pushover' as the search words then it will list out all your events that have a Pushover message as an action.

    It's also very useful for finding broken events by using 'broken' as the search term, but that's a separate topic..

    Steve

    Leave a comment:


  • teladog01
    replied
    Originally posted by mrhappy View Post

    I'm with you all the way but I am afraid that this would be great to do but just too much work for me at the minute. When the plugin was written then I was new to HS3 and in hindsight I would have gone with a different route to store messages in a queue and then depending on what came back then deal with them like in your case to strip things out that caused an error or in the case of no internet connection to do periodic retries and then send the messages when it came back online...I wanted to do something quickly but in this case it was probably me not thinking for such eventualities (and indeed many of the later additions to pushover that cause these errors were simply not in the pushover functionality).
    Understood, thank you for the explanation 👍

    Leave a comment:


  • Ltek
    replied
    Originally posted by mrhappy View Post

    This would be useful for me just as much as anyone else...sadly this is a HS limitation (and any other solution involves a huge amount of work to move the event structures outside of the HS provided solutions). If you query the events via the scripting call then all you get is the list of events and when it comes to the actions it just says that they belong to a plugin with no further information, as such I can't get a list of them easily. I contemplated making a list when an event is called and then saving that event into a list but that will be out of date should the action be changed or the action be deleted so I'd rather not have something than have something that was inaccurate.
    understood... HS has a lot of these. Curious if you put in a feature request... not that it would help ;-)

    Leave a comment:


  • mrhappy
    replied
    Originally posted by teladog01 View Post

    Yep, I see the improved logging for this situation now:
    Code:
    Sep-16 4:09:58 PM Pushover 3P Pushover Plugin WebException Error: The remote server returned an error: (400) Bad Request.
    Sep-16 4:09:58 PM Pushover 3P Error: html and monospace are mutually exclusive
    Would it be possible to go ahead and send the message, just disable the monospace option?

    Since the monospace option wasn't working before, this invalid message config went unnoticed. So it's possible I have other Pushover message events like this. As it is now, I won't even know that I am missing notifications due to this invalid config, unless I explicitly check the log.

    It's not that big of a deal, but if it's not much work I think that would be preferable to go ahead and send the message if possible. Sorry to be a pain about this...
    I'm with you all the way but I am afraid that this would be great to do but just too much work for me at the minute. When the plugin was written then I was new to HS3 and in hindsight I would have gone with a different route to store messages in a queue and then depending on what came back then deal with them like in your case to strip things out that caused an error or in the case of no internet connection to do periodic retries and then send the messages when it came back online...I wanted to do something quickly but in this case it was probably me not thinking for such eventualities (and indeed many of the later additions to pushover that cause these errors were simply not in the pushover functionality).

    Leave a comment:


  • mrhappy
    replied
    Originally posted by Ltek View Post
    mrhappy I get it, I was thinking about the wrong thing, I only see the default HS3 Devices (see screenshot) - so, no problem there, they are not used in any Events

    One small feature request if you can... it would be extremely helpful if you were able to have a tab in the PI that lists all the PO notifications used in Events (and the event they are associated to). I find that with over 350 events and growing, I often duplicate notifications and/or forget where a notification 'lives'. In the Vera system, I could see all event notifications in a table and see what-is-where.

    Hope you can make that happen?

    thx for the very very useful plug!
    This would be useful for me just as much as anyone else...sadly this is a HS limitation (and any other solution involves a huge amount of work to move the event structures outside of the HS provided solutions). If you query the events via the scripting call then all you get is the list of events and when it comes to the actions it just says that they belong to a plugin with no further information, as such I can't get a list of them easily. I contemplated making a list when an event is called and then saving that event into a list but that will be out of date should the action be changed or the action be deleted so I'd rather not have something than have something that was inaccurate.

    Leave a comment:


  • teladog01
    replied
    Originally posted by mrhappy View Post

    Good spot, yes of course please try this version.
    Yep, I see the improved logging for this situation now:
    Code:
    Sep-16 4:09:58 PM Pushover 3P Pushover Plugin WebException Error: The remote server returned an error: (400) Bad Request.
    Sep-16 4:09:58 PM Pushover 3P Error: html and monospace are mutually exclusive
    Would it be possible to go ahead and send the message, just disable the monospace option?

    Since the monospace option wasn't working before, this invalid message config went unnoticed. So it's possible I have other Pushover message events like this. As it is now, I won't even know that I am missing notifications due to this invalid config, unless I explicitly check the log.

    It's not that big of a deal, but if it's not much work I think that would be preferable to go ahead and send the message if possible. Sorry to be a pain about this...

    Leave a comment:


  • Ltek
    replied
    mrhappy I get it, I was thinking about the wrong thing, I only see the default HS3 Devices (see screenshot) - so, no problem there, they are not used in any Events

    One small feature request if you can... it would be extremely helpful if you were able to have a tab in the PI that lists all the PO notifications used in Events (and the event they are associated to). I find that with over 350 events and growing, I often duplicate notifications and/or forget where a notification 'lives'. In the Vera system, I could see all event notifications in a table and see what-is-where.

    Hope you can make that happen?

    thx for the very very useful plug!
    Attached Files

    Leave a comment:


  • mrhappy
    replied
    Unfortunately yes Ltek and I recognise the pain it can cause, I don't personally use the pushover devices and don't know what people typically use them for. Events with just pushover actions to send messages will be fine.
    ​​​
    ​​The reason I moved away was to remove the reliance on the PED and also the device enumerator and instead reference the devices by address. This was to make it more HS4-proof as I don't think the enumerator is really advertised any more.

    The old version should still work OK and to be honest there isn't a great amount of changes so if it causes too much pain you don't have to update.

    Leave a comment:

Working...
X