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

Yet more gauges

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

bnwrx
Posts: 464
Joined: Wed 25 Feb 2009 12:01 am
Weather Station: Ambient WS2095 (Fine/Offset)
Operating System: Windows 10 64bit
Location: Woodland Park, Colorado USA
Contact:

Re: Yet more gauges

Post by bnwrx »

gemini06720 wrote:
bnwrx wrote:Mark, I am using FF 5. I will try your mods but not until tomorrow.
Bob, I am not Mark... :mrgreen:

And tomorrow will be fine... :D
OOPS.... :bash: :oops: ... :lol:
captzero
Posts: 363
Joined: Wed 03 Mar 2010 10:20 am
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows 10
Location: Brisbane, Australia
Contact:

Re: Yet more gauges

Post by captzero »

Mark,

Great work..... I'm nearly afraid to ask.... any plans to include a cloud base (linear) gauge? ;)
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Yet more gauges

Post by gemini06720 »

captzero wrote:.... any plans to include a cloud base (linear) gauge? ;)
Dan, I am not Mark... :)

Have you had a chance to look at Gerrit Grunwald's Harmonic Code page ... just to get yourself tempted... :mrgreen:
captzero
Posts: 363
Joined: Wed 03 Mar 2010 10:20 am
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows 10
Location: Brisbane, Australia
Contact:

Re: Yet more gauges

Post by captzero »

Ray...

I know you are not Mark. Thats why I started my post with Mark and not Ray. My question was directed to Mark (mcrossley) and the compliments were for the efforts and work he has put into the gauges package. I have been to Gerrit Grunwald's site.
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

Hi Dan, no plans for a cloud base gauge yet, but it would be easy to add as a vertical gauge (how about using an aircraft altimeter gauge
Capture.JPG
- if Gerrit ever ports it), but I do have some other little updates in the pipeline.

Today is v0-9, hopefully this will be the last update for a little while. I know Ray is keen to do some more work on translations ans wants a stable release to base it on. So barring any major bugs, this is it for a while.
  • Updated gauges.js
    - Fixed scale shading for farenheit temperatures
    - Changed rain and rain rate inches gauges to start range of 0-1 inch
    - Fixed displaying script version in FireFox
    - Fixed 'station offline' code, it was kicking in 10x faster than it should have!
  • Updated steelseries.js
    - Added variable decimals to fractionalScale type of radialBargraph gauge
I have also included the un-minified versions of all the scripts in the zip file. They are not required on your website, but are included for reference if you need to change anything.
You do not have the required permissions to view the files attached to this post.
bnwrx
Posts: 464
Joined: Wed 25 Feb 2009 12:01 am
Weather Station: Ambient WS2095 (Fine/Offset)
Operating System: Windows 10 64bit
Location: Woodland Park, Colorado USA
Contact:

Re: Yet more gauges

Post by bnwrx »

Using new build (v9). Note to Mark, The seconds countdown still does not display correctly with FF5 for me. Ray,your suggestion DOES work for me. I adjusted the number from "13" to "23" and it worked fine.

Bob
JimDantin
Posts: 108
Joined: Fri 10 Jun 2011 12:40 pm
Weather Station: WMR-968
Operating System: Windows XP SP3
Location: Prospect, KY, USA

Re: Yet more gauges

Post by JimDantin »

I've set up the new version and created a new page for it. My navigation still points to the original gauges.htm for now, but check this out:

http://personalpages.bellsouth.net/j/d/ ... auges2.htm

I want to fully integrate the new page into my website, but don't want to edit all the navigation links until I'm sure you guys aren't planning something slicker (hint, hint!) that would allow a new gauge page to supersede the original one.

Thanks for all the development and debug efforts! :clap:
Thanks
Jim - The Timber Ridge Weather Station, Prospect, KY
http://dantinconsulting.com/
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

bnwrx wrote:Using new build (v9). Note to Mark, The seconds countdown still does not display correctly with FF5 for me. Ray,your suggestion DOES work for me. I adjusted the number from "13" to "23" and it worked fine.

