Page 1 of 2

Hosting On My Own PC

Posted: Tue 13 Sep 2011 7:24 pm
by intercomp
Dear All,
I have just discovered and then installed Cumulus 1.9.1 :D

I am hosting my site from a server in the garage and it is all working well except I cannot get CumulusRealtime to update from the realtime.txt file. I know the problem is almost certainly with the path in CumulusRealtime.xml but I cannot for the life of me see what's wrong.

Because I am not hosting the site remotely my path is not an internet based URL but a local drive, so can anyone please help me with what I should set the realtimeURL statement to read.

The web site is hosted from C:\inetpub\wwwroot\ if that helps and realtime.txt is currently in that folder.

Any help would be gratefully received.

My weather station is at http://www.intercomp.org.uk

Re: Hosting On My Own PC

Posted: Tue 13 Sep 2011 7:33 pm
by steve
You'll have to use a URL and not a local file path, so you need to use http://www.intercomp.org.uk/realtime.txt

Re: Hosting On My Own PC

Posted: Tue 13 Sep 2011 8:04 pm
by intercomp
Thanks Steve

I will give it a try

Best Regards

Re: Hosting On My Own PC

Posted: Wed 14 Sep 2011 12:40 am
by gemini06720
As Steve indicated, you must use a URL and not a path - for my local/internal network I use:

Code: Select all

<realtimeURL>http://localhost/cumulus/realtime.txt</realtimeURL>
Depending how your server is being accessed (from a browser point-of-view), there are two possible ways of doing this (assuming the 'realtime.txt' file is in the root directory of your local server) :
  • - accessing your server using this URL: "http://localhost/"

    Code: Select all

    <realtimeURL>http://localhost/realtime.txt</realtimeURL>
    or
    <realtimeURL>http://127.0.0.1/realtime.txt</realtimeURL>
    - accessing your server using this URL: "http://www.intercomp.org.uk/"

    Code: Select all

    <realtimeURL>http://www.intercomp.org.uk/realtime.txt</realtimeURL>

Re: Hosting On My Own PC

Posted: Wed 14 Sep 2011 9:06 pm
by intercomp
Got it going now.

There were two problems, the first was the URL, thank you both for helping me with that.

The other was a 2104 error in silverlight which I fixed by setting the MIME type in IIS

Once again thankyou for all your help

Regards

John

www.intercomp.org.uk/realtime/cumulusrealtime.html

Re: Hosting On My Own PC

Posted: Sat 17 Sep 2011 12:05 am
by MickinMoulden
intercomp wrote:Got it going now.

There were two problems, the first was the URL, thank you both for helping me with that.

The other was a 2104 error in silverlight which I fixed by setting the MIME type in IIS

Once again thankyou for all your help

Regards

John

http://www.intercomp.org.uk/realtime/cu ... ltime.html
I've got the same problem, in that realtime doesn't work and I host from my computer. But these explanations I don't understand. Where is the URL that I presume needs changing, and how do I know if I have a Silverlight error?

Re: Hosting On My Own PC

Posted: Sat 17 Sep 2011 8:29 am
by steve
MickinMoulden wrote:Where is the URL that I presume needs changing,
It's in the CumulusRealtime.xml file supplied with the Cumulus Realtime download. At the beginning of the readme.txt supplied, it says:

"Edit the file CumulusRealtime.xml to set the options. You will
need to change the "realtimeURL" and "sitename" at the very
least - unless you actually want to display my data!

The "realtimeURL" should be the URL of your realtime.txt file."

This is what those items look like as supplied:

<realtimeURL>http://www.sanday.org.uk/weather/realti ... ealtimeURL>
<sitename>Sanday weather</sitename>
and how do I know if I have a Silverlight error?
One way is to look at the "error console" in your browser when you load the page. In Firefox, you open it from the 'Web Developer" menu off the Orange Firefox menu.

If you give a link to your Cumulus Realtime page, I'll have a look.

Re: Hosting On My Own PC

Posted: Mon 19 Sep 2011 3:27 am
by MickinMoulden
Ok, sorry guys, I thought you were talking about the realtime gauges on the "gauges" page, which doesn't work for me. But now I have added the "Cumulusrealtime.html" page and made the changes to the .xml to read:
<realtimeURL>http://palmerston-weather.no-ip.org:888 ... ealtimeURL>
<sitename>Palmerston Weather</sitename>
. However, I come up with the Error:

Code: Select all

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.1; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; InfoPath.3)
Timestamp: Mon, 19 Sep 2011 03:21:56 UTC


Message: 'console' is undefined
Line: 24
Char: 3
Code: 0
URI: http://10.1.1.3:8888/CumulusRealtime.html


Message: Unhandled Error in Silverlight 2 Application 
Code: 2104    
Category: InitializeError       
Message: 2104 An error has occurred.     

Line: 53
Char: 13
Code: 0
URI: http://10.1.1.3:8888/CumulusRealtime.html

By the way, the error "Console is undefined", appears on any webpage I visit, even if it's not mine.
Web page is http://palmerston-weather.no-ip.org:888 ... ltime.html

Re: Hosting On My Own PC

Posted: Mon 19 Sep 2011 11:06 am
by intercomp
When connecting to your realtime URL I get the 2104 error. I used Steve's post to cure the 2104 problem with my installation as shown below.

"The most likely cause is that your IIS installation isn't configured for Silverlight applications: http://learn.iis.net/page.aspx/262/conf ... lications/"

I do not get the "Console Undefined" message when connecting to your site so I suspect it could be a browser issue, especially as it happens when connecting to other sites.

Regards

John

Re: Hosting On My Own PC

Posted: Mon 19 Sep 2011 1:15 pm
by MickinMoulden
I couldn't configure it. I couldn't even figure it out! I couldn't even find the Internet Information Services Manager. I do however have Silverlight 4 installed. Any ideas?

Re: Hosting On My Own PC

Posted: Mon 19 Sep 2011 1:24 pm
by uncle_bob
MickinMoulden wrote:I couldn't configure it. I couldn't even figure it out! I couldn't even find the Internet Information Services Manager. I do however have Silverlight 4 installed. Any ideas?
IIS manager is under Administrative tools.

Re: Hosting On My Own PC

Posted: Mon 19 Sep 2011 1:32 pm
by MickinMoulden
I clicked on "Control Panel" then "Administrative Tools" and there is no IIS.

Re: Hosting On My Own PC

Posted: Mon 19 Sep 2011 2:10 pm
by uncle_bob
I'll have to take a stab in the dark as Web stuff isn't my thing, but are you actually running IIS, not php or something like that?

Re: Hosting On My Own PC

Posted: Mon 19 Sep 2011 7:24 pm
by steve
If you're not using IIS, then perhaps you are using Apache? Whatever web server software you are using, you need to configure it for the Silverlight MIME types.

Re: Hosting On My Own PC

Posted: Mon 19 Sep 2011 7:25 pm
by intercomp
Are you hosting the site from your XP Machine or is it hosted by your ISP ?

If it is on your XP machine, what software are you using as a web server?