It is currently February 22nd, 2020, 7:12 am

Info: Weather.com Location Codes Have Changed

General topics related to Rainmeter.
pauloctavio
Posts: 2
Joined: October 3rd, 2018, 7:28 pm

Re: Info: Weather.com Location Codes Have Changed

Post by pauloctavio »

SilverAzide wrote:This is a public service announcement to the Rainmeter community. Skin authors might start seeing an increasing influx of "weather skin not working" posts.
Notepad++ Malwarebytes FileZilla
It appears that sometime over the last several days, weather.com has made a change to their weather codes. Most instructions for weather skins (including on the forums) suggest going to the main weather.com site, searching for a location, and grabbing a section of the resulting URL from the browser's address bar to use for the location code. THIS NO LONGER WORKS if your location is outside the US. There are exceptions if your force your location so that weather.com uses US-specific URLs or if the site cannot determine your location. Here is an example:

If you search for London (UK), you used to get a URL like:
https://weather.com/weather/today/l/UKXX0085:1:UK
Now you MIGHT get:
https://weather.com/weather/today/l/7517a52d4d1815e639ae1001edb8c5fdb44090e972e19bfd190e468fa1130909

I say "might get" because it is dependent on the search and whether the site is aware of your location, or if you have set it specifically.

The important points are these:
  • The new-style location codes do NOT work with the XML feed at this time.
  • This appears mostly to be a documentation issue... so far.

Skins that include their own search functionality (as in http://wxdata.weather.com/wxdata/search/search?where=xxx) do not appear to be affected at this time, as the API is still returning old-style location codes. Skin authors may want to add search functionality to their skins or direct users to the weather.codes site instead of weather.com. The weather.com site itself seems to be backward compatible with the old-style codes. ...For now.
As a matter of fact, to the extent I can tell, "your" side of the world is the place the issue happens frequently, LOL. It is extremely confounding, which is the reason I expressed you "may get" those 64-character areas. I most effortlessly see it when I utilize the weather.com menu to choose a dialect other than my own.
User avatar
Jasthrus
Posts: 4
Joined: April 1st, 2012, 5:48 pm

Re: Info: Weather.com Location Codes Have Changed

Post by Jasthrus »

You mention going to http://wxdata.weather.com/wxdata/search/search?where=xxx to search location.

Do that NOW and you get "This service is deprecated as of 01/15/2020".

And as of TODAY, vClouds Weather 2 NO longer works. Has been flawless using the original location code, I am in CANADA by the way, and I get the NEW style 64 character code. I attempted to double check my location WAS correct as "caxx0294", and it WILL still bring up the correct location page to view, so I assume the XML feed is done? If I change page however, say go to the 5 day forecast, I then get "8c022d9e8074a4b16aea8780d7665929cde7bc460126111ba8187fcab7af6177" as a location code. So there you have it. Is this the END of Rainmeter weather???

:confused:

-Jasthrus - Rainmeter user since 2012.
User avatar
balala
Rainmeter Sage
Posts: 9741
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Info: Weather.com Location Codes Have Changed

Post by balala »

Jasthrus wrote:
January 15th, 2020, 7:28 pm
You mention going to http://wxdata.weather.com/wxdata/search/search?where=xxx to search location.

Do that NOW and you get "This service is deprecated as of 01/15/2020".

And as of TODAY, vClouds Weather 2 NO longer works.
Noticed: https://forum.rainmeter.net/viewtopic.php?f=4&t=34450#p170201
Jasthrus wrote:
January 15th, 2020, 7:28 pm
Is this the END of Rainmeter weather???
Hope not. Sincerely.