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 )
<!-- 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°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 °"/>
</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!
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 (89.09 KiB) Viewed 24787 times
»Man is impressive. In a universe full of untold secrets he has invented boredom.«
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.
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.
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 !!!
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.