Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.2.1 (build 4043) - 19 October 2024

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

WM² in Solar Gauge

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
User avatar
ConligWX
Posts: 1731
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

WM² in Solar Gauge

Post by ConligWX »

Mark

I notice the "Wm²" looks like it is Wm-2 on the Solar gauge background. is this a bug or can the - (minus) be removed from the gauge?
Last edited by ConligWX on Fri 10 Mar 2017 12:53 pm, edited 1 time in total.
Regards Simon

https://www.conligwx.org
vPro2 Plus with DFARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX 4.2.1
User avatar
ConligWX
Posts: 1731
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: WM² in Solar Gauge

Post by ConligWX »

Toxic17 wrote:Mark

I notice the "Wm²" looks like it is Wm-2 on the Solar gauge background. is this a bug or can the - (minus) be removed from the gauge?
its ok just edited gauges.js:

Code: Select all

                    params.unitString = 'Wm²\u207B\u00B2';
to

Code: Select all

                    params.unitString = 'W/m²';
the ² is ALT and 0178 if anyone wanted to know..
Regards Simon

https://www.conligwx.org
vPro2 Plus with DFARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX 4.2.1
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: WM² in Solar Gauge

Post by steve »

It's not a mistake - Wm-2 is an alternative way of writing W/m2. Not sure why Mark chose to do it that way, though.
Steve
User avatar
ConligWX
Posts: 1731
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 24.04.1 LTS
Location: Bangor, NI
Contact:

Re: WM² in Solar Gauge

Post by ConligWX »

Thanks for the info Steve.
Regards Simon

https://www.conligwx.org
vPro2 Plus with DFARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX 4.2.1
User avatar
mcrossley
Posts: 13622
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: WM² in Solar Gauge

Post by mcrossley »

steve wrote:It's not a mistake - Wm-2 is an alternative way of writing W/m2. Not sure why Mark chose to do it that way, though.
Just that it takes up less space, and I'm used to writing it like that back from my physics days. I have seen an issue with it though in that I use the superscript "-" character, and some systems do not seem to have that character in their fonts. So maybe I should change it to W/m2 :roll:
Post Reply