Yo window + weather display always shows sunny

scubacat
Posts: 15
Joined: Thu Apr 04, 2013 9:44 am
Name: Steve

Yo window + weather display always shows sunny

Post by scubacat »

Hi All

My first post, help
I have setup yo window and weather display as a widget on my website. I have followed the setup procedure via the help but the sky is always showing sunny. The data is dragged from weather dispaly and is updating correctly after 5 mins. I must admit I am a bit confused at what the customyowindow.txt file actually does ??? I have edited this in notepad as I have no uv or solar sensors. I have placed this file in the same location as the xml file (which is updating correcty). So I think what I am tyring to achieve is that the temp etc info is supplied by my PWS(which it does) but the actual "conditions are supplied via yo window (sky condtions )

Here is the website http://www.stnichweather.co.uk

Here is the code I am using.

Code: Select all

<div style="width:650px; height:400px;">
    <object type="application/x-shockwave-flash" data="http://swf.yowindow.com/yowidget3.swf" width="650" height="400">
    	<param name="movie" value="http://swf.yowindow.com/yowidget3.swf"/>
    	<param name="allowfullscreen" value="true"/>
    	<param name="wmode" value="opaque"/>
    	<param name="bgcolor" value="#FFFFFF"/>
    	<param name="flashvars" 
    	value="location_id=gn:2643044&location_name=St%20Nicholas%20at%20Wade&current_weather_url=http://catt.dyndns-at-home.com:8080/library/yowindow.xml&landscape=http://catt.dyndns-at-home.com:8080/stnichyo/stnichyo.ywl&time_format=24&unit_system=uk&background=#FFFFFF&copyright_bar=false"
    />
        <a href="http://WeatherScreenSaver.com?client=widget&link=copyright"
        style="width:650px;height:400px;display: block;text-indent: -50000px;font-size: 0px;background:#DDF url(http://yowindow.com/img/logo.png) no-repeat scroll 50% 50%;"
        >Screen Saver</a>
    </object>
</div>
<div style="width: 650px; height: 15px; font-size: 14px; font-family: Arial,Helvetica,sans-serif;">
	<span style="float:left;"><a target="_top" href="http://WeatherScreenSaver.com?client=widget&link=copyright" style="color: #2fa900; font-weight:bold; text-decoration:none;" title="Screen Saver">ScreenSaver</a></span>
	<span style="float:right; color:#888888;">Forecast by&nbsp;<a href="http://yr.no" style="color: #2fa900; text-decoration:none;">yr.no</a></span>
</div>

    </div></div>
Cheers Steve
Last edited by ikarus1969 on Thu Apr 04, 2013 12:57 pm, edited 1 time in total.
Reason: inserted the [code]-tag
User avatar
Mallorca
Posts: 1757
Joined: Sun Jul 11, 2010 8:59 am
Name: Werner Heidotting
Location: Son Servera, Mallorca, Spain
Contact:

Re: Yo window + weather display always shows sunny

Post by Mallorca »

Hi Steve, welcome to our forum.
Parts of the live data are from your PWS and the weather situation from Yowindow.

So it is not a problem of Yowindow. The fault must be in the data of Weather Display.
I moved your post to this special topic.

Werner
jmcmurry
Posts: 368
Joined: Tue Oct 13, 2009 11:09 am
Name: Jim
Location: Mauston, WI, USA
Contact:

Re: Yo window + weather display always shows sunny

Post by jmcmurry »

When I go to http://catt.dyndns-at-home.com:8080/lib ... window.xml I see an error, so perhaps when you did your editing something went wrong?

- Jim
scubacat
Posts: 15
Joined: Thu Apr 04, 2013 9:44 am
Name: Steve

Re: Yo window + weather display always shows sunny

Post by scubacat »

Hi Jim

When I open the xml file in notepad thius is what I get. It appears to be updating ok. Have I edited it wrong ??

Code: Select all

