It is currently May 26th, 2019, 2:24 am

Change to Weather.com XML feed

Release announcements and important news from the developers.
User avatar
jsmorley
Developer
Posts: 19245
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Change to Weather.com XML feed

jsmorley » May 14th, 2016, 11:50 am

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:
So that xml.weather.com URL in this example would end up as:
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
Radikal
Posts: 1
Joined: May 14th, 2016, 1:27 pm

Re: Change to Weather.com XML feed

Radikal » May 14th, 2016, 1:36 pm

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:
n1phr
Posts: 1
Joined: May 14th, 2016, 12:46 am

Re: Change to Weather.com XML feed

n1phr » May 14th, 2016, 2:05 pm

I have tried this and my weather still doesn't work
User avatar
jsmorley
Developer
Posts: 19245
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Change to Weather.com XML feed

jsmorley » May 14th, 2016, 2:14 pm

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.
Mat
Posts: 1
Joined: May 14th, 2016, 5:39 pm

Re: Change to Weather.com XML feed

Mat » May 14th, 2016, 5:47 pm

Worked great once I got passed my screwups while trying to save a backup of the original..lol
fatuousplatitudes
Posts: 1
Joined: May 14th, 2016, 7:14 pm

Re: Change to Weather.com XML feed

fatuousplatitudes » May 14th, 2016, 7:19 pm

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...
Ess85
Posts: 4
Joined: May 14th, 2016, 8:12 pm

Re: Change to Weather.com XML feed

Ess85 » May 14th, 2016, 8:15 pm

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
jsmorley
Developer
Posts: 19245
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Change to Weather.com XML feed

jsmorley » May 14th, 2016, 8:38 pm

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?
Ess85
Posts: 4
Joined: May 14th, 2016, 8:12 pm

Re: Change to Weather.com XML feed

Ess85 » May 14th, 2016, 8:39 pm

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
jsmorley
Developer
Posts: 19245
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Change to Weather.com XML feed

jsmorley » May 14th, 2016, 8:50 pm

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