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 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

Add Wind Gust

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
droiddk
Posts: 11
Joined: Tue 02 Feb 2016 12:03 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 7
Location: Denmark

Add Wind Gust

Post by droiddk »

Hello

Thank you for a very nice software!

Is it possible to add a gauge showing the wind-gust? Guess it is possible but cannot find out how :)
I use Virtual Weather Station.

If I make a donation for Cumulus will this also go to the author of SteelSeries Gauges? Want to support this nice software.

Kind Regards
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Add Wind Gust

Post by steve »

droiddk wrote:If I make a donation for Cumulus will this also go to the author of SteelSeries Gauges? Want to support this nice software.
No - use Mark's link in the first post in this thread - https://cumulus.hosiene.co.uk/viewtopic.php?f=21&t=7186
Steve
droiddk
Posts: 11
Joined: Tue 02 Feb 2016 12:03 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 7
Location: Denmark

Re: Add Wind Gust

Post by droiddk »

steve wrote: No - use Mark's link in the first post in this thread - https://cumulus.hosiene.co.uk/viewtopic.php?f=21&t=7186
Thanks, done that.

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

Re: Add Wind Gust

Post by mcrossley »

droiddk wrote: Is it possible to add a gauge showing the wind-gust? Guess it is possible but cannot find out how :)
I use Virtual Weather Station.
That depends on your level of experience in coding JavaScript. It is doable, but not simple. The wind speed gauge does have a gust speed indicator anyway.

A simpler option would be to change the existing wind speed gauge to show the gust speed.
droiddk wrote: Thanks, done that.
Thank you.
droiddk
Posts: 11
Joined: Tue 02 Feb 2016 12:03 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 7
Location: Denmark

Re: Add Wind Gust

Post by droiddk »

mcrossley wrote:
That depends on your level of experience in coding JavaScript. It is doable, but not simple. The wind speed gauge does have a gust speed indicator anyway.

A simpler option would be to change the existing wind speed gauge to show the gust speed.
.
No experience at all. I can do some HTML, CSS & PHP but not Javascript.

If I can copy the existing wind speed gauge to show gust that would be great. So I have one gauge for wind speed and one gauge for gust.

Kind Regards
droiddk
Posts: 11
Joined: Tue 02 Feb 2016 12:03 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 7
Location: Denmark

Re: Add Wind Gust

Post by droiddk »

How to change the existing wind speed gauge to show the gust speed ? :P

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

Re: Add Wind Gust

Post by mcrossley »

Sorry, I am really busy at work at the moment. I'm also away this weekend until next Wednesday, so it will be the back-end of next week before I can look at this.
droiddk
Posts: 11
Joined: Tue 02 Feb 2016 12:03 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 7
Location: Denmark

Re: Add Wind Gust

Post by droiddk »

Hi

Any news about this?

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

Re: Add Wind Gust

Post by mcrossley »

If you just want the pointer to show the gust speed on the existing gauge, then edit gauges.js at line 1725...

Code: Select all

change...
                    cache.value = extractDecimal(data.wlatest);

to...
                    cache.value = extractDecimal(data.wgust);
That should do it.
droiddk
Posts: 11
Joined: Tue 02 Feb 2016 12:03 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 7
Location: Denmark

Re: Add Wind Gust

Post by droiddk »

Thank you. Working fine.

I would really appreciate if both options could be possible at the same time, sometime in the future :)

Regards
Post Reply