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

Display values in more than one unit

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
User avatar
sunray24
Posts: 41
Joined: Wed 20 Oct 2010 1:05 pm
Weather Station: Ecowitt GW1100
Operating System: Windows 11
Location: Cunderdin, Western Australia
Contact:

Display values in more than one unit

Post by sunray24 »

Is it possible to display a value but show it with more than one unit?
Example: say I wanted to display temperature on my website but wanted to show the value in Celcius AND Fahrenheit.
It would look like 37.8 C (100 F) for example

Scott
Scott
Station: Ecowitt GW1100
Location: Cunderdin, Western Australia
Website: http://bucklandtech.com.au/index.htm
captzero
Posts: 363
Joined: Wed 03 Mar 2010 10:20 am
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows 10
Location: Brisbane, Australia
Contact:

Re: Display values in more than one unit

Post by captzero »

Scott,

You can do that with some simple javascript. I do it with wind speed (kph/knots).

Using the outdoor temperature webtag something like the following should work:

(<script type="text/javascript">
var tempC = "<#temp> ";
var tempF = Math.abs((9/5)*tempC+32);
document.write(tempF.toFixed(1));
</script>°F)

This will put it in brackets with the °F. There are probably other ways to do it as well.

I like to use an online html editor to check my javascript and use http://www.onlinehtmleditor.net/
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
User avatar
sunray24
Posts: 41
Joined: Wed 20 Oct 2010 1:05 pm
Weather Station: Ecowitt GW1100
Operating System: Windows 11
Location: Cunderdin, Western Australia
Contact:

Re: Display values in more than one unit

Post by sunray24 »

Dan

That's brilliant!
Just added the code into my webpage and it works perfectly
Thanks again

Scott
http://www.glenforrestweather.com/
Scott
Station: Ecowitt GW1100
Location: Cunderdin, Western Australia
Website: http://bucklandtech.com.au/index.htm
Post Reply