Nope. Ignorance is bliss.
I've been called worse.
Hadn't heard about those changes, but I should be able to adapt the code fairly quickly when it comes out.
I figured you could.
And nice job on the driver, it is super handy.
Thanks. 1.7.1 should be out there, also lowered the min firmware to 2.2.5.130 @mark.cockcroft
Hi @thebearmay
I think your latest update of including the JVM data has created an issue for dashboard tiles.
On the dashboard now, the attribute for html is throwing an error of
'Excluded attribute html size of attribute > 1024 characters'.
Could it be possible to have what is under html made selectable?
Thanks.
I'd got it working from the raw link, just HPM was stopping me
Wow that was quick.
Thanks.
Boy, that's odd. The HTML count in attribute was way off.
In 1.7.1:
Name | 672 S. Main C-7 Hub | |
---|---|---|
Version | 2.2.5.131 | |
Address | 10.0.1.209 | |
Free Memory | 417192 | |
JVM Total Memory | 286800 | |
JVM Free Memory | 151385 | |
JVM Free % | 52.784 | |
Last Restart | 2021-03-19 08:04:33 | |
Uptime | 0 days, 6 hours, 14 minutes and 42 seconds. | |
Temperature | 105.8 °F |
Same thing with 1.7.2, fixed by going into device, clicking Configure
Does that count all of the html tags?
Excellent. Thanks for the update.
Ah, no.
For 1.7.2, the HTML is:
and the count is:
and the tile is:
EDIT: But I no longer get the "Excluded attribute html size of attribute > 1024 characters" from the Dashboard app when Configure / Initialize is done by Hub Information.
I can't explain the "> 1024 characters" when the character count of what I showed is 1051, which doesn't give the error.
Thanks. Looks like I'm going to make a few adjustments so that I have room to add the CPU % when 2.2.6 comes out.
Perhaps just "JVM Free", JVM Total", "xx min & xx sec", "Temp", and round JVM % Free to whole number.
Thinking along those lines. Also may be able to streamline some of the HTML tags without impacting appearance with a little analysis. Something to look at while I'm waiting for 2.2.6 LOL
Good point.
Maybe instead of uptime of 12 hours 16 minutes 25 seconds have 12hrs 16mins 25secs to reduce the character count.
Or just 12hrs 26mins. No seconds included.
Not sure how easy this is but just a thought.
30 second change...
Oh, I see what caused the discrepancy: My copy of the HTML included stuff at the end past the end of the table: "On 3/19/2021 02:42:49 pm " - that's 24 characters (with spaces), which takes the count down to 1027, and there's probably some start and stop garbage that Microsoft Word counted. But a longer Hub name would have gone over.
The best approach may be to force people to choose what they want to show.
Smartly ran up against similar limitations.