Merge pull request #212 from lkylych/master

Update README.md
pull/217/head
Igor Chubin 6 years ago committed by GitHub
commit d3e72dc0d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,8 +1,8 @@
*wttr.in — the right way to check the weather.* *wttr.in — the right way to check the weather.*
wttr.in is a console oriented weather forecast service, that supports various information representation methods wttr.in is a console oriented weather forecast service, that supports various information representation methods
like terminal oriented ANSI-sequences for console HTTP clients such as curl, httpie or wget; like terminal oriented ANSI-sequences for console HTTP clients (curl, httpie, or wget),
HTML for web browsers; or PNG for graphical viewers. HTML for web browsers, or PNG for graphical viewers.
wttr.in uses [wego](http://github.com/schachmat/wego) for visualization wttr.in uses [wego](http://github.com/schachmat/wego) for visualization
and various data sources for weather forecast information. and various data sources for weather forecast information.
@ -26,7 +26,7 @@ That is how the actual weather report for your location looks like (it is live!)
![Weather Report](http://wttr.in/MyLocation.png?) ![Weather Report](http://wttr.in/MyLocation.png?)
(it's not your location actually, because GitHub's CDN hides your real IP address with its own IP address, (it's not your location actually. GitHub's CDN hides your real IP address with its own IP address,
but it is still a live weather report in your language). but it is still a live weather report in your language).
You can specify the location that you want to get the weather information for. You can specify the location that you want to get the weather information for.
@ -36,14 +36,14 @@ based on your IP address.
$ curl wttr.in/London $ curl wttr.in/London
$ curl wttr.in/Moscow $ curl wttr.in/Moscow
You can use 3-letters airport codes if you want to get the weather information Use 3-letters airport codes in order to get the weather information
about some airports: at a certain airport:
$ curl wttr.in/muc # Weather for IATA: muc, Munich International Airport, Germany $ curl wttr.in/muc # Weather for IATA: muc, Munich International Airport, Germany
$ curl wttr.in/ham # Weather for IATA: ham, Hamburg Airport, Germany $ curl wttr.in/ham # Weather for IATA: ham, Hamburg Airport, Germany
If you want to specify a location that is not a city/town's name, but a name of some geographical location If you want to use some geographical location (not just a town or a city)
(e.g. it can be a site in a city, a mountain name, a special location etc.) you should place `~` before its name. (e.g. it can be a site in a city, a mountain name, a special location, etc.) you should place `~` before its name.
That means the location name should be looked up before: That means the location name should be looked up before:
$ curl wttr.in/~Vostok+Station $ curl wttr.in/~Vostok+Station
@ -93,7 +93,7 @@ to separate them with `_` instead of `?` and `&`:
$ wget wttr.in/Paris_0tqp_lang=fr.png $ wget wttr.in/Paris_0tqp_lang=fr.png
Special useful options for the PNG format: Useful options for the PNG format:
* `t` for transparency (`transparency=150`); * `t` for transparency (`transparency=150`);
* transparency=0..255 for a custom transparency level. * transparency=0..255 for a custom transparency level.
@ -114,7 +114,7 @@ Here:
## Special pages ## Special pages
wttr.in can be used not only to check the weather, but also for some other purposes: wttr.in can be used not only to check the weather:
$ curl wttr.in/Moon $ curl wttr.in/Moon

Loading…
Cancel
Save