iweather 0.0.2 copy "iweather: ^0.0.2" to clipboard
iweather: ^0.0.2 copied to clipboard

iweather Dart 终端获取天气

iweather #

Dart 终端命令行工具,用于获取指定城市天气.

示例 #

$ iweather --city 北京

# 输出如下:

当前城市 = 北京
当前日期:2019-10-30
当前城市:北京
PM2.5:81
穿衣指数:较冷
实时天气:晴 18 ~ 2℃ 西南风3-4级

更多参数 #

$ iweather --city 北京 --write true --debug true
  1. write 把当前接口请求写入本地文件
  2. debug 开发者模式,用于打印日志

说明 #

  1. 天气接口为百度天气接口,AK 为测试 Key,请勿频繁调用,会被封
  2. 本案例为学习测试用
0
likes
10
pub points
0%
popularity

Publisher

unverified uploader

iweather Dart 终端获取天气

Homepage

Documentation

Documentation

License

MIT (LICENSE)

Dependencies

args, dio

More

Packages that depend on iweather