It is currently December 14th, 2018, 8:25 pm

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

pauloctavio » October 3rd, 2018, 7:31 pm

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.