<!-- St_Nicholas_At_Wade 04/04/13 15:48 -->
<!-- Remove auto_update section if wanting the default, otherwise in seconds -->
<!-- Remove snow section if not inputting snow -->
<!-- Remove the uv and solar tags if those sensors aren't present -->
<response>    
  <current_weather> 
    <auto_update>
      <interval value="300"/> 
    </auto_update>  
    <temperature>
      <current value="3.8&deg;C"/> 
      <feels_like value="-2"/> 	  
    </temperature>	
    <humidity value="69"/> 
    <pressure value="1011.9" trend="-0.0"/> 
    <wind> 
      <speed value="3.9"/> 
      <gusts value="8.7"/> 	  
      <direction value="37 &deg;"/> 
    </wind> 
    <sky> 
      <icon id="5" format="wd"/> 
      <description value="Dry"/> 
      <precipitation> 
        <rain>
          <rate value="0.0"/>
          <daily_total value="  0.0 mm"/>
        </rain>	 
      </precipitation> 
    </sky>     
  </current_weather> 
</response>
Cheers Steve
Last edited by ikarus1969 on Thu Apr 04, 2013 5:20 pm, edited 1 time in total.
Reason: sorrounded the code with the code-tag. Please, girls & guys: use the code-tag "[code][/code]" when posting code! Thanks!
ikarus1969
Posts: 1645
Joined: Wed Nov 18, 2009 9:58 am
Location: Vienna, Austria

Re: Yo window + weather display always shows sunny

Post by ikarus1969 »

With "error" we mean the following: when entering the url into a browser - in the following screenshot it's firefox - we get the following error: "not a defined entity" in line 11 at column 7
YoWindow - not defined entity.jpg
YoWindow - not defined entity.jpg (89.09 KiB) Viewed 23808 times
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
scubacat
Posts: 15
Joined: Thu Apr 04, 2013 9:44 am
Name: Steve

Re: Yo window + weather display always shows sunny

Post by scubacat »

Thanks guys

I have set the customyowindow.txt file to NO in the weather display set up. It appears that for some reason you can now view the xml file in a browser now and you could not do this before.

Here it is http://catt.dyndns-at-home.com:8080/lib ... window.xml

Am I correct in saying that you need one file or the other ? what I mean is do you use the weather display generated xml or edit the customyowindow.txt file and use that instead, after it has been edited without the uv sensors in the text ?

Where do you point the widget to ? See previous code pasted.

Cheers

Steve
jmcmurry
Posts: 368
Joined: Tue Oct 13, 2009 11:09 am
Name: Jim
Location: Mauston, WI, USA
Contact:

Re: Yo window + weather display always shows sunny

Post by jmcmurry »

Whatever you've done, it seems to be working on your site now.

- Jim
scubacat
Posts: 15
Joined: Thu Apr 04, 2013 9:44 am
Name: Steve

Re: Yo window + weather display always shows sunny

Post by scubacat »

Thanks Jim

I think I forgot to untick the units box in the file uploads page on WD. The xml seems to visible from a browser now after rebooting WD. The mycustomyowindow.txt appears to be working now.

Jim, What I am trying to acheive is that yo window pulls data from PWS (as it does) but not the sky conditions from my PWS.
When I view the condtions from yo window as a screensaver (on another pc) where the data is pulled from the same metar the sky is different, I.e it has some clouds etc, where as mine is just showing brilliant sunshine ! (in the day of course)
I want temp etc from the station but the actual sky conditions to still be taken from yo window, as I have no uv sensors I have removed them from the custommyyowindow.txt as suggested.

I think the code somewhere needs changing but dont know what part ???. I thought by removing the uv sensors line from the .txt file it would automatically take sky condotions from yo window. I think it must need editing in the "sky" part of the code !!!

Any suggestions

Thanks for your input

Steve
jmcmurry
Posts: 368
Joined: Tue Oct 13, 2009 11:09 am
Name: Jim
Location: Mauston, WI, USA
Contact:

Re: Yo window + weather display always shows sunny

Post by jmcmurry »

I've never tried it, but I think you should be able to remove the icon and description lines from the sky portion of the xml to achieve what you want. I believe YoWindow will then use METAR info for that missing data. It's worth a try.

- Jim
scubacat
Posts: 15
Joined: Thu Apr 04, 2013 9:44 am
Name: Steve

Re: Yo window + weather display always shows sunny

Post by scubacat »

Thanks Jim

I will give it a go, watch this space !

Cheers Steve
Post Reply