From 65aa2786d37e6774aa48f13eb08d223b58d5417b Mon Sep 17 00:00:00 2001 From: gemu <gmutz2010@googlemail.com> Date: Sun, 8 Sep 2019 21:00:43 +0200 Subject: [PATCH] Updated Scripting Language (markdown) --- Scripting-Language.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Scripting-Language.md b/Scripting-Language.md index 9799f099..bed95f89 100644 --- a/Scripting-Language.md +++ b/Scripting-Language.md @@ -103,6 +103,8 @@ Executed on restart. p vars are saved automatically after this call The lines in this section are shown in the WEBUI main page. Requires compiling with `#define USE_SCRIPT_WEB_DISPLAY`. >`>J` +The lines in this section are exported to MQTT at teleperiod time. Requires compiling with `#define USE_SCRIPT_JSON_EXPORT `. + >`>M` [Smart Meter Interface](smart-meter-interface). @@ -179,6 +181,7 @@ If you define a variable with the same name as a special variable that special v `=> <command>` Execute \<command> `-> <command>` Execute \<command> - do not send MQTT or log messages (i.e., silent execute - useful to reduce traffic) - Variable replacement within commands is allowed using `%varname%` +- optionally a digit (0..9) may be placed in front of the substitution variable to set the decimals of a number variable - A single percent sign must be given as `%%` **Special** commands: