kopia lustrzana https://github.com/mate-dev/meshtastic-matrix-relay
try another aproche
rodzic
4925d1bf1a
commit
21aad36072
|
@ -67,8 +67,9 @@ $shortname $longname / $devicemodel / $battery $voltage / $snr / $lastseen
|
||||||
if "batteryLevel" in info["deviceMetrics"]:
|
if "batteryLevel" in info["deviceMetrics"]:
|
||||||
battery = f"{info['deviceMetrics']['batteryLevel']}% "
|
battery = f"{info['deviceMetrics']['batteryLevel']}% "
|
||||||
|
|
||||||
response += f">**{info['user']['shortName']}** {info['user']['longName']}\n"\
|
response += f"><hr/>\n\n"\
|
||||||
f">{info['user']['hwModel']} {battery}{voltage}\n"\
|
f">**{info['user']['shortName']}** {info['user']['longName']}\n\n"\
|
||||||
|
f">{info['user']['hwModel']} {battery}{voltage}\n\n"\
|
||||||
f">{snr}{last_heard}\n\n"
|
f">{snr}{last_heard}\n\n"
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
Ładowanie…
Reference in New Issue