Page 6 of 15
Re: Yet more gauges
Posted: Mon 27 Jun 2011 12:13 pm
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
Re: Yet more gauges
Posted: Mon 27 Jun 2011 12:16 pm
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
Re: Yet more gauges
Posted: Mon 27 Jun 2011 3:17 pm
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.
Re: Yet more gauges
Posted: Mon 27 Jun 2011 7:16 pm
by JimDantin
I am a bit confused as usual. What generates the text file for the gauges?
Re: Yet more gauges
Posted: Mon 27 Jun 2011 8:16 pm
by mcrossley
Cumulus generates the text file and copies it to your website. I will provide a template file.
Re: Yet more gauges
Posted: Tue 28 Jun 2011 12:28 pm
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!
Re: Yet more gauges
Posted: Tue 28 Jun 2011 12:44 pm
by JimDantin
Thanks for posting!
Do you have a page running with the version of code you posted?
Re: Yet more gauges
Posted: Tue 28 Jun 2011 1:01 pm
by mcrossley
Re: Yet more gauges
Posted: Tue 28 Jun 2011 4:27 pm
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?
Re: Yet more gauges
Posted: Tue 28 Jun 2011 4:37 pm
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
Re: Yet more gauges
Posted: Wed 29 Jun 2011 7:18 am
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
Re: Yet more gauges
Posted: Wed 29 Jun 2011 8:05 am
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)
Re: Yet more gauges
Posted: Wed 29 Jun 2011 8:21 am
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

Re: Yet more gauges
Posted: Wed 29 Jun 2011 10:21 am
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.
Re: Yet more gauges
Posted: Wed 29 Jun 2011 10:46 am
by RayProudfoot
Hi Mark,
I'm probably your closest 'customer'.
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.
LATER: Just updated to 0.3 but same problems exist. Pausing over the temperature gauge it shows what appears to be wind speeds?
