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
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
Moderator: daj
- 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
Odd. I only use FF. I did test it on IE 7 & 8 also on chrome and safari for PC and Mac.
Undefinded can mean it failed to access realtime.txt. I am trying trap that error but not always successful.
Do you have a URL I can look at?
Undefinded can mean it failed to access realtime.txt. I am trying trap that error but not always successful.
Do you have a URL I can look at?
- 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
I guessed your URL and it looks fine to me....
You do not have the required permissions to view the files attached to this post.
- garytx
- Posts: 52
- Joined: Sun 22 Jun 2008 3:00 pm
- Weather Station: Davis VantagePro 2 Plus w/FARS
- Operating System: Windows 7
- Location: Central Texas, USA
- Contact:
Re: New addon: Live data on the web
FWIW, I have mine updating at 5 second intervals and sometimes get the "undefined" message in lieu of data; this appears to happen if the console is trying to update at the same instant the realtime.txt file itself is being updated. For me, it always passes and is replaced by data at the next 5 second console update. (IE8)
Round Rock, Texas, Weather
Cumulus-Based Pages

Twitter: CenTexWX
Facebook: Round Rock Weather Station
Cumulus-Based Pages

Twitter: CenTexWX
Facebook: Round Rock Weather Station
- 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
Yes, I'm trying to capture that problem and get it to ignore it. For now, I resolve it by staggering the timing. So if Cumulus is updating every 5 seconds, refresh the console maybe every 7
- 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
Small update on the code -- I omitted two descriptions for the Beaufort scale
http://wiki.sandaysoft.com/a/WeatherConsole
http://wiki.sandaysoft.com/a/WeatherConsole
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: New addon: Live data on the web
David how about a loop within the JavaScrip file ... and no, I do not know how to do it...daj wrote:Yes, I'm trying to capture that problem and get it to ignore it. For now, I resolve it by staggering the timing. So if Cumulus is updating every 5 seconds, refresh the console maybe every 7
In one of my PHP script I have the following:
Code: Select all
$realtime = 'realtime.txt'; // relative FILE location of realtime.txt
$fileOpenTries = 3; // number of open retries for realtime files
$retrySleepTime = 5; // seconds to wait before next open retry
...
for ($i = $fileOpenTries; $i > 0; $i--) {
$dataraw = file_get_contents($realtime);
if ($dataraw===false)
{
sleep($retrySleepTime);
}
else
{
break;
}
...
- it tries to open the file;
- if it cannot get the content of the file, it waits for 5 seconds (as setup) and tries again to open the file;
- it will repeat the same open/wait loop 3 times (as setup) and then give up...
But, that is a 15 seconds loop and that might be what is needed inside the JavaScript to eventually get the 'realtime.txt' information...
Just a suggestion...
-
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
A question I have is, what do people do with this console. I mean it displays data that is already on your website. It displays data that is already on your desktop(thru Cumulus) so how are others using this application? 
- 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
I only pulled it together as a way of showing key data updating in near realtime. The Standard Cumulus webpages do not refresh once loaded, unless you use CumulusRealtime & Silverlight add-on.
Most people who have customised their weather sites already have auto refreshing pages of data, but this was a very simple start for people who do not -- its a good learning tool too as it was written to be simple to understand and tear apart
Most people who have customised their weather sites already have auto refreshing pages of data, but this was a very simple start for people who do not -- its a good learning tool too as it was written to be simple to understand and tear apart
-
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
OK I can understand that and I do appreciate users like yourself who take a project and run with it. I'll still keep playing with it. On my free hosting site I have to resize the page in order to see the "Popout" and with my FF it only opens in a new tab. With IE it does popout from the browser. I'll keep trying.
Thanks DAJ
Thanks DAJ
- 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
I guess they are inserting adds on the page!bnwrx wrote:On my free hosting site I have to resize the page in order to see the "Popout"
I think there is a setting in FF. I only use FF as my main browser and it is working, but I cant see what setting you may have on/off. (I do test my pages in FF, Safari, Chrome, and IE but FF is my main one)and with my FF it only opens in a new tab. With IE it does popout from the browser.
-
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
I guess they are inserting adds on the page!daj wrote:bnwrx wrote:On my free hosting site I have to resize the page in order to see the "Popout"
Yes thats the price of FREE!
-
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
David,
Thanks for the explanation of the timings... I changed this by mistake when Steve was discussing the time frame for the base unit's data recording (ie from 30 mins ). I've got a few issues with FTP at the moment, which my hosting company are trying to resolve, so I've not been able to try your code. We don't run the PC 24/7 so I agree with you that it might be pointless running an site that requires updated info in realtime
Thanks for the explanation of the timings... I changed this by mistake when Steve was discussing the time frame for the base unit's data recording (ie from 30 mins ). I've got a few issues with FTP at the moment, which my hosting company are trying to resolve, so I've not been able to try your code. We don't run the PC 24/7 so I agree with you that it might be pointless running an site that requires updated info in realtime
Regards
Malcolm
Malcolm
- akasonny
- Posts: 232
- Joined: Mon 15 Jun 2009 4:43 am
- Weather Station: Zephyr TD-1000
- Operating System: Windows 10
- Location: Sahuarita, AZ, USA
- Contact:
Re: New addon: Live data on the web
Handy lil' package, David, thanks.
-
Hillbilly
- Posts: 112
- Joined: Tue 26 Jan 2010 8:54 am
- Weather Station: Davis Vantage Pro2 Plus
- Operating System: Vista Home Premium SP2
- Location: Mayenne, Pays De La Loire, France
- Contact:
Re: New addon: Live data on the web
Thanks for creating this Daj,
I've just installed this and seems to be running well. Handy to be able to leave the popout window running while browsing elsewhere.
I've just installed this and seems to be running well. Handy to be able to leave the popout window running while browsing elsewhere.
-
Synewave
- Posts: 642
- Joined: Mon 25 Jan 2010 1:55 pm
- Weather Station: Watson W-8681
- Operating System: Raspian
- Location: Brighton, UK
- Contact:
Re: New addon: Live data on the web
Daj,
I've installed this recently too, a great "add-on".
I've also used the .JS file to create a dynamic version of my index page, which works very well. I think I am now working towards decreasing the FTP .htm upload frequency, and have your script update the index page on the server only from the realtime.txt file.
Many thanks for this,
I've installed this recently too, a great "add-on".
I've also used the .JS file to create a dynamic version of my index page, which works very well. I think I am now working towards decreasing the FTP .htm upload frequency, and have your script update the index page on the server only from the realtime.txt file.
Many thanks for this,