Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3044 7 December 2018. See the Wiki for download

WM² in Solar Gauge

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
User avatar
ConligWX
Posts: 734
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

WM² in Solar Gauge

Post by ConligWX » Fri 10 Mar 2017 12:46 pm

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
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
ConligWX
Posts: 734
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

Re: WM² in Solar Gauge

Post by ConligWX » Fri 10 Mar 2017 12:50 pm

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
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
steve
Cumulus Author
Posts: 26714
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 » Fri 10 Mar 2017 12:57 pm

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: 734
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

Re: WM² in Solar Gauge

Post by ConligWX » Fri 10 Mar 2017 1:09 pm

Thanks for the info Steve.
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
mcrossley
Posts: 5231
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: WM² in Solar Gauge

Post by mcrossley » Fri 10 Mar 2017 2:40 pm

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