angular-openweathermap-api-factory is an angularjs module with a OpenWeatherMap API promise factory.
Author: Jonathan Hornung (JohnnyTheTank)
Usage
- Install via either bower, npm or downloaded files:
bower install --save angular-openweathermap-api-factory
npm install --save angular-openweathermap-api-factory
- download angular-openweathermap-api-factory.zip
- Add
jtt_openweathermap
to your application's module dependencies. - Include dependencies in your HTML.
- When using bower:
- When using npm:
- when using downloaded files
- Use the factory
openweathermapFactory
factory methods
current weather
current weather from city by name
// docs: http://openweathermap.org/current#nameopenweathermapFactory;
current weather from city by id
// docs: http://openweathermap.org/current#cityidopenweathermapFactory;
current weather from group of cities by id
// docs: http://openweathermap.org/current#severalidopenweathermapFactory;
current weather from location by coordinates
// docs: http://openweathermap.org/current#geoopenweathermapFactory;
current weather from location by zipcode
// docs: http://openweathermap.org/current#zipopenweathermapFactory;
5-day-forecast
5-day-forecast from city by name
// docs: http://openweathermap.org/forecast5#name5openweathermapFactory;
5-day-forecast from city by id
// docs: http://openweathermap.org/forecast5#cityid5openweathermapFactory;
5-day-forecast from location by coordinates
// docs: http://openweathermap.org/forecast5#geo5openweathermapFactory;
OpenWeatherMap JSON API
More angular-api-factories
bandsintown - dailymotion - facebook - flickr - footballdata - github - openweathermap - tumblr - vimeo - wikipedia - youtube
License
MIT