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

New addon: Live data on the web

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

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

New addon: Live data on the web

Post by daj »

I thought I would pull together some ideas I had and develop a simple and automatically updating Weather Console for your Cumulus Website.

It's simple, quick and easy to install. It will read the realtime data sent by Cumulus to your website and display core data in a clean format. It should be easy to customise to your own site colouring and layout, or you may want to leave it as is and present a clean display which can be left onscreen, constantly updating. The choice is yours.

Full details on the wiki....WeatherConsole

A live example here, although currently it is so cold, we have no wind or rain so little is changing. :D

I know there are several other similar systems out there, but some are overly busy/fussy/complicated. This goes to the opposite of that!

Enjoy
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
rp4111
Posts: 62
Joined: Wed 30 Dec 2009 11:31 pm
Weather Station: Davis VP2
Operating System: Windows XP, Mac OSX
Location: Western Massachusetts, USA
Contact:

Re: New addon: Live data on the web

Post by rp4111 »

Awesome! I think I will give this a try :D
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: New addon: Live data on the web

Post by nitrx »

I know there are several other similar systems out there, but some are overly busy/fussy/complicated. This goes to the opposite of that!
Looks interesting something todo this evening thanks
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: New addon: Live data on the web

Post by daj »

Added my first update already :o

You can now choose to 'pop out' the Console from the browser window and leave it running in the background.

Wiki updated with new version.

Tip -- as per note at the bottom of the wiki article, if you 'Watch' the article you will get an automated email when it is updated.
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: New addon: Live data on the web

Post by nitrx »

I've installed it on http://www.apeldoorn.tk/weer/wconsole.html but the realtime only gets once from http://www.apeldoorn.tk/weer/realtime.txt (at this moment the raltime ftp is off) but when I turn it on the realitme gauges on my regularer page er updated.
For some reason it doesn't pick up the updated realtime.txt in wconsole.html I made the path /realtime.txt all files are in the same folder as the realtime.txt :geek:

By the way in the script you've made a notation 'do not change lines below' but I had to do this for translation (not finished yet..) :!: I've only tried V1.0 so far. Now I'm hungry :D
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: New addon: Live data on the web

Post by daj »

nitrx wrote:For some reason it doesn't pick up the updated realtime.txt in wconsole.html I made the path /realtime.txt all files are in the same folder as the realtime.txt :geek:
Looks like your server is caching realtime.txt. If I use a browser to load realtime.txt it also never refreshes unless I force a reload. We should be able to trick the server though ;)
By the way in the script you've made a notation 'do not change lines below' but I had to do this for translation (not finished yet..) :!: I've only tried V1.0 so far. Now I'm hungry :D
That's ok -- I only made the note to let people know there was nothing below they needed changed for normal operations

Also, I can highlight the changes between 1.0 and 1.1 rather than you having to re-translate, if you wish
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: New addon: Live data on the web

Post by nitrx »

Looks like your server is caching realtime.txt. If I use a browser to load realtime.txt it also never refreshes unless I force a reload. We should be able to trick the server though
Just my thoughts when I 'tick' the realtime.txt it's updated anyway I don't know how to solve this :roll:
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: New addon: Live data on the web

Post by daj »

I will send you an updated javascript file to test
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: New addon: Live data on the web

Post by nitrx »

Well it works fine now thanks :clap:
malc-c
Posts: 228
Joined: Mon 04 Jan 2010 10:01 pm
Weather Station: Maplin N96GY / WH1081
Operating System: Windows 10 Pro 64bit
Location: Stevenage, UK

Re: New addon: Live data on the web

Post by malc-c »

David,

Silly newby question... where would I find my realtime.txt file ?

I've looked on the website where I FTP'd all the cumulus web files to and can't locate it anywhere, however my website is being updated whilst the base unit is connected to my PC
Regards

Malcolm
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: New addon: Live data on the web

Post by nitrx »

malc-c wrote: Silly newby question... where would I find my realtime.txt file ?

I've looked on the website where I FTP'd all the cumulus web files to and can't locate it anywhere, however my website is being updated whilst the base unit is connected to my PC
The realtime.txt will only availble on your server if you enable the settings in Cumulus for realtime see configurion->internet in cumulus

Well its actually on your server http://micro-heli.co.uk/weather/realtime.txt
malc-c
Posts: 228
Joined: Mon 04 Jan 2010 10:01 pm
Weather Station: Maplin N96GY / WH1081
Operating System: Windows 10 Pro 64bit
Location: Stevenage, UK

Re: New addon: Live data on the web

Post by malc-c »

Yup, have (had since install) this set to 300 seconds -
Regards

Malcolm
malc-c
Posts: 228
Joined: Mon 04 Jan 2010 10:01 pm
Weather Station: Maplin N96GY / WH1081
Operating System: Windows 10 Pro 64bit
Location: Stevenage, UK

Re: New addon: Live data on the web

Post by malc-c »

nitrx wrote:
Well its actually on your server http://micro-heli.co.uk/weather/realtime.txt
Hummm... maybe it's time to invest in a better FTP client... I've now lost all folders co can't locate anything, but my sites are holding up.... confused !!

Thanks for the link
Regards

Malcolm
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: New addon: Live data on the web

Post by daj »

malc-c wrote:Yup, have (had since install) this set to 300 seconds -
300 seconds is way too long -- that is equivalent to 5 minutes, which means that you upload the realtime file so infrequently that it is useless. Typically people set this to 15 seconds

Although you can not really have real-time stats on the web, Cumulus uploads a tiny file (realtime.txt) with some key data in it -- by uploading this, say every 15 seconds, tools can use this file to show near realtime data.

Doing constant uploads to the web does eat into bandwidth and you probably have an allowance with your internet provider. a 15 second upload will use about 180Mb of data per month. Your bandwidth allowance is probably in the Gbs so you are using almost nothing by doing this.

Also, if you do not run your station console 24 hours per day, realtime is no good. Imagine if a user visits your website and sees realtime data that is 8 hours old.
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
bnwrx
Posts: 464
Joined: Wed 25 Feb 2009 12:01 am
Weather Station: Ambient WS2095 (Fine/Offset)
Operating System: Windows 10 64bit
Location: Woodland Park, Colorado USA
Contact:

Re: New addon: Live data on the web

Post by bnwrx »

Works ok in IE8, but I use FF and when you open it all data boxes say "undefined" the only way it opens correctly for me in FF is if I website hosting control panel and open it from there.
Post Reply