ReWeather
A package to get weather in js.
Features
- No design. Just API wrapper.
- Supports openweathermap API
- Extendable to more external API'S
- Only Foucus on Data.
Installing
Install via npm:
npm install re-weather --save
Quick Example
This example shows how to use the re-weather in React.js to set it's data into a API.
;
Dociumention
Current weather data: getCurrent()
will get current weather read full OWM-API docs to learn more. it will return sometinhg like this:
"coord": "lon":14577"lat":-1692 "weather": "id":803"main":"Clouds""description":"broken clouds""icon":"04n" "base":"cmc stations" "main":"temp":29325"pressure":1019"humidity":83"temp_min":28982"temp_max":29537 "wind":"speed":51"deg":150 "clouds":"all":75 "rain":"3h":3 "dt":1435658272 "sys":"type":1"id":8166"message":00166"country":"AU""sunrise":1435610796"sunset":1435650870 "id":2172797 "name":"Cairns" "cod":200
Current weather data: getCurrent()
will get 5 day forecast that is available at any location or city. It includes weather data every 3 hours. read full OWM-API docs to learn more.
In progress...
Credits
re-weather is based on (Amar Shaked)[https://github.com/AmarShaked/ReactWeather] idea.
License
MIT