It is currently July 21st, 2019, 9:36 am

Yahoo! weather without WOEID.

Tips and Tricks from the Rainmeter Community
User avatar
moshi
Posts: 1851
Joined: November 13th, 2012, 9:53 pm

Yahoo! weather without WOEID.

moshi » March 17th, 2013, 2:30 pm

try this feed. replace Helsinki with Paris, Texas or whatever.

for metric units and Celsius degrees use:

Code: Select all

URL="http://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast(0,1) where woeid in (select woeid from geo.places where text="Helsinki") and u="c"&format=xml&env=store://datatables.org/alltableswithkeys"
for imperial units and Fahrenheit degrees use:

Code: Select all

URL="http://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast(0,1) where woeid in (select woeid from geo.places where text="Helsinki") and u="f"&format=xml&env=store://datatables.org/alltableswithkeys"
Last edited by moshi on December 6th, 2013, 10:11 am, edited 2 times in total.
User avatar
jsmorley
Developer
Posts: 19301
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Yahoo! weather without WOEID.

jsmorley » March 17th, 2013, 2:38 pm

Works nice. Very clever indeed.

Just need to be careful that you understand that the information returned, and thus the RegExp needed, is different than:

[Variables]
Location=2378074
Unit=f

[MeasureWeather]
...
URL=http://weather.yahooapis.com/forecastrss?w=#Location#&u=#Unit#
User avatar
moshi
Posts: 1851
Joined: November 13th, 2012, 9:53 pm

Re: Yahoo! weather without WOEID.

moshi » December 6th, 2013, 9:57 am

updated the original post, as there has been a change in YQL.