Bob
Bob, it works fine for me in FireFox5 too. Have you altered the font settings in FF, or perhaps your Windows desktop (set the text size > 100%)?
bnwrx
Posts: 464
Joined: Wed 25 Feb 2009 12:01 am
Weather Station: Ambient WS2095 (Fine/Offset)
Operating System: Windows 10 64bit
Location: Woodland Park, Colorado USA
Contact:

Re: Yet more gauges

Post by bnwrx »

mcrossley wrote:
bnwrx wrote:Using new build (v9). Note to Mark, The seconds countdown still does not display correctly with FF5 for me. Ray,your suggestion DOES work for me. I adjusted the number from "13" to "23" and it worked fine.

Bob
Bob, it works fine for me in FireFox5 too. Have you altered the font settings in FF, or perhaps your Windows desktop (set the text size > 100%)?
Not knowingly to my knowledge. I'll see if I can check somehow.
bnwrx
Posts: 464
Joined: Wed 25 Feb 2009 12:01 am
Weather Station: Ambient WS2095 (Fine/Offset)
Operating System: Windows 10 64bit
Location: Woodland Park, Colorado USA
Contact:

Re: Yet more gauges

Post by bnwrx »

mcrossley wrote:
bnwrx wrote:Using new build (v9). Note to Mark, The seconds countdown still does not display correctly with FF5 for me. Ray,your suggestion DOES work for me. I adjusted the number from "13" to "23" and it worked fine.

Bob
Bob, it works fine for me in FireFox5 too. Have you altered the font settings in FF, or perhaps your Windows desktop (set the text size > 100%)?
Another oops..(quite the week for those!) I did not know that the fonts in FF were change. I reset them to the default and also reset the script to "13" and now all is fine. Another Q if I could, in the forecast banner area, it seems to be aligned to the right in the box. Is that as planned? Can it be aligned left or centered?

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

Re: Yet more gauges

Post by mcrossley »

The LCD displays are hard coded to be right justified at the moment.
JimDantin
Posts: 108
Joined: Fri 10 Jun 2011 12:40 pm
Weather Station: WMR-968
Operating System: Windows XP SP3
Location: Prospect, KY, USA

Re: Yet more gauges

Post by JimDantin »

mcrossley wrote:The LCD displays are hard coded to be right justified at the moment.
Hopefully that can be changed in the future by some config setting.

I've been playing around with various elements of the page -- can you explain why DELETING the LED, status display or countdown somehow breaks the entire gauge display? If I eliminate those elements I don't see any gauges at all - but the option selectors DO show up. Strange!
Thanks
Jim - The Timber Ridge Weather Station, Prospect, KY
http://dantinconsulting.com/
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Yet more gauges

Post by gemini06720 »

mcrossley wrote:The LCD displays are hard coded to be right justified at the moment.
Indeed, I looked through the code of the 'steelseries.js' and found the location of the 'hard coded' right justification of the text ... a request for less 'hard coding' and more flexibility would really really be appreciated ... and you have that direct communication/connection with the holy designer... :mrgreen:
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: Yet more gauges

Post by beteljuice »

... can you explain why DELETING the LED, status display or countdown somehow breaks the entire gauge display? If I eliminate those elements I don't see any gauges at all ...
I haven't looked at the code, but I suspect it one of those Ajax loop anomalies.

Most errors ocurring within such a loop don't tell you what went wrong, just 'breaks' everything following the error.

One of the common problems is creating / modifying the content of an element without checking to see if it exists first !

As you have deleted a 'named' element but not the associated JS, that sounds like the problem.

Mark to confirm :?
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

beteljuice is correct, the error checking in the script is very 'light' at the moment. Just deleting elements from the HTML is not sufficient, at the moment you also need to remove/comment out the relevant sections of code that refer to them.

Once I have a solution that functions as expected across the various different unit and nationalisation combinations, I do plan on making it more robust. One obvious addition would be to check for the existence of containers in the DOM before trying to use them. That way people can remove elements easily without having to worry about the code.
Post Reply