This commit is contained in:
vvzvlad 2024-08-13 18:52:03 +03:00
parent 330105a5a4
commit 60427c950a

View File

@ -88,7 +88,7 @@ def main():
if result is None: continue
battery_percent = int(result)
print(f"UPS percent: {battery_percent}, time on battery: {time_on_battery} minutes, state: {state}", flush=True)
print(f"Batterry {battery_percent}%, {state}, estimated time on battery: {time_on_battery} minutes", flush=True)
shutdown_status = run_command('shutdown --show')
@ -106,4 +106,3 @@ def main():
if __name__ == "__main__":
print("Starting UPS monitoring...", flush=True)
main()