From 69bf98fa384387ab94ae1045561fe2ced9e2ca42 Mon Sep 17 00:00:00 2001 From: gemu Date: Wed, 25 Sep 2019 06:33:34 +0200 Subject: [PATCH] Updated Scripting Language (markdown) --- Scripting-Language.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Scripting-Language.md b/Scripting-Language.md index 3f039ad3..76f5096c 100644 --- a/Scripting-Language.md +++ b/Scripting-Language.md @@ -108,7 +108,7 @@ The lines in this section are displayed in the web UI main page. Requires compil >- HTML statements preceded with a `@` are displayed at the top of the page >- USER IO elements are displayed at the top of the page > ->A web user interface may be generated containing any of the following elements: toggle button, check box, slider, or text input. +>A web user interface may be generated containing any of the following elements: toggle button, check box, slider, or text and number input. >- **Button:** `bu( )` (up to 4 buttons may be defined in one row) `` = name of variable to hold button state `` = text of ON state of button @@ -126,6 +126,12 @@ The lines in this section are displayed in the web UI main page. Requires compil >- **Text Input:** `tx( )` `` = name of string variable to hold text state `` = label text +>- **Number Input:** `nm( )` + `` = number minimum value + `` = number maximum value + `` = number step value for up/down arrows + `` = name of number variable to hold number + `` = label text >`>J` The lines in this section are published via MQTT in a JSON payload on [TelePeriod](Commands#teleperiod). Requires compiling with `#define USE_SCRIPT_JSON_EXPORT `.