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 commentsspaceortabin front of a command is ignored- lines starting with
{are processed asjsonlpayloads - lines starting with
[are processed asjsonpayloads - other lines are processed as
<command> <payload> CR,LForCRLFline endings allowedUTF8encoding 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.cmdis executed when the plate has finished (re)bootingL:/online.cmdwill be executed after connection to the network was successfullL:/offline.cmdwill be executed after connection to the WiFi is lostL:/idle_off.cmdwill be executed after idle state change to off (wakeup)L:/idle_short.cmdwill be executed after idle state change to shortL:/idle_long.cmdwill 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.