${__status.online ? 'live' : 'offline'}
Temperature
24.8 °C
ok
CPU Load
37 %
moderate
Free Memory
${metrics.ram} KB
low ok-ish
Volume
18.7 dB
ok
Static Graph
Temperature
Humidity
Real-Time Graph
autoupdate:
Motor Voltage
LED Control
LED1
LED2
LED3
To attach LED controls to your device, modify read_leds() and write_leds() functions
Start/Stop Action Button actions.action1=${actions.action1}
Press to start/stop
This button is bound to the data-bind="actions.action1" boolean field. When it is pressed, the field on a device side is set to true. When unpressed, it is set to false. Add device-specific code in read_actions() and write_actions() to act on the button state.
Start Action Button actions.action2=${actions.action2}
Press to start
This button is different - the C handler code for it reacts on start, and ignores stops. Use it to implement actions that start some process - like formatting SD card, which finishes at some point in the future. When the process is finished, flip the boolean field back to false, and send change notification.