Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed May 22, 2013 8:01 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: realtime gauges and different domain names
PostPosted: Mon Oct 05, 2009 10:51 am 
Offline

Joined: Mon Jun 08, 2009 10:33 am
Posts: 19
Location: Vilnius, Lithuania
Weather Station: Velleman WS1080
Operating System: Win2003srv R2 SP2
Hi. My site is accessible both using http://www.site.com and just site.com. However, for realtime gauges the data file url is hard coded into preferences, and it is absolute path. So if the preferences file is configured for site.com, someone who came to http://www.site.com/weather/realtime.htm sees only the "loading" window, the data is never loaded.

_________________
http://noway.lt/weather


Top
 Profile  
 
 Post subject: Re: realtime gauges and different domain names
PostPosted: Mon Oct 05, 2009 11:52 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17567
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
This is because of Silverlight's network access security restrictions, which don't allow cross-domain access by default.

You can override the security check, as I have done on sanday.org.uk, by placing a file called clientaccesspolicy.xml in the root of your web space, containing the following:
Code:
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-from>
        <domain uri="*"/>
      </allow-from>
      <grant-to>
        <resource path="/" include-subpaths="true"/>
      </grant-to>
    </policy>
  </cross-domain-access>
</access-policy>


The above example allows access from everywhere. Instead of the <domain uri="*"/> line, you can if you wish restrict access just to specific domains, e.g:

Code:
<allow-from>
  <domain uri="http://sanday.org.uk/"/>
  <domain uri="http://www.sanday.org.uk/"/>
</allow-from>


You could also, if you wish, change the resource path to restrict access just to the appropriate parts of your web site.

See here for lots more details - http://msdn.microsoft.com/en-us/library/cc645032%28VS.95%29.aspx

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: realtime gauges and different domain names
PostPosted: Mon Oct 05, 2009 12:13 pm 
Offline

Joined: Mon Jun 08, 2009 10:33 am
Posts: 19
Location: Vilnius, Lithuania
Weather Station: Velleman WS1080
Operating System: Win2003srv R2 SP2
Thanks, Steve! This worked like a charm. Also, helped to get rid of "file not found" errors in apache's access.log.

_________________
http://noway.lt/weather


Top
 Profile  
 
 Post subject: Re: realtime gauges and different domain names
PostPosted: Wed May 23, 2012 2:12 pm 
Offline
User avatar

Joined: Thu Sep 22, 2011 5:22 pm
Posts: 563
Location: Newton Poppleford, Devon, UK
Weather Station: Davis Vantage Vue
Operating System: Windows 7 SP2
Hello There, I have the same problem. I have copied in the code from steve's post but still have problems. Please help asap!

Will

_________________
William Grimsley - Newton Poppleford Weather
http://www.newton-poppleford-weather.co.uk
Davis Vantage Vue - Cumulus v1.9.4-b1076

Image


Top
 Profile  
 
 Post subject: Re: realtime gauges and different domain names
PostPosted: Wed May 23, 2012 2:39 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17567
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
It's impossible to help without a link.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: realtime gauges and different domain names
PostPosted: Wed Oct 10, 2012 6:43 pm 
Offline

Joined: Wed Oct 10, 2012 6:33 pm
Posts: 2
Location: Italy
Weather Station: ProWeatherStation
Operating System: Vista
Hello Steve,
at first thank you and congratulation for your great piece of software such Cumulus is!
I'm very new to the weather world, and with your software I just found what I was looking for, that is, the way to upload my friend's weather station data to the internet!


Cumulus is working fine on the computer, it keeps on sending the weather data to the website properlky, as you can see it here:
http://meteo.lasotta.inossola.it/index.htm

But I'm having the same problem with Cumulus Realtime: the page gets stuck at loading...
I've read your faq at http://wiki.sandaysoft.com/a/CumulusRealtime, and then this post, but I'm still having the same problem.

Here are the web station details, and apparently everything seems to be allright:
http://meteo.lasotta.inossola.it/realtime.txt
http://meteo.lasotta.inossola.it/CumulusRealtime.xml
http://meteo.lasotta.inossola.it/clientaccesspolicy.xml


Do you have any suggestion on what could be the issue and how to solve it?


Thank you and see you soon!
Frank


Top
 Profile  
 
 Post subject: Re: realtime gauges and different domain names
PostPosted: Wed Oct 10, 2012 7:00 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17567
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
LaSotta wrote:
Do you have any suggestion on what could be the issue and how to solve it?


<realtimeURL>/realtime.txt</realtimeURL>

You have to supply a URL for the realtime.txt file, i.e.

<realtimeURL>http://meteo.lasotta.inossola.it/realtime.txt</realtimeURL>

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: realtime gauges and different domain names
PostPosted: Thu Oct 11, 2012 6:17 pm 
Offline

Joined: Wed Oct 10, 2012 6:33 pm
Posts: 2
Location: Italy
Weather Station: ProWeatherStation
Operating System: Vista
Hello Steve,
great help from you, now the realtime page is working!!

Actually, in the beginning I had already written the full URL as suggested, but it wasn't working as well...
But now, as I've restored that string again, it is magically working!


Fine, now I'm trying to figure it out why the Twitter posting is not working. I'll do some more tests and checks, and in case of need I'll make a new post for it...


Thank you so much!
Frank


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group