It is currently April 19th, 2024, 12:08 am

Webparser not working (rexex failure)

Get help with creating, editing & fixing problems with skins
sailfix
Posts: 8
Joined: February 18th, 2019, 9:39 pm

Webparser not working (rexex failure)

Post by sailfix »

I've used "Raimeter Settings" and added functionality to check, if "Eample Settings" is running.

Every regex checker shows, that the used rexex expression is correct.

Please help
Kind regards
Peter
You do not have the required permissions to view the files attached to this post.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Webparser not working (rexex failure)

Post by eclectic-tech »

All Vista Rainbar's 12 weather skin versions use Yahoo for the source for data.

As of Jan 3, 2019, Yahoo shutdown their free access weather API, so all skins that used Yahoo will never work.

It is possible to convert most Yahoo skin to use The Weather Channel WXData feed, but it is not a simple process. I have not looked closely at Vista Rainbar, but it appears to be a bit more robust than just getting the temperature and condition, so it will involve some work to modify it.

If you want to try, there may be several members who might be interested in helping you modify one of the skins.
Once you modify one, a copy & paste method should get the other versions working too.
sailfix
Posts: 8
Joined: February 18th, 2019, 9:39 pm

Re: Webparser not working (rexex failure)

Post by sailfix »

Thank you for your reply. BTW Wheather Channel has also closed every free access.

I need an answer what the problem with webparser is, if I check "rainmeter.ini" in the user appdata folder.

Kind Regards
Peter
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Webparser not working (rexex failure)

Post by eclectic-tech »

sailfix wrote: February 19th, 2019, 7:07 pm Thank you for your reply. BTW Wheather Channel has also closed every free access.
Really? Amazing that every weather skin using TWC data is still working ... you are mistaken about TWC data being unavailable. :uhuh:
sailfix wrote:I need an answer what the problem with webparser is, if I check "rainmeter.ini" in the user appdata folder.
Add Codepage=1200 to the [MeasureConfig1State] section.

This is due to a change to Rainmeter.ini encoding; you can find out more in this change notice
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Webparser not working (rexex failure)

Post by balala »

eclectic-tech wrote: February 19th, 2019, 8:33 pm Really? Amazing that every weather skin using TWC data is still working ... you are mistaken about TWC data being unavailable. :uhuh:
I suppose sailfix was talking about something else then weather.com (I'm not sure what he wanted to say by TWC though). Weather.com is definitely working and it does this for free (thanks them!).
sailfix
Posts: 8
Joined: February 18th, 2019, 9:39 pm

Re: Webparser not working (rexex failure)

Post by sailfix »

Many thanks to eclectic-tech; that works perfectly.

I'm really interested, if TWC still works; the follwing URL, I've used in the past, does NOT:
"http://wxdata.weather.com/wxdata/weather/local/AUXX0025&u=c". It returns:
<error>
<err type="2">Invalid location provided.</err>
</error>

So please, could you please provide me:
1) any url to query location data for configuring weather
2) any url to query waether data for a specific location (with languge parameter and temperature measurent parameter, if possible)

Thank you again.
Peter
sailfix
Posts: 8
Joined: February 18th, 2019, 9:39 pm

Re: Webparser not working (rexex failure)

Post by sailfix »

Thank you all.

Yes you are right, TWC is still working. Googling further Istumbled over eclectic-tech's "Win10WeatherMultilingual". It was clear that I've lost the "?cc=*" during past years.

I don't know, but there may be an enhencement for this wonderful skin. If you change the "TempUnit" to "m", not "c", as so : "http://wxdata.weather.com/wxdata/weather/local/AUXX0025?cc=*&unit=m&dayf=6&locale=de"
you will get the following output:

Code: Select all

