weatherlike
Node.js weather server JSON API
How it works
- Get the city woeid code from Yahoo Geo Places apis
- Query Yahoo Weather APIs for that woeid
- Reply with the JSON weather forecast for 5 days from the moment of the request
API
weatherlike has two APIs
-
weatherlike.inCity(city, callback)
where you can specify the city you want the forecast for. -
weatherlike.inWoeid(woeid, callback)
where you can ask for that woeid in case you already know it.
Example
More examples in examples/
var weatherlike = ; http;
JSON reply
weatherlike sends back a reply like this for both requests:
As you can see you can get the woeid as soon as you get the first reply.