mirror of https://github.com/arendst/Tasmota.git
Updated Scripting Language (markdown)
parent
0cf922689c
commit
69bf98fa38
|
@ -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(<vn> <txt1> <txt2>)` (up to 4 buttons may be defined in one row)
|
||||
`<vn>` = name of variable to hold button state
|
||||
`<txt1>` = 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(<vn> <txt>)`
|
||||
`<vn>` = name of string variable to hold text state
|
||||
`<txt>` = label text
|
||||
>- **Number Input:** `nm(<min <max> <step> <vn> <txt>)`
|
||||
`<min>` = number minimum value
|
||||
`<max>` = number maximum value
|
||||
`<step>` = number step value for up/down arrows
|
||||
`<vn>` = name of number variable to hold number
|
||||
`<txt>` = 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 `.
|
||||
|
|
Loading…
Reference in New Issue