kopia lustrzana https://github.com/mate-dev/meshtastic-matrix-relay
Add sign to battery and voltage
rodzic
5af42c8fe4
commit
65d14ce4f9
|
@ -54,8 +54,8 @@ $shortname $longname / $devicemodel / $battery $voltage / $snr / $lastseen
|
|||
if "lastHeard" in info and info["lastHeard"] is not None:
|
||||
last_heard = get_relative_time(info["lastHeard"])
|
||||
|
||||
voltage = ""
|
||||
battery = ""
|
||||
voltage = "?V"
|
||||
battery = "?%"
|
||||
if "deviceMetrics" in info:
|
||||
if "voltage" in info["deviceMetrics"] and info["deviceMetrics"]["voltage"] is not None:
|
||||
voltage = f"{info['deviceMetrics']['voltage']}V "
|
||||
|
|
Ładowanie…
Reference in New Issue