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

Post Reply
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Yet more gauges

Post by daj »

mcrossley wrote:Your example is synchronous though, so I would need to use the syntax that passes the query object to the oncomplete function.
indeed. Should be easy enough to adapt. Just an idea
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Yet more gauges

Post by daj »

baritoneuk wrote:....I'd dearly love to be able to drop support for anything but the latest browsers. However, many of my clients still use old browsers and of course demand that their websites work in theirs.
I feel your pain, and completely agree.

It's great when we can develop sites for hobby projects so we can dictate the requirements. However when developing at work I have to consider a wider audience. I do draw the line at IE6 and refuse to support it; I use the fact that MS dropped support for it as my 'get out of jail' card. LOL
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
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 »

OK, as a step towards packaging this up I have converted the gauges to use their own "realtimegauges.txt" file. At the moment with all the additional data required for the popup info, this is coming in at around 330 bytes in size - not too bad. If anyone notices anything that is broken give me shout - I've probably forgotten to include it in the file.
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 am a bit confused as usual. What generates the text file for the gauges?
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 »

Cumulus generates the text file and copies it to your website. I will provide a template file.
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 »

If anyone wants to give this a whirl, I have attached a zip of 'simplified' version.

This is a test release (v0.1), and is far from production ready. I have attempted to allow for different measurement units (C|F, mph|m/s|km/h|kts, mm/in, hPa|mb|in) but units other than C|mm|mph|hPa are largely untested.

The steelseries library is modified from the released version, and the released source is rapidly evolving.

Support will be limited, I have some work to do!
Last edited by mcrossley on Wed 29 Jun 2011 8:20 am, edited 1 time in total.
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 »

Thanks for posting!

Do you have a page running with the version of code you posted?
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 »

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 »

Giving it a try -- I don't seem to have the website folders set up quite right because I'm getting a 404 error when the page tries to load
http://personalpages.bellsouth.net/j/d/ ... ges-ss.htm

I uploaded the ZIP file contents into appropriately named folders off of my website's root (/css, /scripts, /images) rather than a gauges-ss subfolder. Is that correct?
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 »

For your website I think you need a path of "../images/XXX" and "../realtimegauges.txt"

And the CSS, Scripts, and Fonts should be sub-folders of the gauges folder, just to keep them separate for now. Keep the same structure as the zip file
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: Yet more gauges

Post by meteotortosa »

I also have a 404 error

http://www.meteotortosa.cat/gauges-ss/gauges-ss.htm

My gauges.js

Code: Select all

var realTimeURL = "../realtimegauges.txt";	//*** Change this to your download URL ***
var g_count = 60;                   		//download retry counter (secs)
var g_size = 250;							//size of gauges
//change the paths to the location of your graph images
g_tipImgs = [["/../images/temp.png","public_html/../images/intemp.png"],"public_html/../images/temp.png","public_html/../images/raint.png","public_html/../images/rain.png",
			 "public_html/../images/hum.png","public_html/../images/press.png","public_html/../images/win

I tried a lot of paths, and can't I get it...sorry
Weather in Tortosa (NE Spain), updated every 15'
Image Image
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 meteotortosa, your file is here:
http://www.meteotortosa.cat/gauges-ss/r ... gauges.txt
The same folder as the gauges html file, so the relative path should be just "realtimegauges.txt" (or you could use the full url above)
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 »

Sorry chaps, an old version of one of the scripts managed to find its way into the zip

Here is v 0.2, I have removed all the minified scripts as they just complicate things at this stage.

I can also see the next problem - internationalisation, I think it will fail horribly on sites that use a comma decimal :(
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 »

And finally for today (I hope) an version that 'should' cope with comma decimal numbers, I haven't tested it.

Note I have also changed the realtimegauges.txt path to be relative in the default, and have added a single variable for the relative path to the Trends graphs folder.
Last edited by mcrossley on Wed 29 Jun 2011 2:07 pm, edited 1 time in total.
RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Yet more gauges

Post by RayProudfoot »

Hi Mark,

I'm probably your closest 'customer'. :D

I followed the instructions in the readme and dropped the gauges_ss folder into my home folder. I didn't edit any paths in the gauges.js file.

Here is the webpage. http://www.cheadlehulmeweather.co.uk/ga ... ges-ss.htm

All of the gauges don't show any readings in them until you choose an option for the ones that have them. My temperature readings are way out of actuals. But the graphs that show when you hover over a gauge appear correct.

Any clues? I'm really impressed with what you've achieved. :clap:

LATER: Just updated to 0.3 but same problems exist. Pausing over the temperature gauge it shows what appears to be wind speeds? :(
Last edited by RayProudfoot on Wed 29 Jun 2011 11:04 am, edited 1 time in total.
Cheers,
Ray, Cheshire.

Image
Post Reply