2015-12-26 22:22:13 +00:00
|
|
|
Usage:
|
|
|
|
|
|
|
|
$ curl wttr.in # current location
|
2018-10-27 12:10:18 +00:00
|
|
|
$ curl wttr.in/muc # weather in the Munich airport
|
2015-12-26 22:22:13 +00:00
|
|
|
|
2017-03-06 07:15:03 +00:00
|
|
|
Supported location types:
|
2015-12-26 22:22:13 +00:00
|
|
|
|
|
|
|
/paris # city name
|
2017-03-22 15:15:27 +00:00
|
|
|
/~Eiffel+tower # any location
|
|
|
|
/Москва # Unicode name of any location in any language
|
2015-12-26 22:22:13 +00:00
|
|
|
/muc # airport code (3 letters)
|
|
|
|
/@stackoverflow.com # domain name
|
2017-03-06 07:15:03 +00:00
|
|
|
/94107 # area codes
|
2017-03-22 15:15:27 +00:00
|
|
|
/-78.46,106.79 # GPS coordinates
|
2017-03-06 07:15:03 +00:00
|
|
|
|
|
|
|
Special locations:
|
|
|
|
|
|
|
|
/moon # Moon phase (add ,+US or ,+France for these cities)
|
|
|
|
/moon@2016-10-25 # Moon phase for the date (@2016-10-25)
|
|
|
|
|
|
|
|
Units:
|
|
|
|
|
2019-01-11 11:44:36 +00:00
|
|
|
m # metric (SI) (used by default everywhere except US)
|
|
|
|
u # USCS (used by default in US)
|
|
|
|
M # show wind speed in m/s
|
2017-03-06 07:15:03 +00:00
|
|
|
|
2017-03-12 16:38:41 +00:00
|
|
|
View options:
|
|
|
|
|
2019-01-11 11:44:36 +00:00
|
|
|
0 # only current weather
|
|
|
|
1 # current weather + 1 day
|
|
|
|
2 # current weather + 2 days
|
2019-02-01 11:29:27 +00:00
|
|
|
A # ignore User-Agent and force ANSI output format (terminal)
|
2019-01-11 11:48:00 +00:00
|
|
|
F # do not show the "Follow" line
|
2019-01-11 11:44:36 +00:00
|
|
|
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)
|
2017-03-12 16:38:41 +00:00
|
|
|
|
|
|
|
PNG options:
|
|
|
|
|
|
|
|
/paris.png # generate a PNG file
|
2019-01-11 11:44:36 +00:00
|
|
|
p # add frame around the output
|
|
|
|
t # transparency 150
|
2017-03-12 16:38:41 +00:00
|
|
|
transparency=... # transparency from 0 to 255 (255 = not transparent)
|
|
|
|
|
|
|
|
Options can be combined:
|
|
|
|
|
|
|
|
/Paris?0pq
|
2017-03-24 22:58:51 +00:00
|
|
|
/Paris?0pq&lang=fr
|
2017-03-12 16:38:41 +00:00
|
|
|
/Paris_0pq.png # in PNG the file mode are specified after _
|
|
|
|
/Rome_0pq_lang=it.png # long options are separated with underscore
|
|
|
|
|
2017-03-06 07:15:03 +00:00
|
|
|
Localization:
|
|
|
|
|
2017-04-22 16:15:41 +00:00
|
|
|
$ curl fr.wttr.in/Paris
|
2017-03-06 07:15:03 +00:00
|
|
|
$ curl wttr.in/paris?lang=fr
|
|
|
|
$ curl -H "Accept-Language: fr" wttr.in/paris
|
|
|
|
|
|
|
|
Supported languages:
|
|
|
|
|
2017-03-22 15:15:27 +00:00
|
|
|
FULL_TRANSLATION (supported)
|
|
|
|
PARTIAL_TRANSLATION (in progress)
|
2015-12-26 22:22:13 +00:00
|
|
|
|
|
|
|
Special URLs:
|
|
|
|
|
|
|
|
/:help # show this page
|
2017-03-06 07:15:03 +00:00
|
|
|
/:bash.function # show recommended bash function wttr()
|
|
|
|
/:translation # show the information about the translators
|
2015-12-26 22:22:13 +00:00
|
|
|
|