https://github.com/chubin/wttr.in
curl wttr.in/wuhan
curl wttr.in/wuhan?lang=zh
curl wttr.in/jiangxia?lang=zh
# 指定日期
curl wttr.in/jiangxia@2020-06-07?lang=zh
View options:
0 # only current weather
1 # current weather + today's forecast
2 # current weather + today's + tomorrow's forecast
A # ignore User-Agent and force ANSI output format (terminal)
F # do not show the "Follow" line
n # narrow version (only day and night)
q # quiet version (no "Weather report" text)
Q # superquiet version (no "Weather report", no city name)
T # switch terminal sequences off (no colors)
指定 view:
# 只看今天的天气
# 不显示颜色
curl "wttr.in/jiangxia?0T&lang=zh"