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.
Thanks for any help
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 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
Moderator: mcrossley
-
- Posts: 36
- Joined: Fri 29 Jan 2021 3:56 pm
- Weather Station: Ecowitt Wittboy + Extra Sensors
- Operating System: Windows 10
- Contact:
- 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
Meteotemplate http://meshka.eu/meteo/template
pwsDashboard http://meshka.eu/pwsWD
CumulusMX http://meshka.eu/CumulusMX
CUtils http://meshka.eu/CUtils
overview (more): http://meshka.eu
pwsDashboard http://meshka.eu/pwsWD
CumulusMX http://meshka.eu/CumulusMX
CUtils http://meshka.eu/CUtils
overview (more): http://meshka.eu
-
- 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
Yes, there is a list.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.
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.
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?
-
- Posts: 36
- Joined: Fri 29 Jan 2021 3:56 pm
- Weather Station: Ecowitt Wittboy + Extra Sensors
- Operating System: Windows 10
- Contact:
Re: New Webtags
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.
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.
- mcrossley
- Posts: 12756
- 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
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.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.
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>",
Code: Select all
<span data-cmxdata="programUpTime"></span>