Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hgneng/tianqi
a command line tool to query weather report in China
https://github.com/hgneng/tianqi
Last synced: 10 days ago
JSON representation
a command line tool to query weather report in China
- Host: GitHub
- URL: https://github.com/hgneng/tianqi
- Owner: hgneng
- License: gpl-3.0
- Created: 2021-05-17T02:27:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-13T05:50:11.000Z (11 months ago)
- Last Synced: 2024-06-20T22:29:00.640Z (5 months ago)
- Language: Go
- Size: 310 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tianqi(天气)
A command line tool to query weather report in China. It can be run on Linux and Mac.It's written in Go lang.
Run following command to build the package:
```$ go build tianqi.go```
Run following command to install the package:
```$ ./deploy.sh```
Usage:
```shell
$ tianqi guangzhou
当前温度31摄氏度,湿度百分之71,多云。
天气预报:
今天,中雨转暴雨,33到25摄氏度;
明天,暴雨转多云转暴雨,30到25摄氏度;
后天,多云,32到25摄氏度;
周4,多云,33到27摄氏度;
周5,多云转多云转暴雨,34到27摄氏度$ tianqi 广州
当前温度31摄氏度,湿度百分之71,多云。
天气预报:
今天,中雨转暴雨,33到25摄氏度;
明天,暴雨转多云转暴雨,30到25摄氏度;
后天,多云,32到25摄氏度;
周4,多云,33到27摄氏度;
周5,多云转多云转暴雨,34到27摄氏度$ tianqi guangzhou 6
09时:小雨,16度
10时:小雨,16度
11时:小雨,16度
12时:小雨,18度
13时:小雨,18度
14时:小雨,19度
```