Page 1 of 2

Cumulus Realtime - Loading Data....

Posted: Tue 02 Feb 2010 9:01 am
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

Re: Cumulus Realtime - Loading Data....

Posted: Tue 02 Feb 2010 9:08 am
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. &

Re: Cumulus Realtime - Loading Data....

Posted: Tue 02 Feb 2010 9:20 am
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

Re: Cumulus Realtime - Loading Data....

Posted: Tue 02 Feb 2010 10:11 am
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;

Re: Cumulus Realtime - Loading Data....

Posted: Thu 04 Feb 2010 5:00 am
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

Re: Cumulus Realtime - Loading Data....

Posted: Thu 04 Feb 2010 8:49 am
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?

Re: Cumulus Realtime - Loading Data....

Posted: Thu 04 Feb 2010 1:39 pm
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

Re: Cumulus Realtime - Loading Data....

Posted: Thu 04 Feb 2010 1:48 pm
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?

Re: Cumulus Realtime - Loading Data....

Posted: Thu 04 Feb 2010 2:49 pm
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

Re: Cumulus Realtime - Loading Data....

Posted: Thu 04 Feb 2010 2:57 pm
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

Re: Cumulus Realtime - Loading Data....

Posted: Thu 04 Feb 2010 2:58 pm
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.

Re: Cumulus Realtime - Loading Data....

Posted: Thu 04 Feb 2010 4:24 pm
by Stig
I found the CumulusRealtime.xml file (the configuration file), every thing runs smooth now :) :clap:
thanks

Stig

www.hareskovvejr.dk

Re: Cumulus Realtime - Loading Data....

Posted: Fri 05 Feb 2010 12:58 am
by jlfutari
Hey daj,
Thanks for the help. Everything is working now!
:)

James

Re: Cumulus Realtime - Loading Data....

Posted: Thu 11 Feb 2010 9:46 am
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

Re: Cumulus Realtime - Loading Data....

Posted: Thu 11 Feb 2010 9:48 am
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.