Originally posted by Monk
View Post
Announcement
Collapse
No announcement yet.
HS3 Pushover Plugin
Collapse
X
-
HS4 Pro, 4.2.18.9 Windows 10 pro, Supermicro LP Xeon
-
mrhappy, apologies if you are on vacation or otherwise busy...just making sure this didn't fall through the cracks...
Originally posted by teladog01 View Postmrhappy,
One of my events that sends a Pushover message is generating the following message in the HS3 log:
Code:Pushover 3P -> Message Length Greater Than 512 characters
The thing is that the message is using several $$DSA replacement variables, and these variables are actually quite long since I am using the Device Address replacement, which is putting the message past the 512 character limit. After replacement, the message is well under the character limit.
Would it be feasible for you to change the plugin to perform the character limit check *after* the variable replacement?
Comment
-
Originally posted by rprade View PostSorry, I missed this when you posted it. If the message is 66.56, you are using the value replacement variable $$DVR:Ref:. If you want it to be 66.56 F (I don’t know how to get the degree symbol on an ipad), you should use the Status replacement variable $$DSR:Ref:. Alternately you could just put an F after the value replacement variable in the Event. If you want to drop a decimal, edit the Status Graphics of the device to only show 1 digit decimal precision. This may or may not work, depending on how the plug-in treats the device.
Comment
-
I'm afraid it completely slipped my mind - I did see your post and was going to say that it should be a simple enough fix. I never considered that the replacement variables would realistically be more characters than the string itself. I've swapped things around - can you see if the attached is any better?
Comment
-
Originally posted by mrhappy View Postcan you see if the attached is any better?
UPDATE:
Tried starting the plugin with "Developer mode" checked and here's what I see:
Last edited by teladog01; August 16, 2018, 03:28 PM.
Comment
-
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:
But then when I paste it into the text box in the HS3 event it looks like this:
And after clicking the update button and collapsing the event it looks like this:
And then the message in the iOS app looks like this:
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?
Comment
-
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.....
Comment
-
Originally posted by paul View Postlooks like it did actually tab out, but you're just getting different tabbing based on the fact that the font is different.
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.
Comment
-
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.
Comment
-
Originally posted by teladog01 View PostDoes anyone have a better way to fake a table in a Pushover message or have any insight how to get tabs to display correctly?
Comment
Comment