Change to Weather.com XML feed

Release announcements and important news from the developers.
User avatar

Change to Weather.com XML feed

May 14th, 2016, 11:50 am
jsmorley
Developer   [15695 posts]

Weather.com has been threatening for years to retire the xml.weather.com RSS feed, and it looks as though they have done so. That URL will now just redirect you to the regular weather.com site, and any Rainmeter skin using it will be broken.

The fix is easy enough. They have replaced the old xml.weather.com feed with a new wxdata.weather.com version, which works exactly the same.

So all you have to do is open the skin .ini file for your weather, and find the WebParser parent measure(s) that have a URL option looking something like this:

URL=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Unit#&dayf=1


Replace just the part in red above with:

http://wxdata.weather.com/wxdata/weather/local/


So that xml.weather.com URL in this example would end up as:

URL=http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&dayf=1


The RegExp option used to parse the information is still the same, and the only change you should have to make is to the URL option. Save the change and restart Rainmeter and all should be well.

Note: Do NOT replace the part after "/local/", as those variables #Location# and #Unit# will likely be called something different in your skin, and the skin you are using may be getting a different number of days from the feed with &dayf=X.
User avatar

Re: Change to Weather.com XML feed

May 14th, 2016, 1:36 pm
Radikal
   [1 posts]

Thank you for getting this resolved and posting the solution. This Weather.com XML feed is a very useful feature and I'm glad to have it back up and running again after following the instructions provided in your post. Thanks again and have a great one! :thumbup:

Re: Change to Weather.com XML feed

May 14th, 2016, 2:05 pm
n1phr
   [1 posts]

I have tried this and my weather still doesn't work
User avatar

Re: Change to Weather.com XML feed

May 14th, 2016, 2:14 pm
jsmorley
Developer   [15695 posts]

n1phr wrote:I have tried this and my weather still doesn't work


Let me fix it for you...

There...

All fixed....

Oh wait, I can't really help with drive-by "it doesn't work" posts.

How about maybe posting a link to the skin you are using or posting the code from your skin? That might just give someone a hope of helping you.

Re: Change to Weather.com XML feed

May 14th, 2016, 5:47 pm
Mat
   [1 posts]

Worked great once I got passed my screwups while trying to save a backup of the original..lol

Re: Change to Weather.com XML feed

May 14th, 2016, 7:19 pm
fatuousplatitudes
   [1 posts]

My thanks - I assume to Jeffrey Morley as author of the whole brilliant thing. Easy instructions which got my weather feed working again fine.
And my, it's hot in Dubai...

Re: Change to Weather.com XML feed

May 14th, 2016, 8:15 pm
Ess85
   [4 posts]

Hi!

Can't get mine to work, using the MIUI Weather.

[Measure_dnam]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=900
URL=http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&dayf=1
RegExp="(?siU).*<locale>(.*)</locale>.*<ut>(.*)</ut>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<ur>(.*)</ur>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>(.*)</tm>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<cc>.*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>.*<uv>.*<i>(.*)</i>.*<t>(.*)</t>.*<dewp>(.*)</dewp>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*"
StringIndex=8
Substitute=",":"#CRLF#","":"N/A"
User avatar

Re: Change to Weather.com XML feed

May 14th, 2016, 8:38 pm
jsmorley
Developer   [15695 posts]

Ess85 wrote:Hi!

Can't get mine to work, using the MIUI Weather.


URL=http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&dayf=1

What are the [Variables] #Location# and #Unit# defined as?

Re: Change to Weather.com XML feed

May 14th, 2016, 8:39 pm
Ess85
   [4 posts]

Is this it?

[Variables]
WeatherLocation=SWXX0004
ImperialMetric=m
FahrenheitCelsius=C
WebBrowser=C:\Users\%username%\AppData\Local\Google\Chrome\Application\chrome.exe
DateFormat=%a. %#d %b.
HoursFormat=%H
AMPM=1
H=200
User avatar

Re: Change to Weather.com XML feed

May 14th, 2016, 8:50 pm
jsmorley
Developer   [15695 posts]

Ess85 wrote:Is this it?

[Variables]
WeatherLocation=SWXX0004
ImperialMetric=m
FahrenheitCelsius=C
WebBrowser=C:\Users\%username%\AppData\Local\Google\Chrome\Application\chrome.exe
DateFormat=%a. %#d %b.
HoursFormat=%H
AMPM=1
H=200


See that is why I said this:

Note: Do NOT replace the part after "/local/", as those variables #Location# and #Unit# will likely be called something different in your skin, and the skin you are using may be getting a different number of days from the feed with &dayf=X.


Try this URL:

URL=http://wxdata.weather.com/wxdata/weather/local/#WeatherLocation#?cc=*&unit=#ImperialMetric#&dayf=6

Return to “Rainmeter News”



Who is online

Users browsing this forum: No registered users and 3 guests