WorldWeather plugin v1.10.0 for MediaPortal 1.3.0 and higher (7 Viewers)

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    4,646
    3,102
    Nuenen
    Home Country
    Netherlands Netherlands
    I think there's something going wrong with parsing the windspeed from yahoo weather. For Nuenen, NL it says 805 km/h, but I don't see any trees/cars flying around.
    btw, on the website itself it's presented as 8.05 km/h
    Edit: same for visibility.
    I do have english culture settings (, for thousand sep . for decimal sep) but I'm living in the netherlands
     
    Last edited:

    Micropolis

    Portal Pro
    July 22, 2009
    1,588
    1,796
    Bavaria
    Home Country
    Germany Germany
    Hi doskabouter,
    ... I think there's something going wrong with parsing the windspeed from yahoo weather. For Nuenen, NL it says 805 km/h, but I don't see any trees/cars flying around...
    there is a good and a bad news. The good news, I am happy that you have suffered no injuries there. The bad news: I can't reproduce this issue. If you (or other users) can reproduce the parsing problem, please open the troubleshooting URL from Yahoo (see manual) including your specific location code in a web browser and post the XML-structure here.

    Thanks, Micropolis
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,646
    3,102
    Nuenen
    Home Country
    Netherlands Netherlands
    Here it is.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
    <channel>

    <title>Yahoo! Weather - Nederwetten, NL</title>
    <link>http://us.rd.yahoo.com/dailynews/rs...her.yahoo.com/forecast/NLXX0007_f.html</link>
    <description>Yahoo! Weather for Nederwetten, NL</description>
    <language>en-us</language>
    <lastBuildDate>Fri, 19 Oct 2012 7:23 pm CEST</lastBuildDate>
    <ttl>60</ttl>
    <yweather:location city="Nederwetten" region="NB" country="Netherlands"/>
    <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
    <yweather:wind chill="64" direction="170" speed="7" />
    <yweather:atmosphere humidity="77" visibility="6.21" pressure="29.85" rising="0" />
    <yweather:astronomy sunrise="8:09 am" sunset="6:34 pm"/>
    <image>
    <title>Yahoo! Weather</title>
    <width>142</width>
    <height>18</height>
    <link>http://weather.yahoo.com</link>
    <url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
    </image>
    <item>
    <title>Conditions for Nederwetten, NL at 7:23 pm CEST</title>
    <geo:lat>51.49</geo:lat>
    <geo:long>5.52</geo:long>
    <link>http://us.rd.yahoo.com/dailynews/rs...her.yahoo.com/forecast/NLXX0007_f.html</link>
    <pubDate>Fri, 19 Oct 2012 7:23 pm CEST</pubDate>
    <yweather:condition text="Light Drizzle" code="9" temp="64" date="Fri, 19 Oct 2012 7:23 pm CEST" />
    <description><![CDATA[
    <img src="http://l.yimg.com/a/i/us/we/52/9.gif"/><br />
    <b>Current Conditions:</b><br />
    Light Drizzle, 64 F<BR />
    <BR /><b>Forecast:</b><BR />
    Fri - Partly Cloudy. High: 73 Low: 60<br />
    Sat - Mostly Cloudy. High: 66 Low: 55<br />
    <br />
    <a href="http://us.rd.yahoo.com/dailynews/rs...ther.yahoo.com/forecast/NLXX0007_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
    (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
    ]]></description>
    <yweather:forecast day="Fri" date="19 Oct 2012" low="60" high="73" text="Partly Cloudy" code="29" />
    <yweather:forecast day="Sat" date="20 Oct 2012" low="55" high="66" text="Mostly Cloudy" code="28" />
    <guid isPermaLink="false">NLXX0007_2012_10_20_7_00_CEST</guid>
    </item>
    </channel>
    </rss>
    <!-- api9.weather.ch1.yahoo.com Fri Oct 19 17:53:09 PST 2012 -->
     
    Last edited:

    Micropolis

    Portal Pro
    July 22, 2009
    1,588
    1,796
    Bavaria
    Home Country
    Germany Germany
    Hi doskabouter,
    Here it is.
    this doesn't help me currently. I need the XML-structure, if you see the parsing problem again.
    If you take a look to the bold digits, all seems to be normal.

    <yweather:wind chill="64" direction="170" speed="7" />
    < yweather:atmosphere humidity="77" visibility="6.21" pressure="29.85" rising="0" />

    Does the troubleshooting URL looks like this http://weather.yahooapis.com/forecastrss?&p=NLXX0007&u=c ? Do you see other values inside WorldWeather?

    Cheers, Micropolis
     
    Last edited:

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,646
    3,102
    Nuenen
    Home Country
    Netherlands Netherlands
    Indeed it does. About the troubleshooting URL, how do I get that? The only urls mentioned were the ...rss&p= and ...rss&w=.
    Would be nice if it were somewhere in the logfiles.

    Just copied the whole worldweather.xml and the worldweather sectionof mediaportal.xml to my dev machine, made sure it ran the same version of mp/worldweather but there it's not reproducable :(
    Only visible difference (at first glance) with my htpc is rounding. htpc says 805 km/h and devpc says 8km/h
    That ofcourse with . and , issues.
    Ok, got a moment of full control of the htpc :)
    The regional settings on the htpc are dutch (, for decimal and . for thousand) and here is the html-request and response (header and body)

    request:
    GET http://weather.yahooapis.com/forecastrss?&w=731871&u=c HTTP/1.1
    Host: weather.yahooapis.com

    response:
    HTTP/1.1 200 OK
    Date: Fri, 19 Oct 2012 20:00:35 GMT
    P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
    Cache-Control: public
    Expires: Fri, 19 Oct 2012 20:30:35 GMT
    Vary: Accept-Encoding
    Content-Length: 2376
    Connection: close
    Content-Type: text/xml;charset=UTF-8
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
    <channel>

    <title>Yahoo! Weather - Nederwetten, NL</title>
    <link>http://us.rd.yahoo.com/dailynews/rs...her.yahoo.com/forecast/NLXX0007_c.html</link>
    <description>Yahoo! Weather for Nederwetten, NL</description>
    <language>en-us</language>
    <lastBuildDate>Fri, 19 Oct 2012 9:25 pm CEST</lastBuildDate>
    <ttl>60</ttl>
    <yweather:location city="Nederwetten" region="NB" country="Netherlands"/>
    <yweather:units temperature="C" distance="km" pressure="mb" speed="km/h"/>
    <yweather:wind chill="17" direction="0" speed="3.22" />
    <yweather:atmosphere humidity="72" visibility="9.99" pressure="982.05" rising="0" />
    <yweather:astronomy sunrise="8:07 am" sunset="6:34 pm"/>
    <image>
    <title>Yahoo! Weather</title>
    <width>142</width>
    <height>18</height>
    <link>http://weather.yahoo.com</link>
    <url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
    </image>
    <item>
    <title>Conditions for Nederwetten, NL at 9:25 pm CEST</title>
    <geo:lat>51.49</geo:lat>
    <geo:long>5.52</geo:long>
    <link>http://us.rd.yahoo.com/dailynews/rs...her.yahoo.com/forecast/NLXX0007_c.html</link>
    <pubDate>Fri, 19 Oct 2012 9:25 pm CEST</pubDate>
    <yweather:condition text="Mostly Cloudy" code="27" temp="17" date="Fri, 19 Oct 2012 9:25 pm CEST" />
    <description><![CDATA[
    <img src="http://l.yimg.com/a/i/us/we/52/27.gif"/><br />
    <b>Current Conditions:</b><br />
    Mostly Cloudy, 17 C<BR />
    <BR /><b>Forecast:</b><BR />
    Fri - Partly Cloudy. High: 23 Low: 16<br />
    Sat - Mostly Cloudy. High: 19 Low: 13<br />
    <br />
    <a href="http://us.rd.yahoo.com/dailynews/rs...ther.yahoo.com/forecast/NLXX0007_c.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
    (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
    ]]></description>
    <yweather:forecast day="Fri" date="19 Oct 2012" low="16" high="23" text="Partly Cloudy" code="29" />
    <yweather:forecast day="Sat" date="20 Oct 2012" low="13" high="19" text="Mostly Cloudy" code="28" />
    <guid isPermaLink="false">NLXX0007_2012_10_20_7_00_CEST</guid>
    </item>
    </channel>
    </rss>
    <!-- api4.weather.ch1.yahoo.com Fri Oct 19 20:00:35 PST 2012 -->
     

    Marduk65

    Portal Pro
    November 28, 2011
    190
    244
    59
    Home Country
    Italy Italy
    Hi Micropolis,
    here are updated Italian translation file.

    Is there any way to have more readable characters in History charts? (see attached screenshot, font size is too much small; N.B.: same probelm also in skin Defaultwide with xml's of WW original zip package)

    Thanks
    Ciao

    WW_Xtreme_ChartView.jpg
     

    Attachments

    • strings_it.xml
      13.6 KB

    Micropolis

    Portal Pro
    July 22, 2009
    1,588
    1,796
    Bavaria
    Home Country
    Germany Germany
    Hi Marduk65,
    ... Is there any way to have more readable characters in History charts?

    The character size for chart letters depends on 2 parameters: your system font and size and screen dimensions. At the first post you can find release candidate 3, which restrict the maximum chart bitmap size to 800x600 px.
    Please adjust your skin files, test this version and give feedback. Thank you.

    EDIT: sorry, made a small mistake (my new Visual Studio 2012 installation isn't properly configured yet), I'd reupload a new version again.

    Cheers, Micropolis
     
    Last edited:

    helsten2

    MP Donator
  • Premium Supporter
  • March 24, 2009
    98
    26
    Home Country
    Norway Norway
    Hi Micropolis,
    First of all, thank you for a great plugin !

    I was just doing some minor skin adjustments - basically adding the #WorldWeather.ForecastHourTemperatureChart to the graphic view.

    I was looking at the chart an noticed that the temperature value 5 was repeated - see attached screenshot.
    6o1ve8.png



    I am at RC1 so if this has been fixed, please ignore my comment.

    Thank you in advance
     
    Last edited:

    Users who are viewing this thread

    Top Bottom