Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

New Webtags

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
Pirate3000
Posts: 36
Joined: Fri 29 Jan 2021 3:56 pm
Weather Station: Ecowitt Wittboy + Extra Sensors
Operating System: Windows 10
Contact:

New Webtags

Post by Pirate3000 »

Hi all.
Is there a list of the New webtags that Cumulus uses?
as i have noticed that all the new one seem to start cmx-***** and im trying to add some custom tags to the website. :(
so can you still use the old ones with some mods, or new ones only. :bash:

Thanks for any help
Anything's possible with the weather.

https://www.hytheweather.co.uk
User avatar
Gyvate
Posts: 295
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650WiFi/HP2553/GW2000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

Re: New Webtags

Post by Gyvate »

Are you talking of
https://cumuluswiki.org/a/Webtags
or something else ?
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: New Webtags

Post by sfws »

Pirate3000 wrote: Mon 26 Jul 2021 1:43 pmIs there a list of the New webtags that Cumulus uses?
as i have noticed that all the new one seem to start cmx-***** and i'm trying to add some custom tags to the website.
Yes, there is a list.
To see those "cmx-", you should go direct to https://cumuluswiki.org/a/WebsitedataT.json. (There is a link to this page in the MX column on the Main Page of the Wiki, and a link to it at the top of the page referenced in the previous answer)

Just be aware, that the file contents do slightly vary between releases, so check the actual file in your installation against the documentation.

Pirate3000 wrote: Mon 26 Jul 2021 1:43 pm so can you still use the old ones with some mods
Yes. Tag names in the link in previous answer, could be added to the above json template file, and added to the web page, if you understand the way it now works from the introduction at the top of the page I refer to above, where there is also advice about the best practice for modifying the json file.
Perhaps when you succeed, you can think about adding your experience because there is not yet an example in the Wiki?
Pirate3000
Posts: 36
Joined: Fri 29 Jan 2021 3:56 pm
Weather Station: Ecowitt Wittboy + Extra Sensors
Operating System: Windows 10
Contact:

Re: New Webtags

Post by Pirate3000 »

Hi
I have been revisiting this page of mine to try and get working only to find that the old tags #ProgramUpTime are not in the new templates.
I have tried to use
<p><strong>Program Up Time
</strong> <span data-cmxdata="programUpTime"></span></p>
and this wont work.
Does it work still or do i have to add this to the Json file to get this to work as the wiki does not include these old webtags anymore.

Thanks in advance.
Anything's possible with the weather.

https://www.hytheweather.co.uk
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: New Webtags

Post by mcrossley »

Pirate3000 wrote: Mon 26 Jul 2021 1:43 pm as i have noticed that all the new one seem to start cmx-***** and im trying to add some custom tags to the website. :(
so can you still use the old ones with some mods, or new ones only. :bash:
None of the MX web tags have a "cmx-" prefix. You are confusing the attributes that the new web site uses to write data to page with the web tags that supply the data.

The web tags are the same as they always were.

The old web site used the web tags directly embedded into each page. That meant the Cumulus had to process every page and upload a new copy of each page every update interval.

The new web site uses pages that have markers in them where the data is to go - the <span "data-cmxdata=xxxx"></span> value - and a data file that contains the - well - data!

That data file is in JSON format, it has property names that match the attributes in web pages - the "xxxx" in "data-cmxdata=xxxx", and the value in the template file is supplied by the good old fashioned web tag.
Now Cumulus just has to process that JSON template file, and upload the resulting data file to the web site and all the web pages can read it to extract the bits of data they need.

That means to add your up time, you need to...
1. Add a property the JSON template file of say:-

Code: Select all

"programUpTime":"<#ProgramUpTime>",
2. On you web page add in a span where you want the uptime to appear like:-

Code: Select all

<span data-cmxdata="programUpTime"></span>
Post Reply