PWS not seeing in Widget3

YoWindow widget Questions, Suggestions and Bugs
Post Reply
Meeterea

PWS not seeing in Widget3

Post by Meeterea »

Hello,

Since the new widget version 3, I see my PWS data not in the widget. What goes wrong here? :%)
The Widget shows "not available" ("niet beschikbaar" in Dutch), but does let see the ten-day forecast, only the actual data is not visible.
The YoWindow desktop version 2.0 build 510 on my PC shows these data good, so it has to do with the widget seems!

Who can help me to fix this? :good:

Data:
Widget image: http://imageshack.us/photo/my-images/256/image1he.jpg/
YoWindow desktop image: http://imageshack.us/photo/my-images/696/image2bjt.jpg/
Link to the xml: http://www.amvih.nl/weer/yowindow.xml
Website link: http://www.amvih.nl/verwachtingen.html
Crossdomain link: http://www.amvih.nl/crossdomain.xml
IE9 (32 bits)
Adobe flashplayer 11
Windows 7 home premium (64 bits)

A little piece copied out from the widget:
value="location_id=2757872&location_name=Culemborg&current_weather_url=http://www.amvih.nl/weer/yowindow.xml&time_format=24&us=metric&lang=nl&background=#FFFFFF&view_direction=0
&copyright_bar=false"


I cleared also internet explorers cache, but nothing seems to work!

Who can give me the solution?

Thanks in advance! :beer:

gr.
Arie
Culemborg (The Netherlands)
User avatar
hermanz
Posts: 1892
Joined: Thu Apr 08, 2010 3:21 pm
Name: Herman
Location: Nieuwegein, Netherlands

Re: PWS not seeing in Widget3

Post by hermanz »

Hi Arie :good:

Welcome on this forum

your pws xml is missing the following code (red):

<?xml version="1.0" encoding="UTF-8" ?>
- <response>
- <current_weather>
- <temperature>
<current value="4.5" />
<feels_like value="0.3" />
</temperature>
<humidity value="82" />
<pressure value="1020.8" />
<visibility value="18.2" unit="km" />
- <wind>
<speed value="21" unit="kph" />
<direction value="248" />
</wind>
- <sky>
- <precipitation>
- <rain>
<rate value="0.0" />
<daily_total value="1.0" />
</rain>
</precipitation>
<description value="licht bewolkt" />
</sky>
<uv value="14" />
<solar radiation="200 W/m2" energy="11 kLUX" />
</current_weather>
</response>

see also the results : http://hermanz.nl/index.php/nl/weer-ani ... -culemborg

gr.
Herman :beer:
(Wheather on an I(phone,pad,pod) or Android, YoWindow what else )
Meeterea

Re: PWS not seeing in Widget3

Post by Meeterea »

Herman,

This didn't work, is still says no available.
I have then taken the script from the forum under WsWin and that works fine. :)

Code: Select all

<!-- %customfile=yowindow.xml% -->
<?xml version="1.0" encoding="iso-8859-1"?>
%unit_off% %alwaysseppoint_on%

    <response>
       <current_weather>
           <temperature value="%curval[0]%"/>
           <humidity value="%curval[19]%"/>
           <pressure value="%curval[33]%"/>
           <visibility value="%horiz_view%"/>
           <wind>
              <speed value="%ws_newunit[45]=1%%curval[45]%"/>
              <direction value="%curval[36]%"/>
           </wind>
           <sky>
             <description value="%suntxt%"/>
             <clouds>
                <icon id="%suneighth%" format="ws-win"/>
                
             </clouds>
           <precipitation>
             <rain rate="%rainrate%"/>
             <snow level="%snowheight%"/>
           </precipitation>
           </sky>
       </current_weather>
    </response>  
But I want to remove the data between "<sky>" and </sky> and replace it with the data of a metar station.
But when I do this the widget shows again not available. :(
What goes wrong?

New yowindow.xml file then:

Code: Select all

<!-- %customfile=yowindow.xml% -->
<?xml version="1.0" encoding="iso-8859-1"?>
%unit_off% %alwaysseppoint_on%

    <response>
       <current_weather>
           <temperature value="%curval[0]%"/>
           <humidity value="%curval[-1]%"/>
           <pressure value="%curval[33]%"/>
           <wind>
              <speed value="%ws_newunit[45]=1%%curval[45]%"/>
              <direction value="%curval[36]%"/>
           </wind>
       </current_weather>
    </response>
A little piece copied out from the new widget:

Code: Select all


value="location_id=2757872&location_name=Culemborg&current_weather_url=http://www.amvih.nl/weer/yowindow.xml&current_weather_icao=EHDL&i_temperatureRange=false&i_feelsLike=false&i_observeTime=false&view_direction=0&time_format=24&unit_system=metric&lang=nl&background=#FFFFFF&mini_temperature=true&mini_time=true&mini_locationBar=true&mini_momentBar=true&copyright_bar=false



Any help is welcome!

Thanks in advance!

gr.
Arie
Meeterea

Re: PWS not seeing in Widget3

Post by Meeterea »

Problem solved!

I use now this code:

Code: Select all

<!-- %customfile=yowindow.xml% -->
<?xml version="1.0" encoding="iso-8859-1"?>
%unit_off% %alwaysseppoint_on%

    <response>
       <current_weather>
           <temperature value="%curval[0]%"/>
           <humidity value="%curval[-1]%"/>
           <pressure value="%curval[33]%"/>
           <wind>
              <speed value="%curval[45]%" unit="kph"/>
              <direction value="%curval[36]%"/>
           </wind>
           <sky>
             <precipitation>
               <rain rate="%rainrate%"/>
               <snow level="--"/>
             </precipitation>
           </sky>
       </current_weather>
    </response>


Thanks to Herman for his input.

gr.
Arie
User avatar
hermanz
Posts: 1892
Joined: Thu Apr 08, 2010 3:21 pm
Name: Herman
Location: Nieuwegein, Netherlands

Re: PWS not seeing in Widget3

Post by hermanz »

:Yahoo!: :good:
(Wheather on an I(phone,pad,pod) or Android, YoWindow what else )
Post Reply