Page 1 of 1

Inconsistent behaviour of 'system' webtags

Posted: Wed 02 Aug 2023 9:26 pm
by whitling2k
Just a quick one, but I have noticed that some web tags seem to work when parsing templates, but not in the CumulusMX localhost web pages.

For example, I can show current CPU temp and data stopped alarm on my external web pages via a custom json template populated via 'extra web files'. But not on my custom Cumulus MX hosted web page (which is using the standard page render/webtag decoding js).

It's not critical, just a minor annoyance.

CPU temp in CMX hosted web page using listed web tag
CMX standard web tag.jpg
And HTML
CMX standard web tag html.jpg

Then CPU temp in my own page, populated with data from a custom JSON template, using standard 'external page' tools, but on a customised page.
Custom JSON extra web file.jpg
And HTML
Custom JSON extra web file html.jpg
And json Template (inspecting the resulting json file yields no surprises or errors.)
Custom JSON extra web file json template.jpg

Re: Inconsistent behaviour of 'system' webtags

Posted: Thu 03 Aug 2023 8:37 am
by mcrossley
I assume you are referring to the built-in dashboard website?

That works in a completely different way from the user hosted web site. The "live" pages work on a push mechanism and the data available is defined by CMX.

Re: Inconsistent behaviour of 'system' webtags

Posted: Thu 03 Aug 2023 10:36 am
by whitling2k
OK great, thanks.

So the strings used as placeholders in the "live" pages just happen to be the same as the ones used by the web tags?

That explains it, thanks. Out of curiosity, is there a list of parameters exposed for the live pages, akin to the list of webtags CMX produces? I have added a few additional to some custom pages and most are the same as the web tags.

Cheers

Re: Inconsistent behaviour of 'system' webtags

Posted: Thu 03 Aug 2023 3:38 pm
by mcrossley
It's not published, but you can see the json if you enter: http://<CMX_IP>:8998/api/data/currentdata

Re: Inconsistent behaviour of 'system' webtags

Posted: Thu 03 Aug 2023 4:53 pm
by whitling2k
Excellent, many thanks :D