It is currently April 20th, 2024, 3:22 am

Weather.com finding your location code

Tips and Tricks from the Rainmeter Community
User avatar
NeverOutofTune
Posts: 12
Joined: September 4th, 2009, 1:51 am

Weather.com finding your location code

Post by NeverOutofTune »

You can find the location ID for Weather.COM by using this search URL

http://xoap.weather.com/search/search?where=CITY or STATE or COUNTRY

Example:
http://xoap.weather.com/search/search?where=Anchorage
- <search ver="3.0">
<loc id="USAK0012" type="1">Anchorage, AK</loc>
<loc id="USAK0013" type="1">Anchorage/Elmendorf AFB, AK</loc>
<loc id="USAK0015" type="1">Anchorage/Merrill Field, AK</loc>
<loc id="USAK0014" type="1">Anchorage/Lake Hood Seaplane Base, AK</loc>
</search>
wasky1
Posts: 127
Joined: June 10th, 2009, 8:26 am

Re: Weather.com finding your location code

Post by wasky1 »

cool!
Meatwrist
Posts: 4
Joined: May 25th, 2010, 7:15 am

Re: Weather.com finding your location code

Post by Meatwrist »

Url=http://weather.yahooapis.com/forecastrss?p=#USAZ0166#&u=#0#

I live in Phoenix, AZ and I'm just getting into the weather aspect of Enigma (and a few other weather widgets). Am I building this URL right? I changed the placeholders in the .txt file with my weather code and I also changed the 1 to a 0 for Fahrenheit.

Meh...If someone could toss me a bone, that'd be amazing.
P2C
Posts: 45
Joined: November 13th, 2009, 10:22 pm
Location: near Würzburg, Germany

Re: Weather.com finding your location code

Post by P2C »

Dont use these #'s

Url=http://weather.yahooapis.com/forecastrss?p=USAZ0166&u=0

should work fine :)
Meatwrist
Posts: 4
Joined: May 25th, 2010, 7:15 am

Re: Weather.com finding your location code

Post by Meatwrist »

It totally did. Epic win.

Thanks!