Initial one-line output documentation (#174)

This commit is contained in:
Igor Chubin 2019-01-08 17:28:15 +01:00 committed by GitHub
parent 2e37f19494
commit 7cc50bec2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,7 @@ You can override this behavior by adding `?u` or `?m` to a URL like this:
wttr.in currently supports three output formats:
* ANSI for the terminal;
* ANSI for the terminal, one-line mode;
* HTML for the browser;
* PNG for the graphical viewers.
@ -111,6 +112,15 @@ In this example:
![Picture with weather data](https://pbs.twimg.com/media/C69-wsIW0AAcAD5.jpg)
## One-line output
For one-line output format, specify additional URL parameter `format`:
```
$ curl wttr.in/Nuremberg?format=3
Nuremberg: 🌦 +5⁰C
```
## Moon phases
wttr.in can also be used to check the phase of the Moon. This example shows how to see the current Moon phase: