Page 4 of 7
Re: Editing the Dashboard.js file for different guage look.
Posted: Sun 21 Nov 2010 11:55 am
by captzero
Mark, does the outdoor temp graph go beyond 40C? It can get pretty warm in some parts of Aus for days on end. I suppose the box over could just read something like "IT'S BLOODY HOT"
Re: Editing the Dashboard.js file for different guage look.
Posted: Sun 21 Nov 2010 11:59 am
by mcrossley
Yes, there are three possible gauge images covering the ranges: -50/+10, -20/+40, 0/+60
I think that should cover most folk?
edit: I got the ranges wrong, now corrected above.
Re: Editing the Dashboard.js file for different guage look.
Posted: Sun 21 Nov 2010 12:05 pm
by captzero
Sounds good. I thought you would have it covered. Thanks.
Re: Editing the Dashboard.js file for different guage look.
Posted: Sun 21 Nov 2010 12:21 pm
by nitrx
mcrossley wrote:Yes, there are three possible gauge images covering the ranges: -40/20, -20/40, 0/60
I think that should cover most folk?
Can't wait for the source

Re: Editing the Dashboard.js file for different guage look.
Posted: Sun 21 Nov 2010 8:43 pm
by nitrx
mcrossley wrote:Here is my first stab at making the gauges work with the standard (1.9.1) realtime.txt file
http://weather.wilmslowastro.com/gauges8.htm
Some of the readings have gone (time it last rained, todays max rain rate are the most notable), but the good news is most of the data is available.
Hi Mark, I 've copied the files and uploaded them (I replaced the realtime text for mine) it seems to work fine exept the gauges stop by rainafall ... is this because I use other units ? I've made an example in my 'play' directory
http://www.apeldoorn.tk/wx/gauges.htm
Re: Editing the Dashboard.js file for different guage look.
Posted: Sun 21 Nov 2010 8:51 pm
by mcrossley
It is crashing on cloudbase - I've not converted the cloudbase yet - it only works in feet, you are using metres, I haven't added the code for metres yet, or drawn a new background image.
Re: Editing the Dashboard.js file for different guage look.
Posted: Sun 21 Nov 2010 8:56 pm
by nitrx
Okay thanks in that case I'll wait

Re: Editing the Dashboard.js file for different guage look.
Posted: Sun 21 Nov 2010 9:09 pm
by nitrx
Removed the cloudbase code eveything works fine , now I can translate wel tomorrow
Re: Editing the Dashboard.js file for different guage look.
Posted: Sun 21 Nov 2010 9:23 pm
by mcrossley
Except your windspeed is in m/s and the scale on the gauge is mph & km/h, though the indicated speed should be correct - I need to make a m/s gauge, but I think a knots scale is out of scope at the mo.
Re: Editing the Dashboard.js file for different guage look.
Posted: Sun 21 Nov 2010 9:28 pm
by nitrx
You're right I hadn't noticed it just was staring at the moving needles

Re: Editing the Dashboard.js file for different guage look.
Posted: Thu 02 Dec 2010 2:49 am
by captzero
mcrossley wrote:
I'm just changing the code so it will work with a standard realtime.txt file rather than my custom file. I also need to create a metre version of the cloud base background image.
Hey Mark...... You are probably busy but any progress to report?
Cheers
Re: Editing the Dashboard.js file for different guage look.
Posted: Thu 02 Dec 2010 7:25 am
by mcrossley
Would you like to test this version?
You can edit the gauges_lang_en.js to customise the text - there is already a Dutch version of the file. Change teh gauges.htm file to point to the appropriate file.
There are some settings to edit in gauges.js - set the URL to your realtime.txt, and choose which temperatures to display on the Dew gauge.
This version is for Fine Offset, I need to add options to remove the status for stations that do not have this - and I do not like the current status display anyway.
This version should cope with wind speed in m/s, kph, mph, kts. Heights in m, ft. Pressure in hPa, in, mb, and temps in C or F.
I'd keep in a separate test area of your website for now!
Please report any problems, I try and fix them but I'm busy at work so it may take a few days to respond.
Mark
Re: Editing the Dashboard.js file for different guage look.
Posted: Thu 02 Dec 2010 7:57 am
by captzero
Thanks Mark,
I'll give it a go.
Cheers
Edit: Results are here:
http://www.brisbaneliveweather.com/gauges.htm
Easy as....looks good too. Took me about 10 mins to get working and then about an hour tweaking for my site.
Good job Mark.
Thanks again.
Re: Editing the Dashboard.js file for different guage look.
Posted: Thu 02 Dec 2010 10:16 am
by werribee_au
I too have given it a go, looks great.
http://members.optusnet.com.au/ktau/wws/gauges/
The only thing I changed is the realtime.txt location, all other files as as they were in the archive you posted. (Oh, I also edited the menu navigation links)
I see that with my url the degrees symbol is not displaying, although it is displaying ok while viewing captzero's page here
http://users.tpg.com.au/captzer0/gauges.htm
Tried Chrome, IE 32bit and iPhone.
I have come across this before but cant remember how I dealt with it.
Great work! Love the graphics!

Re: Editing the Dashboard.js file for different guage look.
Posted: Thu 02 Dec 2010 11:59 am
by nitrx
werribee_au wrote:I too have given it a go, looks great.
http://members.optusnet.com.au/ktau/wws/gauges/
The only thing I changed is the realtime.txt location, all other files as as they were in the archive you posted. (Oh, I also edited the menu navigation links)
I see that with my url the degrees symbol is not displaying, although it is displaying ok while viewing captzero's page here
http://users.tpg.com.au/captzer0/gauges.htm
Tried Chrome, IE 32bit and iPhone.
I have come across this before but cant remember how I dealt with it.
Great work! Love the graphics!

Perhaps there is a solution look in the gauges_canvas.js and search for ° character in +" °"+ repace this with in ° I'm not sure if it wil work anyway the synatx might be + ° +
Note this doesnt work ... try to change the <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
in the gauges.htm to <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> more about yhis on wikipedia
http://en.wikipedia.org/wiki/Character_ ... gs_in_HTML