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

SteelSeries Gauges - version 1.0

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

User avatar
SpireWeather
Posts: 60
Joined: Fri 17 Jun 2011 7:43 pm
Weather Station: Davis Vantage Vue
Operating System: Synology NAS (DSM 7.2.1)
Location: Wimborne Minster UK
Contact:

Re: SteelSeries Gauges - version 1.0

Post by SpireWeather »

Hi Jacco,

I've sent you a PM. Mark Crossley understandably doesn't want this thread to become a Weather Display discussion.

Regards,

Simon
Simon, WessexWeather
Image
SkiMedicKC
Posts: 3
Joined: Sat 04 Feb 2012 4:43 am
Weather Station: www.raytownweather.com
Operating System: winXP SP3
Location: Raytown, MO USA

Re: SteelSeries Gauges - version 1.0

Post by SkiMedicKC »

Is there a way to use the gauges realtime on my weather computer? I would prefer to have the steelseries gauges up on the screen most of the time, with the cumulus screen minimized.


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

Re: SteelSeries Gauges - version 1.0

Post by mcrossley »

Not without running a web service on your computer (I believe) as web pages are not allowed to read from the local file system** (for obvious reasons!).

I enable IIS on my Windows 7 laptop so I can develop/debug the gauges, and then point my browser to http://locahost/gauges-ss.htm perhaps you could do something similar on the computer where you run Cumulus?


** Not quite true HTML5 and the Chrome browser (and maybe others now) allows a page to read from the sandbox local file system. You have to run Chrome with the "--allow-file-access-from-files" switch and its all a bit messy.
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: SteelSeries Gauges - version 1.0

Post by Mapantz »

I've been checking my HTTP traffic over the last two weeks, and it seems to have increased dramatically, perhaps since i upgraded to 1.5.1
I normally get around 20 hits a day average, and that has gone to around 30 or 40 hits in the last week.
But the bandwidth doesn't seem to match, and i'm wondering if it's the gauges?
Usually 60MB for FTP and around 100MB for HTTP on busy-ish day.
The last two weeks, the total is going beyond 300MB a day, with one beyond 600MB in a day.
I normally only use around 3GB a month, but i'm almost at that on day 11.
I just cannot work out why it has increased so much.
Any help would be appreciated.
The gauges page is here:- http://www.wareham-weather.co.uk/gauges-ss.htm
Image
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: SteelSeries Gauges - version 1.0

Post by mcrossley »

Perhaps a quick read of this thread may help?
https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=6962
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: SteelSeries Gauges - version 1.0

Post by Mapantz »

Had a quick gander, but it didn't really tell me what i already knew. Thanks though.

I have also noticed with the latest steel gauges, is that when it updates, the cpu useage for that page goes up to around 26% for two seconds before dropping back down. That seems a lot to me, i don't remember it being like that on previous versions.

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

Re: SteelSeries Gauges - version 1.0

Post by mcrossley »

JavaScript is single threaded, and that number of gauges will put pressure on one CPU for the duration of the animations. The way they work uses a 'tweener' which makes using the requestAnimationFrame feature very difficult (that would 'batch' up animation frames). So the way to reduce CPU usage is to change all the 'setValueAnimated()' calls to 'setValue()' then there would only be one frame per gauge created.

Unfortunately if you want animation then there is a lot the computer has to do, rotating and drawing each frame. More simplistic gauges would require less CPU time of course. I could increase the delay between each frame but you may lose some smoothness, I'd have to play around with it and see.

Nothing of note that would affect this has changed in recent releases - that I am aware of anyway.

EDIT: Actually this has given me an idea for some drawing optimisations, I'll test them out after I get the new version of the linear gauge done.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: SteelSeries Gauges - version 1.0

Post by beteljuice »

Mapantz wrote:I've been checking my HTTP traffic over the last two weeks, and it seems to have increased dramatically, .....
I just cannot work out why it has increased so much.
You don't say if your provider has any 'traffic' tools so that you can see which pages / files are in demand.

Don't forget you've recently added a 'banner', which appears twice on this page - so that's 40k a throw ;)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
FTBoomer
Posts: 29
Joined: Mon 26 Dec 2011 2:14 am
Weather Station: W-1080
Operating System: Win 7
Location: Tampa, FL

Re: SteelSeries Gauges - version 1.0

Post by FTBoomer »

To make gauges-ss.htm a static page, which parameters do I need to hardcode?

Better yet, once Cumulus uploads gauges-ss.htm the first time to my site, can I just go in and remove any further uploads since it's already uploaded as a true htm without the T already?
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: SteelSeries Gauges - version 1.0

Post by nitrx »

FTBoomer wrote:To make gauges-ss.htm a static page, which parameters do I need to hardcode?

Better yet, once Cumulus uploads gauges-ss.htm the first time to my site, can I just go in and remove any further uploads since it's already uploaded as a true htm without the T already?
You can turn off parsing gauges-ssT.htm and uploading keep in mind the last updated tag wil not be updated and when you use a newer verion of cumulus the version number is wrong so you can remove <#update> better.
User avatar
FTBoomer
Posts: 29
Joined: Mon 26 Dec 2011 2:14 am
Weather Station: W-1080
Operating System: Win 7
Location: Tampa, FL

Re: SteelSeries Gauges - version 1.0

Post by FTBoomer »

Cool, thanks


nitrx wrote:
FTBoomer wrote:To make gauges-ss.htm a static page, which parameters do I need to hardcode?

Better yet, once Cumulus uploads gauges-ss.htm the first time to my site, can I just go in and remove any further uploads since it's already uploaded as a true htm without the T already?
You can turn off parsing gauges-ssT.htm and uploading keep in mind the last updated tag wil not be updated and when you use a newer verion of cumulus the version number is wrong so you can remove <#update> better.
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: SteelSeries Gauges - version 1.0

Post by mcrossley »

nitrx wrote:... and when you use a newer verion of cumulus the version number is wrong so you can remove <#update> better.
Not quite, the script updates the Cumulus version and build fields every realtime update.

So in general, yes, let Cumulus upload the page once with the tags substituted, then you can turn it off until the next release when you repeat the process.
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: SteelSeries Gauges - version 1.0

Post by mcrossley »

For those interested, I have added a thermometer type gauge to the 'full' SteelSeries library on github.

https://plus.google.com/b/1057845228278 ... nmQBHFKM53

Screen shots from the demo page:
Thermometer.jpg
You do not have the required permissions to view the files attached to this post.
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: SteelSeries Gauges - version 1.0

Post by gemini06720 »

Great work Mark - I will try adding the new thermometer gauge to my pages later on.

Mark, I have started working on adapting the SteelSeries gauges to Weather Display ... but the 'translation' has been slowed down as the setting-up of the home/office computers has taken (and is still taking) a lot of my time... :|
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: SteelSeries Gauges - version 1.0

Post by mcrossley »

Ray, I think others have already been down that path with WD?

Anyway, decisions, decisions...
Post Reply