Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Ajax Gauge for Cumulus Realtime

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
Post Reply
casacota
Posts: 27
Joined: Sun 28 Mar 2010 2:04 pm
Weather Station: Davis Vantage Vue
Operating System: Windows XP pro SP3
Location: Catalan Pyrennees
Contact:

Ajax Gauge for Cumulus Realtime

Post by casacota »

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
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: Ajax Gauge for Cumulus Realtime

Post by daj »

that's a very comprehensive gauge :) Well done

Here it is using my site data...http://www.grantownweather.co.uk/g2/rea ... nglish.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
kippfordweather.uk
Cumulus MX & Raspberry Pi
casacota
Posts: 27
Joined: Sun 28 Mar 2010 2:04 pm
Weather Station: Davis Vantage Vue
Operating System: Windows XP pro SP3
Location: Catalan Pyrennees
Contact:

Re: Ajax Gauge for Cumulus Realtime

Post by casacota »

daj wrote:that's a very comprehensive gauge :) Well done

Here it is using my site data...http://www.grantownweather.co.uk/g2/rea ... nglish.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: Select all

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: Select all

    <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
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Ajax Gauge for Cumulus Realtime

Post by steve »

That free Bindows gauges kit looks like it might be very useful.
Steve
User avatar
robynfali
Posts: 1076
Joined: Sat 31 Jul 2010 10:34 pm
Weather Station: Vantage Vue
Operating System: Windows XP
Location: Anglesey, North Wales, UK
Contact:

Re: Ajax Gauge for Cumulus Realtime

Post by robynfali »

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?
User avatar
robynfali
Posts: 1076
Joined: Sat 31 Jul 2010 10:34 pm
Weather Station: Vantage Vue
Operating System: Windows XP
Location: Anglesey, North Wales, UK
Contact:

Re: Ajax Gauge for Cumulus Realtime

Post by robynfali »

no matter, it does show in text, cheers, cracking guage ;)
casacota
Posts: 27
Joined: Sun 28 Mar 2010 2:04 pm
Weather Station: Davis Vantage Vue
Operating System: Windows XP pro SP3
Location: Catalan Pyrennees
Contact:

Re: Ajax Gauge for Cumulus Realtime

Post by casacota »

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: Select all

<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
User avatar
robynfali
Posts: 1076
Joined: Sat 31 Jul 2010 10:34 pm
Weather Station: Vantage Vue
Operating System: Windows XP
Location: Anglesey, North Wales, UK
Contact:

Re: Ajax Gauge for Cumulus Realtime

Post by robynfali »

thank you my friend, it looks pretty good
User avatar
geoffp
Posts: 322
Joined: Tue 28 Jun 2011 2:06 pm
Weather Station: Oregon Scientific WMR 200
Operating System: Windows 7
Location: Harwich, Essex
Contact:

Re: Ajax Gauge for Cumulus Realtime

Post by geoffp »

Does anyone have a link to download this gauge :D
Regards,

Geoff

WOW Site No. 147808
Post Reply