Pretty printed weather data for your terminal with customizable colours and fonts that I built while learning Python. Based on this project by BekBrace with added features and improvements.
- Python 3.6+
- API Key from OpenWeather (See Installation)
- Create an OpenWeather account (it's free)
- Click on your account name in the top banner then go to 'My API keys'
- Copy your API key
- Clone this repo to your local machine
- cd into the cloned repo
- Run
pip install .
- After the installation, run
climate
- You will be prompted to enter your API key. Paste your API key that you obtained earlier.
Once installed, you can use the climate command from anywhere in your terminal.
climate <location> [--color <color>] [--font <font>]
-
location: Name of the city or country you want to check the weather for.
-
--color: Optional. Choose the color of the output text (options:
red
,green
,yellow
,blue
,magenta
,cyan
,white
,black
). -
--font: Optional. Choose the font style for the city name header. See the figlet font list page for a list of valid font names.
Feel free to fork the repository and submit a pull request with your improvements or bug fixes, or raise an issue for suggestions and feature requests.
CLImate is open-source software licensed under the MIT License.
For any questions or suggestions you can reach me at [email protected].