Updated Scripting Language (markdown)

Michael Ingraham 2019-09-03 09:32:57 -04:00
parent 33ef9b2e65
commit e5930f2020
1 changed files with 6 additions and 6 deletions

@ -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
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_SCRIPT_WEB_DISPLAY | enable >W section (see below)
USE_SCRIPT_JSON_EXPORT | enable >J section (see below)
USE_SCRIPT_WEB_DISPLAY | enable `>W` section
USE_SCRIPT_JSON_EXPORT | enable `>J` section
<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
>`>W`
the lines in this section are shown in the WEBUI main page if #define USE_SCRIPT_WEB_DISPLAY is set
e.g. show calculated values => absolute Humidity: {m} %ahum%
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
=> absolute Humidity: {m} %ahum%
>`>J`
the lines in this section are exported on teleperiod time to MQTT if #define USE_SCRIPT_JSON_EXPORT is set
e.g. export calculated values => ,"ahumidty":%ahum%
The lines in this section are published via MQTT every `TelePeriod`. Requires compiling with `#define USE_SCRIPT_JSON_EXPORT`. For example, publish calculated values
=> ,"ahumidty":%ahum%
If a variable does not exist, `???` is displayed for commands