curl wttr.in
发现wttr.in并不能准确地检测地理位置。我们可以用以下方法来指定地理位置。
curl wttr.in/"Shenzhen"
机场的国际3位代码。lax是洛杉矶国际机场。
curl wttr.in/lax
查看域名所在地理位置的天气。
curl wttr.in/@www.linuxdashen.com
查看月相。
curl wttr.in/moon
查看帮助信息。
curl wttr.in/:help
Reprinted from https://www.linuxdashen.com/wttr-in-get-weather-information-from-terminal