It is currently May 1st, 2024, 5:06 am

Yahoo! weather without WOEID.

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

Yahoo! weather without WOEID.

Post by moshi »

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

Re: Yahoo! weather without WOEID.

Post by jsmorley »

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: 1740
Joined: November 13th, 2012, 9:53 pm

Re: Yahoo! weather without WOEID.

Post by moshi »

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