Added lxmd telemetry plugin to examples

This commit is contained in:
Mark Qvist 2025-01-26 12:53:40 +01:00
parent ebc4462a50
commit a812f0a589
2 changed files with 43 additions and 1 deletions

View file

@ -59,7 +59,8 @@ class BasicTelemetryPlugin(SidebandTelemetryPlugin):
# Create fuel sensor
telemeter.synthesize("fuel")
telemeter.sensors["fuel"].update_entry(capacity=75, level=61)
telemeter.sensors["fuel"].update_entry(capacity=75, level=61, type_label="Main")
telemeter.sensors["fuel"].update_entry(capacity=15, level=15, type_label="Reserve")
# Finally, tell Sideband what class in this
# file is the actual plugin class.