<weather ver="2.0">
<head>
<locale>de</locale>
<form>MEDIUM</form>
[Shadow]<ut>C</ut>
<ud>km</ud>
<us>km/h</us>
<up>hPa</up>
<ur>mm</ur>[/Shadow]
</head>
<loc id="AUXX0025">
<dnam>Wien, 9, Österreich</dnam>
<tm>11:58 PM</tm>
<lat>48.21</lat>
<lon>16.37</lon>
<sunr>6:53</sunr>
<suns>17:24</suns>
<zone>1</zone>
</loc>
<cc>
<lsup>2/20/19 10:00 PM CET</lsup>
<obst>Wien/City, 9, AU</obst>
<tmp>8</tmp>
<flik>7</flik>
<t/>
<icon/>
<bar>
<r>1004.74</r>
<d>steigend</d>
</bar>
<wind>
<s>6</s>
<gust>N/A</gust>
<d>290</d>
<t>WNW</t>
</wind>
<hmid>68</hmid>
<vis/>
<uv>
<i>0</i>
<t>Niedrig</t>
</uv>
<dewp>3</dewp>
<moon>
<icon>16</icon>
<t>Waning Gibbous</t>
</moon>
</cc>
<dayf>
<lsup>2/20/19 7:00 AM CET</lsup>
<day d="0" t="Wednesday" dt="Feb 20">
<hi>8</hi>
<low>1</low>
<sunr>6:53</sunr>
<suns>17:24</suns>
<part p="d">
<icon/>
<t/>
<wind>
<s>calm</s>
<gust>N/A</gust>
<d>0</d>
<t>CALM</t>
</wind>
<bt/>
<ppcp>0</ppcp>
<hmid>0</hmid>
</part>
<part p="n">
<icon>26</icon>
<t>Bedeckt</t>
<wind>
<s>calm</s>
<gust>N/A</gust>
<d>0</d>
<t>CALM</t>
</wind>
<bt/>
<ppcp>10</ppcp>
<hmid>87</hmid>
</part>
</day>
<day d="1" t="Thursday" dt="Feb 21">
<hi>12</hi>
<low>6</low>
<sunr>6:53</sunr>
<suns>17:24</suns>
<part p="d">
<icon>28</icon>
<t>Stark bewölkt</t>
<wind>
<s>16</s>
<gust>N/A</gust>
<d>277</d>
<t>W</t>
</wind>
<bt/>
<ppcp>20</ppcp>
<hmid>68</hmid>
</part>
<part p="n">
<icon>12</icon>
<t>Später Regen</t>
<wind>
<s>16</s>
<gust>N/A</gust>
<d>277</d>
<t>W</t>
</wind>
<bt/>
<ppcp>80</ppcp>
<hmid>79</hmid>
</part>
</day>
<day d="2" t="Friday" dt="Feb 22">
<hi>9</hi>
<low>-5</low>
<sunr>6:53</sunr>
<suns>17:24</suns>
<part p="d">
<icon>11</icon>
<t>Vorm. leichter Regen</t>
<wind>
<s>30</s>
<gust>N/A</gust>
<d>343</d>
<t>NNW</t>
</wind>
<bt/>
<ppcp>70</ppcp>
<hmid>73</hmid>
</part>
<part p="n">
<icon>31</icon>
<t>Klar</t>
<wind>
<s>30</s>
<gust>N/A</gust>
<d>343</d>
<t>NNW</t>
</wind>
<bt/>
<ppcp>0</ppcp>
<hmid>59</hmid>
</part>
</day>
<day d="3" t="Saturday" dt="Feb 23">
<hi>2</hi>
<low>-5</low>
<sunr>6:53</sunr>
<suns>17:24</suns>
<part p="d">
<icon>30</icon>
<t>Wolkig</t>
<wind>
<s>17</s>
<gust>N/A</gust>
<d>356</d>
<t>N</t>
</wind>
<bt/>
<ppcp>0</ppcp>
<hmid>42</hmid>
</part>
<part p="n">
<icon>31</icon>
<t>Klar</t>
<wind>
<s>17</s>
<gust>N/A</gust>
<d>356</d>
<t>N</t>
</wind>
<bt/>
<ppcp>0</ppcp>
<hmid>60</hmid>
</part>
</day>
<day d="4" t="Sunday" dt="Feb 24">
<hi>6</hi>
<low>0</low>
<sunr>6:53</sunr>
<suns>17:24</suns>
<part p="d">
<icon>32</icon>
<t>Sonnig</t>
<wind>
<s>9</s>
<gust>N/A</gust>
<d>225</d>
<t>SW</t>
</wind>
<bt/>
<ppcp>0</ppcp>
<hmid>46</hmid>
</part>
<part p="n">
<icon>29</icon>
<t>Wolkig</t>
<wind>
<s>9</s>
<gust>N/A</gust>
<d>225</d>
<t>SW</t>
</wind>
<bt/>
<ppcp>0</ppcp>
<hmid>56</hmid>
</part>
</day>
<day d="5" t="Monday" dt="Feb 25">
<hi>11</hi>
<low>0</low>
<sunr>6:53</sunr>
<suns>17:24</suns>
<part p="d">
<icon>34</icon>
<t>Heiter</t>
<wind>
<s>19</s>
<gust>N/A</gust>
<d>301</d>
<t>WNW</t>
</wind>
<bt/>
<ppcp>0</ppcp>
<hmid>47</hmid>
</part>
<part p="n">
<icon>29</icon>
<t>Wolkig</t>
<wind>
<s>19</s>
<gust>N/A</gust>
<d>301</d>
<t>WNW</t>
</wind>
<bt/>
<ppcp>0</ppcp>
<hmid>68</hmid>
</part>
</day>
</dayf>
</weather>

Hope this may be helpfull in avoiding calculations in a simplified form of your skin.
Kind regards
Peter
sailfix
Posts: 8
Joined: February 18th, 2019, 9:39 pm

Re: Webparser not working (rexex failure)

Post by sailfix »

Again a small question:
Are the icon numbers identical to the old ones of Yahoo ?

Thank you again
Peter
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Webparser not working (rexex failure)

Post by eclectic-tech »

sailfix wrote: February 20th, 2019, 11:40 pm Again a small question:
Are the icon numbers identical to the old ones of Yahoo ?

Thank you again
Peter
I am not sure about the icons being the same... I would doubt that they are. Somewhere there is a list of the "general" conditions indicated by the icon numbers, but I will have to look around for that.

In reply to your enhancement to multilingual weather to obtain Metric values...
the original Win10 Weather skin, and my multilingual version, both do the conversion from Imperial to Metric using measures in the skin; this does not require the skin to re-read the entire weather data from the TWC. The context menu offers the option to view Metric or Imperial values.

Glad you got things working!
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Webparser not working (rexex failure)

Post by balala »

sailfix wrote: February 20th, 2019, 11:40 pm Are the icon numbers identical to the old ones of Yahoo ?
They are somehow similar, but not identical at all. Here is a lis of icons used by Yahoo and here one used by weather.com.