MatrixCOS - Rest
April 17, 2025 ยท View on GitHub
Rest can be used to remote control the MatrixCOS and to read external values from other devices.
Remote Control
The rest enpoint can be used to remote control MatrixCOS.
Execute a simple CMD (like execute a programe) on the MatrixCOS via REST. (example with espName set to myesp)
e.g http://myesp.local/cmd/run+counter.cmd Will execute "run counter.cmd" on ESPNAME, which read the "counter.cmd" programm from filesystem and execute it.
e.g http://myesp.local/cmd/drawOff Will switch off the display and stop all programs
Read Remote Values / States
use command "rest" to read remote values
e.g. Read body via rest call v="AppInfo MatrixCOS V1.0.0 eeType:Os02 login:0 access_level:0" read stat of esp into attr v extract eeType: " " v = "Os02"
For Basi-Auth calls use e.g. http://admin:pas@myesp.local/cmd/set
a OpenOn.org project - develop by michael@openon.org