From f35adf387a3e200cf18f373189be9aa7d69ff37f Mon Sep 17 00:00:00 2001 From: Christoph Weitkamp Date: Mon, 1 Oct 2018 17:21:17 +0200 Subject: [PATCH] Added example for Location Item pattern (#774) Signed-off-by: Christoph Weitkamp --- configuration/items.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configuration/items.md b/configuration/items.md index 16c5c1b016..f1a7842c70 100644 --- a/configuration/items.md +++ b/configuration/items.md @@ -280,10 +280,11 @@ Free text, like a unit, can be added before or after the formatter string. A few examples are given below: ```java -Number Livingroom_Temperature "Temperature [%.1f °C]" // e.g. "23.5 °C" -String Livingroom_TV_Channel "Now Playing [%s]" // e.g. "Lorem ipsum" -DateTime Livingroom_TV_LastUpdate "Last Update [%1$ta %1$tR]" // e.g. "Sun 15:26" -Number Livingroom_Clock_Battery "Battery Charge [%d %%]" // e.g. "50 %" +Number Livingroom_Temperature "Temperature [%.1f °C]" // e.g. "23.5 °C" +String Livingroom_TV_Channel "Now Playing [%s]" // e.g. "Lorem ipsum" +DateTime Livingroom_TV_LastUpdate "Last Update [%1$ta %1$tR]" // e.g. "Sun 15:26" +Number Livingroom_Clock_Battery "Battery Charge [%d %%]" // e.g. "50 %" +Location My_Location "My Location [%2$s°N %3$s°E %1$sm]" // e.g. "49.26°N 123.19°E 0m" ``` {: #state-transformation}