3 个版本
| 0.1.2 | 2022 年 12 月 25 日 |
|---|---|
| 0.1.1 | 2022 年 12 月 25 日 |
| 0.1.0 | 2022 年 12 月 25 日 |
#6 在 #open-weather
15KB
239 行
Rust 开源天气 CLI
一个为 openweathermap 提供纯 JSON 输出的非官方命令行工具,用于 API 调用。
安装后,请运行
openweather init
并输入从 https://openweathermap.org/api 获取的 api_key。
从 openweathermap.org 有两种查询模式
mode = "location"更好,因为它可以提供详细信息;mode = "city"仅支持当前天气查询。
其余的是粒度设置。
您始终可以通过以下方式返回并配置它们
openweather edit
其余命令可以通过运行纯 openweather 来找到。
查询时,运行
openweather query
并使用 openweather query -h 获取更多信息。
依赖项
~10–25MB
~377K SLoC