Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

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

Version 2.0 Beta

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

User avatar
gwheelo
Posts: 453
Joined: Wed 11 Jun 2008 7:36 pm
Weather Station: WMR-88
Operating System: Windows 8.1
Location: L'Estartit, Spain
Contact:

Re: Version 2.0 Beta

Post by gwheelo »

To me it looks like they are offset.
Yeah - it is pretty severe. I will probably separate the odometer from the radar gauge div and locate it on its own - So far I am not a fan of floats - mostly because I don't know how to use them correctly. I will work on it and get back when all the soldiers line up for review

GW.
Image
User avatar
beelzebubs
Posts: 62
Joined: Sun 04 Oct 2009 10:18 pm
Weather Station: Davis VP2
Operating System: Windows 7
Location: Sweden
Contact:

Re: Version 2.0 Beta

Post by beelzebubs »

GW
The height and the width of the canvas_rose is 251 but the other on is 221, with 221 it's look better but it's still 10px offset to the right.
I hope this will help you get closer to a solution.
User avatar
meteotortosa
Posts: 323
Joined: Thu 04 Dec 2008 12:15 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
Location: Tortosa-Baix Ebre- Catalonia
Contact:

Re: Version 2.0 Beta

Post by meteotortosa »

Hi,

I've some questions:

- What file have I to translate? language.js or language.min.js?

- How can I get wind rose?

A lot of thanks
Weather in Tortosa (NE Spain), updated every 15'
Image Image
User avatar
mcrossley
Posts: 12951
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Version 2.0 Beta

Post by mcrossley »

Please translate language.js and post the relevant section here. Then you either have to re-minify the file, or change the HTML page to reference your updated un-minified file.

The Wind Rose will be in the next update.
User avatar
meteotortosa
Posts: 323
Joined: Thu 04 Dec 2008 12:15 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
Location: Tortosa-Baix Ebre- Catalonia
Contact:

Re: Version 2.0 Beta

Post by meteotortosa »

mcrossley wrote:Please translate language.js and post the relevant section here. Then you either have to re-minify the file, or change the HTML page to reference your updated un-minified file.

The Wind Rose will be in the next update.
Please, how can I do this?

Thanks
Weather in Tortosa (NE Spain), updated every 15'
Image Image
User avatar
beelzebubs
Posts: 62
Joined: Sun 04 Oct 2009 10:18 pm
Weather Station: Davis VP2
Operating System: Windows 7
Location: Sweden
Contact:

Re: Version 2.0 Beta

Post by beelzebubs »

meteotortosa wrote:
mcrossley wrote:Please translate language.js and post the relevant section here.Then you either have to re-minify the file, or change the HTML page to reference your updated un-minified file.

The Wind Rose will be in the next update.
Please, how can I do this?

Thanks
He probably mean that you should compress the file.
A quick search (minify js) on google and you found a couple of free javascript compression tools.
User avatar
mcrossley
Posts: 12951
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Version 2.0 Beta

Post by mcrossley »

I did, Google Closure Compiler is as good as any of the on-line minifiers: http://closure-compiler.appspot.com/home
tobyspond
Posts: 252
Joined: Fri 24 Jun 2011 5:57 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 10
Location: Lamoine, Maine, USA

Re: Version 2.0 Beta

Post by tobyspond »

gwheelo wrote:
I noticed your windrun output does not change when you switch windspeed units - my solution is not very clever so you might want to find a better method.


GW
I have manged to get the windrun/odometer to change values when windspeed units are changed. However, I still cannot get the correct units to display, i.e. distance units not speed units. Still a work in progress http://tobyspondweather.com/test1/gauges-ss.php

Kerry
User avatar
JacquesD
Posts: 609
Joined: Tue 27 Jul 2010 3:51 am
Weather Station: National Geographic 265nc
Operating System: XP SP3
Location: St-Ours, Québec, Canada
Contact:

Re: Version 2.0 Beta

Post by JacquesD »

Hi Mark,

A special thanks for beta5 version, it solve some "glitch" about units changement!

As I told you very long ago, I was brainstorming myself to find something real special
to use your wonderful gauges. Now new template is out with your gauges on 2 versions:

with UV informations: http://weatherbyyou.com/demo/weather_su ... gauges.php
... and without UV: http://weatherbyyou.com/demo/weather_su ... gauges.php

Thanks to take so much of your time... for bright gauges!

Regards,
Jacques
Image
User avatar
gwheelo
Posts: 453
Joined: Wed 11 Jun 2008 7:36 pm
Weather Station: WMR-88
Operating System: Windows 8.1
Location: L'Estartit, Spain
Contact:

Re: Version 2.0 Beta

Post by gwheelo »

Toby -

Not certain what you need - but take a look at my code to see if you can pick out something that will help - particularly lines 1599 - 1629: http://www.wheelocknet.net/ss/scripts/gauges_beta_2.js

It is much more complex than you need because of the language switching - but it will give you ideas. Mark, certainly, but most others on this forum are better prepared than I to give you "good" examples.

Latest iteration: http://www.wheelocknet.net/cumulus/gaug ... _2.html?gb

Hey - meteotortosa - please check the Catalan translations: http://www.wheelocknet.net/ss/scripts/language.js - and what is the Catalan for "Home Page" or the main start page of a web site.

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

Re: Version 2.0 Beta

Post by mcrossley »

gwheelo wrote:Toby
George, it's Kerry!
tobyspond
Posts: 252
Joined: Fri 24 Jun 2011 5:57 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 10
Location: Lamoine, Maine, USA

Re: Version 2.0 Beta

Post by tobyspond »

Got it working.

Thanks George for the inspiration.

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

Re: Version 2.0 Beta

Post by mcrossley »

JacquesD wrote:A special thanks for beta5 version, it solve some "glitch" about units changement!
...
Thanks to take so much of your time... for bright gauges!
Thanks Jacques, your use of the gauges is pretty cool too :)
User avatar
gwheelo
Posts: 453
Joined: Wed 11 Jun 2008 7:36 pm
Weather Station: WMR-88
Operating System: Windows 8.1
Location: L'Estartit, Spain
Contact:

Re: Version 2.0 Beta

Post by gwheelo »

George, it's Kerry!
Mark - my eye doesn't swivel around quite as much as yours and I miss a lot!

Sorry Kerry!

GW
Image
User avatar
beelzebubs
Posts: 62
Joined: Sun 04 Oct 2009 10:18 pm
Weather Station: Davis VP2
Operating System: Windows 7
Location: Sweden
Contact:

Re: Version 2.0 Beta

Post by beelzebubs »

gwheelo wrote:
Latest iteration: http://www.wheelocknet.net/cumulus/gaug ... _2.html?gb

GW
Looks like you have find the right solution.
Post Reply