Sandaysoft

Support forum for Cumulus weather station software
It is currently Fri May 24, 2013 7:55 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Ajax Gauge for Cumulus Realtime
PostPosted: Wed Dec 01, 2010 10:15 pm 
Offline

Joined: Sun Mar 28, 2010 2:04 pm
Posts: 27
Location: Catalan Pyrennees
Weather Station: Davis Vantage Vue
Operating System: Windows XP pro SP3
Here is an AJAX script that reads the file realtime.txt and creates a Gauge, see and download it at:

http://www.casacota.net/teranyina?num=1291240506

(there is also an english version in the package).

I've it done for my site at http://meteo.casacota.net

Since I'm not using Cumulus myself (my homemade weather station is not supported by any software), I'm generating the file realtime.txt by another script of my own, so I'm not sure if there are glitches on my realtime.txt and the gauge could not work with a genuine realtime.txt file, so use and modify it at your own risk!

_________________
Image


Top
 Profile  
 
 Post subject: Re: Ajax Gauge for Cumulus Realtime
PostPosted: Wed Dec 01, 2010 10:28 pm 
Offline
User avatar

Joined: Tue Jul 29, 2008 8:00 pm
Posts: 2001
Location: Thornhill, Dumfries, UK
Weather Station: WH1081
Operating System: Mac OSx & Win 7
that's a very comprehensive gauge :) Well done

Here it is using my site data...http://www.grantownweather.co.uk/g2/realtime_english.htm

I did not modify anything so it is using a genuine realtime.txt file. I think the only thing I would need to change is the wind speed as it is showing in km/hr whereas I measure in m/hr

_________________
David
Contact Me


Top
 Profile  
 
 Post subject: Re: Ajax Gauge for Cumulus Realtime
PostPosted: Wed Dec 01, 2010 10:52 pm 
Offline

Joined: Sun Mar 28, 2010 2:04 pm
Posts: 27
Location: Catalan Pyrennees
Weather Station: Davis Vantage Vue
Operating System: Windows XP pro SP3
daj wrote:
that's a very comprehensive gauge :) Well done

Here it is using my site data...http://www.grantownweather.co.uk/g2/realtime_english.htm

I did not modify anything so it is using a genuine realtime.txt file. I think the only thing I would need to change is the wind speed as it is showing in km/hr whereas I measure in m/hr



Nice, thank you.

The conversions for the wind units are done in the htm file, you may have to change these lines:

Code:
metrespersegon =Math.round(vent * 0.27778);
millesperhora =Math.round(vent * 0.62137);
nusos =Math.round(vent * 0.53961);
maxmetrespersegon =Math.round(maxvent * 0.27778);
maxmillesperhora =Math.round(maxvent * 0.62137);
maxnusos =Math.round(maxvent * 0.53961);
clock.labelvent.setText("wind " + vent + " km/h - " + metrespersegon + " m/s - " + millesperhora + " mph - " + nusos + " kt");
clock.labelmxvent.setText("high gst. " + maxvent + " km/h - " + maxmetrespersegon + " m/s - " + maxmillesperhora + " mph - " + maxnusos + " kt");


As well as these other lines in the english.xml file:

Code:
    <Gauge2Label text="km" font="18" foreColor="navy" x="491" y="55" anchorHorizontal="center" anchorVertical="center"/>
    <Gauge2Label text="/h" font="18" foreColor="navy" x="491" y="70" anchorHorizontal="center" anchorVertical="center"/>
    <Gauge2Label text="km" font="18" foreColor="navy" x="490" y="930" anchorHorizontal="center" anchorVertical="center"/>
    <Gauge2Label text="/h" font="18" foreColor="navy" x="490" y="945" anchorHorizontal="center" anchorVertical="center"/>

_________________
Image


Top
 Profile  
 
 Post subject: Re: Ajax Gauge for Cumulus Realtime
PostPosted: Thu Dec 02, 2010 8:59 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17590
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
That free Bindows gauges kit looks like it might be very useful.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Ajax Gauge for Cumulus Realtime
PostPosted: Thu Dec 02, 2010 9:13 pm 
Offline
User avatar

Joined: Sat Jul 31, 2010 10:34 pm
Posts: 1039
Location: Anglesey, North Wales, UK
Weather Station: Fine Offset
Operating System: Windows XP
Looks very good indeed, one quick question/note

the rain, it goes up to a maximum of 1000mm, so far this year, locally has been over 1000mm, but its not reflected on the guage?

_________________
Rob,
Dyffryn History on WU Dyffryn on Twitter Dyffryn on WOW
Image


Top
 Profile  
 
 Post subject: Re: Ajax Gauge for Cumulus Realtime
PostPosted: Thu Dec 02, 2010 9:21 pm 
Offline
User avatar

Joined: Sat Jul 31, 2010 10:34 pm
Posts: 1039
Location: Anglesey, North Wales, UK
Weather Station: Fine Offset
Operating System: Windows XP
no matter, it does show in text, cheers, cracking guage ;)

_________________
Rob,
Dyffryn History on WU Dyffryn on Twitter Dyffryn on WOW
Image


Top
 Profile  
 
 Post subject: Re: Ajax Gauge for Cumulus Realtime
PostPosted: Thu Dec 02, 2010 9:24 pm 
Offline

Joined: Sun Mar 28, 2010 2:04 pm
Posts: 27
Location: Catalan Pyrennees
Weather Station: Davis Vantage Vue
Operating System: Windows XP pro SP3
robynfali wrote:
Looks very good indeed, one quick question/note

the rain, it goes up to a maximum of 1000mm, so far this year, locally has been over 1000mm, but its not reflected on the guage?


Ah, I've adjusted it for my local values, but you can modify the code to change this.

In the xml file search for this:
Code:
<Gauge2LinearScale font="16" foreColor="navy" startValue="00" endValue="1000" labelCount="11" labelSpacing="35" labelPosition="-20" postString="">

and change the "1000" by another value. Also, you can change the other parameters in these and the two following lines to have a nice design.

This can be done also for all other scales, of course.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Ajax Gauge for Cumulus Realtime
PostPosted: Thu Dec 02, 2010 9:30 pm 
Offline
User avatar

Joined: Sat Jul 31, 2010 10:34 pm
Posts: 1039
Location: Anglesey, North Wales, UK
Weather Station: Fine Offset
Operating System: Windows XP
thank you my friend, it looks pretty good

_________________
Rob,
Dyffryn History on WU Dyffryn on Twitter Dyffryn on WOW
Image


Top
 Profile  
 
 Post subject: Re: Ajax Gauge for Cumulus Realtime
PostPosted: Sat Mar 10, 2012 7:35 am 
Offline
User avatar

Joined: Tue Jun 28, 2011 2:06 pm
Posts: 249
Location: Harwich, Essex
Weather Station: Technoline WS-2350
Operating System: Windows XP SP3,
Does anyone have a link to download this gauge :D

_________________
Regards,

Geoff


Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group