Batch Processing
Commands can be processed in batch one after another from .cmd
script files located in the flash storage of the plate.
General rules when creating .cmd
batch scripts:
- can contain any command
- empty lines are ignored
#
or//
can be used for commentsspace
ortab
in front of a command is ignored- lines starting with
{
are processed asjsonl
payloads - lines starting with
[
are processed asjson
payloads - other lines are processed as
<command> <payload>
CR
,LF
orCRLF
line endings allowedUTF8
encoding is required for special characters
To start a batch script, use run
command.
System scripts~
If any of the following scripts is present on the filesystem, it will be run automatically according to the rules below:
L:/boot.cmd
is executed when the plate has finished (re)bootingL:/online.cmd
will be executed after connection to the network was successfullL:/offline.cmd
will be executed after connection to the WiFi is lostL:/idle_off.cmd
will be executed after idle state change to off (wakeup)L:/idle_short.cmd
will be executed after idle state change to shortL:/idle_long.cmd
will be executed after idle state change to long
This makes it possible to disable or hide buttons, load a special offline page, dimming background, etc. See example.