mirror of https://github.com/arendst/Tasmota.git
Updated Scripting Language (markdown)
parent
33ef9b2e65
commit
e5930f2020
|
@ -25,8 +25,8 @@ USE_24C256 | enables use of 24C256 I<sup>2</sup>C EEPROM to expand script buffer
|
||||||
SUPPORT_MQTT_EVENT | enables support for subscribe unsubscribe
|
SUPPORT_MQTT_EVENT | enables support for subscribe unsubscribe
|
||||||
USE_TOUCH_BUTTONS | enable virtual touch button support with touch displays
|
USE_TOUCH_BUTTONS | enable virtual touch button support with touch displays
|
||||||
USE_WEBSEND_RESPONSE | enable receiving the response of a websend command (received in section E)
|
USE_WEBSEND_RESPONSE | enable receiving the response of a websend command (received in section E)
|
||||||
USE_SCRIPT_WEB_DISPLAY | enable >W section (see below)
|
USE_SCRIPT_WEB_DISPLAY | enable `>W` section
|
||||||
USE_SCRIPT_JSON_EXPORT | enable >J section (see below)
|
USE_SCRIPT_JSON_EXPORT | enable `>J` section
|
||||||
|
|
||||||
<BR><BR>To enter a script, go to `Configuration` =\> `Edit script` in the Tasmota web UI menu
|
<BR><BR>To enter a script, go to `Configuration` =\> `Edit script` in the Tasmota web UI menu
|
||||||
|
|
||||||
|
@ -100,12 +100,12 @@ Executed when a Tasmota MQTT `RESULT` message is received, e.g., on `POWER` chan
|
||||||
Executed on restart. p vars are saved automatically after this call
|
Executed on restart. p vars are saved automatically after this call
|
||||||
|
|
||||||
>`>W`
|
>`>W`
|
||||||
the lines in this section are shown in the WEBUI main page if #define USE_SCRIPT_WEB_DISPLAY is set
|
The lines in this section are shown in the WEBUI main page. Requires compiling with `#define USE_SCRIPT_WEB_DISPLAY`. For example, show calculated values
|
||||||
e.g. show calculated values => absolute Humidity: {m} %ahum%
|
=> absolute Humidity: {m} %ahum%
|
||||||
|
|
||||||
>`>J`
|
>`>J`
|
||||||
the lines in this section are exported on teleperiod time to MQTT if #define USE_SCRIPT_JSON_EXPORT is set
|
The lines in this section are published via MQTT every `TelePeriod`. Requires compiling with `#define USE_SCRIPT_JSON_EXPORT`. For example, publish calculated values
|
||||||
e.g. export calculated values => ,"ahumidty":%ahum%
|
=> ,"ahumidty":%ahum%
|
||||||
|
|
||||||
If a variable does not exist, `???` is displayed for commands
|
If a variable does not exist, `???` is displayed for commands
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue