Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Non-metric scales in SteelSeries

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
User avatar
KarlS
Posts: 137
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: 64bit Bookworm on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Non-metric scales in SteelSeries

Post by KarlS »

Hi Mark:

Until recently I used Bindows gauges on my web site. For some reason they stopped working in Firefox, so I decided to switch to the SteelSeries gauges. I am customizing the demoRadial script for this and it is in most parts straight forward.

http://www.friendsofbridgelake.org/page ... php?unit=i

The only "problem" I have is that I want to swich between the metric unit we use here in Canada and US (imperial) units. The scale for the rain gauge will go from 0 - 2 inches. As of now, the labels are 0.2, 0.4, 0.6 ... and the library has no way to label the tick marks in the customary steps of 1/8 of an inch (or even 1/4) - at least I haven't found one yet.

I hope you can help me with this little "problem". Maybe this even has been asked and solved before and I just couldn't find it on the forum?
Last edited by KarlS on Sun 22 Apr 2012 11:46 pm, edited 3 times in total.
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Non-metric scales

Post by mcrossley »

Hi Karl, no solution for you I'm afraid. The SS library as it stands only displays decimal values.
User avatar
KarlS
Posts: 137
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: 64bit Bookworm on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Re: Non-metric scales in SteelSeries

Post by KarlS »

Thanks Mark, can we hope for this feature in an upcoming version?
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Non-metric scales in SteelSeries

Post by mcrossley »

It would be way down the list l'm afraid. There is lots of work to do on the library; modularise it, change to using CSS for layers to minimize redrawings etc.
WoodburyMan
Posts: 166
Joined: Sun 04 Sep 2011 2:02 am
Weather Station: Ecowitt GW1000
Operating System: Windows 10 20H2
Location: Woodbury, Connecticut, U.S.A.
Contact:

Re: Non-metric scales in SteelSeries

Post by WoodburyMan »

While on the topic ability to change temperature scale would be nice as well. As of now it's 30-100. In my location we'll have days where it doesn't get out of the teens in the winter, and -'s at night, and even get over 100 in the summer.
Woodbury, CT Weather Ecowitt GW1100, Solar, Wind, Rain, Temp, Soil, Lightning
Southington, CT Weather Ecowitt GW2000 Wittboy Solar, Wind, Rain, Temp, Soil, Lightning, CO2/PM2.5/PM10

Running CumuluxMX 3.24.1 b3234 both sites on Windows 11 22H2
User avatar
KarlS
Posts: 137
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: 64bit Bookworm on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Re: Non-metric scales in SteelSeries

Post by KarlS »

Well, if you know what you are doing, the min/max temperature values for Fahrenheit are set in lines 1608-1620 in the gauges.js script. But be careful, because as Mark notes, "if you break it, it's up to you to fix it".

For the last few days I've played around with the steelseries.js library a bit, and I was able to 'teach' it how to display inches as mixed fractions (for example 3/4” instead of 0.75"). Take a look here (Note: if the display says 0” it only means that it's not raining at the moment :D).
bhcarney
Posts: 17
Joined: Fri 07 Mar 2014 6:57 pm
Weather Station: Davis Vantage
Operating System: XP
Location: United States

Re: Non-metric scales in SteelSeries

Post by bhcarney »

Karl,

I really like the simplicity of your layout.

I understand if you cannot (and especially as my 'programming' skills are limited to cut/paste/modify) but is it possible for me to get the file set you created (for personal; not professional) to use on my website [http://climate.tommueller.com/gauges-ss.htm]. I think I can modify on my own.

Bridge
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Non-metric scales in SteelSeries

Post by mcrossley »

KarlS wrote:Well, if you know what you are doing, the min/max temperature values for Fahrenheit are set in lines 1608-1620 in the gauges.js script. But be careful, because as Mark notes, "if you break it, it's up to you to fix it".
It would be easier to set the values on lines 90 & 91 ;)

Code: Select all

            tempScaleDefMinF       : 0,
            tempScaleDefMaxF       : 100,
User avatar
KarlS
Posts: 137
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: 64bit Bookworm on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Re: Non-metric scales in SteelSeries

Post by KarlS »

Right you are, Mark. But my remark was written back in April 2012, and the SteelSeries script has come a long way since :)
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Non-metric scales in SteelSeries

Post by mcrossley »

Doh! I didn't notice the date of the old posts :oops: - this is a bit of a resurrection! :lol:
bhcarney
Posts: 17
Joined: Fri 07 Mar 2014 6:57 pm
Weather Station: Davis Vantage
Operating System: XP
Location: United States

Re: Non-metric scales in SteelSeries

Post by bhcarney »

Hi KarlS,

I did 'download' your website page using the Ctrl-U as suggested. Should I not be able to copy that right file [Friends of Bridge Lake - Bridge Lake Weather Update.htm' to my current steel-series capable website [http:/climate.tommueller.com/gauges-ss.htm] website and have it run just as you have it? Or does one need to make some basic modifications to the now downloaded 'Friends of Bridge Lake - Bridge Lake Weather Update.htm' file before it will operate?

Cut/paste but not programmer savvy Bridge
User avatar
KarlS
Posts: 137
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: 64bit Bookworm on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Re: Non-metric scales in SteelSeries

Post by KarlS »

Hi Bridgeman

If you look at the previous posts in this thread you will notice that I made this 'enhancement' request about two years ago. At the time, Mark wasvery busy implementing the SteelSeies gauges as a 'standard' for Cumulus (there is even a special board for it now) and my request probably got lost along the way.

As I mentioned in my PM to you, I have modified the SteelSeries Javascript code myself to get the non-metric labels displayed. However, as a consequence my script is not compatible with the official release, and as the script is working for me, I've seen no reason to incorporate all the changes Mark has made over the last two years. Also, I'm not using the reatimegauges.txt file to generate the data but a PHP script that read the Cumulus web tags file.

All this means is that a simple cut-and-paste of my web page won't work ...
bhcarney
Posts: 17
Joined: Fri 07 Mar 2014 6:57 pm
Weather Station: Davis Vantage
Operating System: XP
Location: United States

Re: Non-metric scales in SteelSeries

Post by bhcarney »

Hi Karl,

Too bad as it it a beautiful and accomplished site!

Bridge
Post Reply