If you use Cumulus, please donate Image

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

WM² in Solar Gauge

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

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

WM² in Solar Gauge

Postby Toxic17 » Fri Mar 10, 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 Toxic17 on Fri Mar 10, 2017 12:53 pm, edited 1 time in total.
Regards Simon
https://www.conligwx.org
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

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

Re: WM² in Solar Gauge

Postby Toxic17 » Fri Mar 10, 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://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
steve
Cumulus Author
Posts: 25978
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: Davis VP2
Operating System: Raspbian
Location: Sanday, Orkney
Contact:

Re: WM² in Solar Gauge

Postby steve » Fri Mar 10, 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
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Like Cumulus and want to support it? Please donate! Image

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

Re: WM² in Solar Gauge

Postby Toxic17 » Fri Mar 10, 2017 1:09 pm

Thanks for the info Steve.
Regards Simon
https://www.conligwx.org
https://www.conligwx.org/pws/
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

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

Re: WM² in Solar Gauge

Postby mcrossley » Fri Mar 10, 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:


Return to “SteelSeries Gauges”

Who is online

Users browsing this forum: No registered users and 2 guests