你的命令行天气,颜色很漂亮
cweather的Python项目详细描述
这是一个非常简单的脚本,它为您提供了 你指挥线上的天气。大概,把你的 登录脚本或motd,以便在登录到 终点站。
Author: | Jack Rosenthal |
---|---|
Requires: | Python 3.4 or greater, Requests |
License: | MIT |
Contributing: | See ^{tt1}$ |
安装
使用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 ^{tt6}$ in your environment, or some random one that might work if unset | |
--timeout TIMEOUT | |
Timeout for connection | |
--no-color | No colors, default if ^{tt7}$ is ^{tt8}$ |
location指定命名位置(例如,Golden, CO)或邮政 代码,并将默认为LOCATION环境变量或80401 (golden,co)如果不确定。