Should I go out today?
You can see a demo on https://weather.abundzu.org
- OpenWeather API: https://openweathermap.org/api
- ipInfo API: https://ipinfo.io
- YesNo API: https://yesno.wtf/#api
- Leaflet JS library: https://leafletjs.com
- Clone the repo:
git clone [email protected]:whydesign/weather_meme.git
- create an
env.json
in the project root directory - Add your own OpenWeather and ipInfo API Key like this:
{
"owmApiKey": "XXXXXXXXX", // Your OpenWeather API Key
"ipApiKey": "XXXXXXXXX" // Your ipInfo API Key
}
- OpenWeather API: Sign up for free on https://openweathermap.org/api
- ipInfo API: Sign up for free on https://ipinfo.io
- I use the ipInfo API as fallback, if the user denied the Geolocation
- Read more on https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation