Weather for your command line, with pretty colors
This is a really simple script that gives you a pretty and colorful display of the weather on your command line. Presumably, it would be useful to put in your login script or MOTD so that you can see the weather when you log into a terminal.
Python 3.4 or greater, Requests
Install using pip:
pip install cweather
cweather [-h] [--api-key API_KEY] [--timeout TIMEOUT] [--no-color] [location]
- -h, --help
show this help message and exit
- --api-key API_KEY
Wunderground API key, defaults to WUNDERGROUND_API_KEY in your environment, or some random one that might work if unset
- --timeout TIMEOUT
Timeout for connection
No colors, default if TERM is vt100
location specifies a named location (e.g., Golden, CO) or a postal code, and will default to the LOCATION environment variable, or 80401 (Golden, CO) if unset.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.