From 7cc50bec2bda57f1b0ab87547f5eeccd718678f4 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Tue, 8 Jan 2019 17:28:15 +0100 Subject: [PATCH] Initial one-line output documentation (#174) --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index d97a0a5..828b71c 100644 --- a/README.md +++ b/README.md @@ -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: