Python script which interacts with the OpenWeatherMap API to retrieve the current temperature for a city.
To use the script requires an OpenWeatherMap API key. To obtain a key:
- Sign up at OpenWeatherMap to create a free account.
- Log in
- Navigate to API keys to get a free API key. NB: It may take a few minutes for the API key to become active.
Once you have a key you can run this in docker as:
docker run -e OPENWEATHERMAP_KEY={key} jab229/weather {city}
replacing “{key}” with an OpenWeatherMap API key and {city} with your chosen city.
This project is licensed under the MIT License - see the LICENSE.md file for details