Skip to content

Commit 41ee68b

Browse files
authored
Update Scripting-Language.md
1 parent 4e5d2f8 commit 41ee68b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Scripting-Language.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ To use it you must [compile your build](compile-your-build). Add the following t
1010
#endif
1111
```
1212

13-
### Optional Features
13+
#### Optional Includes
1414

15-
These features are enabled by adding the following `#define` compiler directive parameters and then compiling the firmware. These parameters are explained further below in the article.
15+
Additional features are enabled by adding the following `#define` compiler directive parameters and then compiling the firmware. These parameters are explained further below in the article.
1616

1717
| Feature | Description |
1818
| -- | -- |
@@ -32,7 +32,7 @@ USE_SCRIPT_FATFS | enables SD card support (on SPI bus). Specify the CS pin numb
3232
USE_SCRIPT_FATFS_EXT | enables additional FS commands
3333
SDCARD_DIR | enables support for web UI for SD card directory upload and download
3434
----
35-
35+
## Features
3636
Scripting Language for Tasmota is an alternative to Tasmota [Rules](Rules).
3737

3838
[Script Cookbook](Script-Cookbook)
@@ -64,14 +64,14 @@ To save code space almost no error messages are provided. However it is taken ca
6464
- _**No spaces are allowed between math operators**_
6565
- Comments start with `;`
6666

67-
**Console script commands**
67+
**Console Commands**
6868
`script <n>` \<n>: `0` = switch script off; `1` = switch script on
6969
`script ><cmdline>` execute \<cmdline>
7070
- Can be used to set variables, e.g., `script >mintmp=15`
7171
- Multiple statements can be specified by separating each with a semicolon, e.g. `script >mintmp=15;maxtemp=40`
7272
- The script itself can't be specified because the size would not fit the MQTT buffers
7373

74-
**Script Sections**
74+
## Script Sections
7575
_Section descriptors (e.g., `>E`) are **case sensitive**_
7676
>`>D ssize`
7777
ssize = optional max string size (default=19)
@@ -173,13 +173,14 @@ The lines in this section are displayed in the web UI main page. Requires compil
173173
`<txt>` = label text
174174
175175
>`>M`
176-
[Smart Meter Interface](smart-meter-interface)
176+
[Smart Meter Interface](peripherals/smart-meter-interface)
177177

178178
If a variable does not exist, `???` is displayed for commands
179179

180180
If a Tasmota `SENSOR` or `STATUS` or `RESULT` message is not generated or a `Var` does not exist the destination variable is NOT updated.
181181

182-
**Special variables** (read only)
182+
## Special Variables
183+
(read only)
183184
`upsecs` = seconds since start
184185
`uptime` = minutes since start
185186
`time` = minutes since midnight
@@ -246,7 +247,7 @@ The following variables are cleared after reading true:
246247
Remarks:
247248
If you define a variable with the same name as a special variable that special variable is discarded
248249

249-
**Tasmota commands**
250+
## Commands
250251
`=> <command>` Execute \<command> recursion disabled
251252
`+> <command>` Execute \<command> recursion enabled
252253
`-> <command>` Execute \<command> - do not send MQTT or log messages (i.e., silent execute - useful to reduce traffic)

0 commit comments

Comments
 (0)