Re: Widget PSW problem with the Website
Posted: Thu Nov 10, 2011 1:45 am
Hi Jaime,
I checked your widget code and I think it is OK. My PWS is working with WsWin and so I’m not able to say your xml is right.
In my case the xml looks like this and something is different … but it may be the difference between WsWin and WeatherDisplay?
<?xml version="1.0" encoding="utf-8" ?>
- <response>
- <current_weather>
- <temperature unit="c">
<current value="15.2" />
</temperature>
<humidity value="77" />
<pressure value="1019.2" />
<pressure value="num" trend="num" unit="ws_baro24h%" />
<visibility value="dunkel ! - 6-10 km" />
- <wind>
<speed value="0.0" />
<direction value="22" />
</wind>
- <sky>
- <clouds>
<icon id="8" format="ws-win" />
</clouds>
- <precipitation>
- <rain>
<daily_total value="0.0" />
</rain>
- <precipitation>
<amount value="0.0" />
</precipitation>
<rate value="0.0" />
</precipitation>
<description value="" />
</sky>
- <auto_update>
<interval value="900" />
</auto_update>
</current_weather>
</response>
So I’m missing the encoding and the units in your xml. But on the other hand it seems OK when the function of your PWS is given on your desktop Yowindow.
My last idea is, Yowindow is not able to read your xml-file because it is missing the crossdomain.xml. Are you sure to use the right file and you have uploaded it DIRECTLY into the main root directory?
Werner
I checked your widget code and I think it is OK. My PWS is working with WsWin and so I’m not able to say your xml is right.
In my case the xml looks like this and something is different … but it may be the difference between WsWin and WeatherDisplay?
<?xml version="1.0" encoding="utf-8" ?>
- <response>
- <current_weather>
- <temperature unit="c">
<current value="15.2" />
</temperature>
<humidity value="77" />
<pressure value="1019.2" />
<pressure value="num" trend="num" unit="ws_baro24h%" />
<visibility value="dunkel ! - 6-10 km" />
- <wind>
<speed value="0.0" />
<direction value="22" />
</wind>
- <sky>
- <clouds>
<icon id="8" format="ws-win" />
</clouds>
- <precipitation>
- <rain>
<daily_total value="0.0" />
</rain>
- <precipitation>
<amount value="0.0" />
</precipitation>
<rate value="0.0" />
</precipitation>
<description value="" />
</sky>
- <auto_update>
<interval value="900" />
</auto_update>
</current_weather>
</response>
So I’m missing the encoding and the units in your xml. But on the other hand it seems OK when the function of your PWS is given on your desktop Yowindow.
My last idea is, Yowindow is not able to read your xml-file because it is missing the crossdomain.xml. Are you sure to use the right file and you have uploaded it DIRECTLY into the main root directory?
Werner