wttr.in/share/help.txt

61 lines
1.8 KiB
Text
Raw Normal View History

2015-12-26 22:22:13 +00:00
Usage:
$ curl wttr.in # current location
$ curl wttr.in/muc # weather in the Munic airport
2017-03-06 07:15:03 +00:00
Supported location types:
2015-12-26 22:22:13 +00:00
/paris # city name
/muc # airport code (3 letters)
/@stackoverflow.com # domain name
2017-03-06 07:15:03 +00:00
/94107 # area codes
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:
?m # metric (SI) (used by default everywhere except US)
?u # USCS (used by default in US)
2017-03-12 16:38:41 +00:00
View options:
?0 # only current weather
?1 # current weather + 1 day
?2 # current weather + 2 days
?n # narrow version (only day and night)
?q # quiet version (no "Weathre report" text)
?Q # superquiet version (no "Weathre report", no city name)
PNG options:
/paris.png # generate a PNG file
?p # add frame arond the output
?t # transparency 150
transparency=... # transparency from 0 to 255 (255 = not transparent)
Options can be combined:
/Paris?0pq
/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:
$ curl wttr.in/paris?lang=fr
$ curl -H "Accept-Language: fr" wttr.in/paris
Supported languages:
SUPPORTED_LANGUAGES (supported)
hi ko zh (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