Skip to content

Python script which interacts with the O​penWeatherMap​ API to retrieve the current temperature for a city.

License

Notifications You must be signed in to change notification settings

jbrownrs/weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python weather API client

Python script which interacts with the O​penWeatherMap​ API to retrieve the current temperature for a city.

Getting Started

To use the script requires an OpenWeatherMap API key. To obtain a key:

  1. Sign up at OpenWeatherMap to create a free account.
  2. Log in
  3. 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.

References

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Python script which interacts with the O​penWeatherMap​ API to retrieve the current temperature for a city.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published