Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Problems reading html tags on the index.htm file

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
mitmania
Posts: 48
Joined: Tue 07 Feb 2012 11:51 am
Weather Station: Davis VP2
Operating System: Win 7
Location: Italy
Contact:

Problems reading html tags on the index.htm file

Post by mitmania »

Hello, I have the following problem. I am rewriting my web page with the file indexT.htm and I wanted to insert some graphic libraries in javascript to represent some gauges (temperature, humidity, etc.) that would update each time I upload the file. All this by having the values contained in the various tags read (e.g. html tag temperature <#temp>). I am unable to represent the decimal value in the graphs in any library I use. For example, if the temperature is 1.9°C, 1°C is displayed; if the temperature is 5.7°C, 5°C is displayed. After trying to solve this with the various LLMs (ChatGPT or Claude), I cannot find the solution. Now I ask myself: is this actually not feasible? Thank you for your reply.
water01
Posts: 3669
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Problems reading html tags on the index.htm file

Post by water01 »

Have you set the decimal places you require in Station Settings > General Settings > Units > Advanced Options - Number Decimals?
David
Image
mitmania
Posts: 48
Joined: Tue 07 Feb 2012 11:51 am
Weather Station: Davis VP2
Operating System: Win 7
Location: Italy
Contact:

Re: Problems reading html tags on the index.htm file

Post by mitmania »

I still use Cumulus version 1.9 and from the menu you tell me I don't see the setting .....
water01
Posts: 3669
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Problems reading html tags on the index.htm file

Post by water01 »

Aha didn't realise that, not sure Cumulus 1 allowed decimal places, to do this you should move to CumulusMX.
David
Image
SamiS
Posts: 510
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Problems reading html tags on the index.htm file

Post by SamiS »

water01 wrote: Wed 25 Dec 2024 9:02 pm Aha didn't realise that, not sure Cumulus 1 allowed decimal places, to do this you should move to CumulusMX.
The default website of Cumulus1 definitely uses decimals, but most likely they are not adjustable.

I think the issue could be in how the output is formatted (dot or comma separator). If CU1 <#temp> outputs 1.5 and the graph library expects 1,5 this could cause the decimals to be ignored. Depending on the graph library one might be able to configure it to accept the format CU1 uses, or otherwise it must be converted somehow afterwards (eg via additional javascript?).
Post Reply