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

Cumulus Realtime - Loading Data....

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
shaz_au
Posts: 2
Joined: Tue 02 Feb 2010 8:35 am
Weather Station: Fine Offset Clone WH1091
Operating System: Win 7 Ult x64

Cumulus Realtime - Loading Data....

Post by shaz_au »

Hi All,

First off I just wanted to say thanks; I only recently discovered the Cumulus software package and just setup a basic Fine Offset clone weather station and got it all up and running, great software!

I (like a few others on the forum) am having a problem with setting up Cumulus Realtime. I have read the wiki instructions and checked the forum but I still can't work out what I am missing. It gets stuck on Loading Data... the wiki suggests this is a problem with the <realtimeURL> tags but I have checked and double checked with no luck!

Here is the link to my site:http://www.users.on.net/~rssmg2009/weat ... ltime.html

Here is a copy & paste of the CumulusRealtime.xml:
<?xml version="1.0" encoding="utf-8" ?>
<initialisation>
<realtimeURL>http://www.users.on.net/~rssmg2009/weat ... ealtimeURL>
<sitename>R&S D Weather</sitename>
<interval>15</interval>
<gustlabel>Wind Gust</gustlabel>
<windlabel>Wind Speed</windlabel>
<winddirlabel>Wind Direction</winddirlabel>
<templabel>Temp</templabel>
<dewpointlabel>Dew Point</dewpointlabel>
<windchilllabel>Wind Chill</windchilllabel>
<humiditylabel>Humidity</humiditylabel>
<pressurelabel>Pressure</pressurelabel>
<dailyrainlabel>Daily Rain</dailyrainlabel>
<monthlyrainlabel>Monthly Rain</monthlyrainlabel>
<annualrainlabel>Annual Rain</annualrainlabel>
<fullscreenlabel>Full screen</fullscreenlabel>
<backgroundtopcolour>B4B4B4</backgroundtopcolour>
<backgroundbottomcolour>000000</backgroundbottomcolour>
<fontcolour>FFFFFF</fontcolour>
</initialisation>


I can copy and paste the <realtimeURL> address into a web browser and it brings up the realtime.txt file contents fine.

I am wondering if it is a problem with the weird .on.net in the URL? I also have tried removing the ~ from the URL (as the website auto redirects to the correct page without it) to no avail. I did notice when I FTP the .xml file to the webserver and back it does loose the formatting but I all the contents is correct (i've tried ASCII and Auto transfer types in Filezilla FTP with the same result).

Hopefully I haven't missed something too obvious, thanks in advance for the help!

Cheers,
Shannon
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus Realtime - Loading Data....

Post by steve »

If you turn on the error console in your browser, you get this:

Error: Unhandled Error in Silverlight 2 Application ' ' is an unexpected token. The expected token is ';'. Line 4, position 15. at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1, String expectedToken2)
at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(Int32 pos, String expectedToken1, String expectedToken2)
at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(Int32 pos, String expectedToken)
at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos)
at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
at System.Xml.XmlTextReaderImpl.FinishPartialValue()
at System.Xml.XmlTextReaderImpl.get_Value()
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Load(Stream stream, LoadOptions options)
at System.Xml.Linq.XDocument.Load(Stream stream)
at CumulusRealtime.Page.wc_OpenReadCompleted(Object sender, OpenReadCompletedEventArgs e)
at System.Net.WebClient.OnOpenReadCompleted(OpenReadCompletedEventArgs e)
at System.Net.WebClient.OpenReadOperationCompleted(Object arg)
Source File: http://www.users.on.net/~rssmg2009/weat ... ltime.html
Line: 0

Not totally self-explanatory, but the fact that XML is mentioned, along with "Line 4, Position 15", suggests a problem parsing the CumulusRealtime.xml file. Your Line 4 is:

<sitename>R&S D Weather</sitename>

In fact, if you load your xml file into a browser, you get:

XML Parsing Error: not well-formed
Location: http://www.users.on.net/~rssmg2009/weat ... altime.xml
Line Number 4, Column 15: <sitename>R&S D Weather</sitename>
---------------------^

Which confirms it.

I'm pretty sure the problem is the ampersand, you need to encode it for the web, i.e. &
Steve
shaz_au
Posts: 2
Joined: Tue 02 Feb 2010 8:35 am
Weather Station: Fine Offset Clone WH1091
Operating System: Win 7 Ult x64

Re: Cumulus Realtime - Loading Data....

Post by shaz_au »

Hi Steve,

You nailed it!

Just changed it from & to and for testing and reloaded the page, worked straight away.

Thank you, donation incoming!

Cheers,
Shannon
TNETWeather

Re: Cumulus Realtime - Loading Data....

Post by TNETWeather »

You might be able to use:

Code: Select all

<sitename>R&S D Weather</sitename>
Or

Code: Select all

<sitename><![CDATA[R&S D Weather]]></sitename>
To get around that issue.

Both escape the special character & to allow them to be used in XML files.

Other characters that are effected are:

Code: Select all

