Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Yahoo weather in celsius via their API

Tags:

yql

yahoo-api

Trying to make a query in YQL console. This one works fine:

select * from weather.forecast where woeid=1989965

But I want to get values in metric system (celsius), so I use this query:

select * from weather.forecast where woeid=1989965 and unit='c'

I get a null result:

{
 "query": {
  "count": 0,
  "created": "2016-03-28T01:46:08Z",
  "lang": "ru",
  "results": null
 }
}

I could convert values by myself, but I hope I can make it work out of the box...

like image 384
art.zhitnik Avatar asked Mar 28 '16 01:03

art.zhitnik


People also ask

Is Yahoo Weather API free?

The Yahoo weather API is free for non-profits and individuals for their personal use. Commercial entities must request an invite from the Yahoo developer network.

Does Yahoo have a weather app?

The Yahoo Weather app is available for iOS and for Android.

How can I get a free weather API key?

The API key is all you need to call any of our weather APIs. Once you sign up using your email, the API key (APPID) will be sent to you in a confirmation email. Your API keys can always be found on your account page, where you can also generate additional API keys if needed.


1 Answers

Today I discovered, u='c' is worked. So, the answer for my own question would be:

select * from weather.forecast where woeid=1989965 and u='c'
like image 114
art.zhitnik Avatar answered Oct 18 '22 00:10

art.zhitnik