& 	&
< 	<
> 	>
" 	"
' 	&apos;
jlfutari
Posts: 55
Joined: Sat 30 Jan 2010 9:42 am
Weather Station: La Crosse WS 2355
Operating System: Vista Ultimate SP2
Location: Hobart, Tasmania, Australia
Contact:

Re: Cumulus Realtime - Loading Data....

Post by jlfutari »

Hi there Folks,
I have the same problem as Shaz_au. When you go to my Cumlus web site :- http://www.users.on.net/~freespirit/Wea ... ltime.html the loading data window just hangs. I've read the above post and I'm not sure if my underlying problem is the same.
Can someone help me out?

I love the Culumus software package!

Thanks

James

p.s. my weather station is a La Crosse WS 2355
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus Realtime - Loading Data....

Post by steve »

jlfutari wrote:I've read the above post and I'm not sure if my underlying problem is the same.
No, your problem is that you have tried to use an ftp URL for your realtime.txt file:

<realtimeURL>
ftp://freespirit@ftp.users.on.net/Weather/realtime.txt
</realtimeURL>

It has to be an http URL:

<realtimeURL>
http://www.users.on.net/~freespirit/Wea ... altime.txt
</realtimeURL>

However, your realtime.txt file appears to be empty anyway. Have you configured Cumulus to upload it?
Steve
User avatar
Stig
Posts: 48
Joined: Thu 14 Jan 2010 6:24 pm
Weather Station: WMR928NX
Operating System: Windows 7
Location: Hareskov near Copenhagen
Contact:

Re: Cumulus Realtime - Loading Data....

Post by Stig »

Hi Steve
I am trying to get the realtime module running, when I call the realtime link, the realtime page loads, but instead of my link
www.hareskovvejr.dk/CumulusRealtime.html I get this message in the top left corner {HttpWebRequest_WebException_RemoteServer}
I have the swf file, and the realtime.txt file in the same folder as Cumulus. could you tell me what is wrong,

Stig
Hareskovvejr.dk
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus Realtime - Loading Data....

Post by steve »

Stig wrote:could you tell me what is wrong
You don't seem to have a CumulusRealtime.xml file (the configuration file). Or perhaps your web server doesn't support XML files?
Steve
jlfutari
Posts: 55
Joined: Sat 30 Jan 2010 9:42 am
Weather Station: La Crosse WS 2355
Operating System: Vista Ultimate SP2
Location: Hobart, Tasmania, Australia
Contact:

Re: Cumulus Realtime - Loading Data....

Post by jlfutari »

Hi Steve,
As far as I'm aware I have configured Cumulus to upload realtime data. I agree , I have no data in my realtime.txt file on my ftp server. In Cumulus -->configuration --> internet, I have ticked the 'Enable realtime' box. Is there anything else more i need to do?
Thanks

James
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: Cumulus Realtime - Loading Data....

Post by daj »

jlfutari wrote:Hi Steve,
As far as I'm aware I have configured Cumulus to upload realtime data. I agree , I have no data in my realtime.txt file on my ftp server. In Cumulus -->configuration --> internet, I have ticked the 'Enable realtime' box. Is there anything else more i need to do?
James

Your Realtime URL is wrong in your XML file

You have it as

Code: Select all

ftp://freespirit@ftp.users.on.net/Weather/realtime.txt
it should be
It is the location of the file, as seen via a web browser not an FTP client. I can see data in http://www.users.on.net/~freespirit/Wea ... altime.txt
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus Realtime - Loading Data....

Post by steve »

jlfutari wrote:I have ticked the 'Enable realtime' box. Is there anything else more i need to do?
It seems to be working now - did you do anything? Anyway, all you need to do now is fix your XML file.
Steve
User avatar
Stig
Posts: 48
Joined: Thu 14 Jan 2010 6:24 pm
Weather Station: WMR928NX
Operating System: Windows 7
Location: Hareskov near Copenhagen
Contact:

Re: Cumulus Realtime - Loading Data....

Post by Stig »

I found the CumulusRealtime.xml file (the configuration file), every thing runs smooth now :) :clap:
thanks

Stig

www.hareskovvejr.dk
jlfutari
Posts: 55
Joined: Sat 30 Jan 2010 9:42 am
Weather Station: La Crosse WS 2355
Operating System: Vista Ultimate SP2
Location: Hobart, Tasmania, Australia
Contact:

Re: Cumulus Realtime - Loading Data....

Post by jlfutari »

Hey daj,
Thanks for the help. Everything is working now!
:)

James
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: Cumulus Realtime - Loading Data....

Post by Hillbilly »

I've just set up Realtime guages. They're working fine on my machines here, running IE8 and Firefox. A friend has tried to view them from his end and says they stick on loading data. He is also running Cumulus and his own realtime guages which work for him.

Has anyone any ideas about where I would start to diagnose and fix this?
http://www.lalocherie.com/weather/CumulusRealtime.html
Many thanks
Helen

La Locherie Weather
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: Cumulus Realtime - Loading Data....

Post by daj »

Helen

Are you sure it is sticking, or is your friend just impatient? CumulusRT shows the "Loading Data" message for the first run on the <interval>, in your case 10 seconds, before it shows anything.
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
Post Reply