mirror of
https://github.com/gunu3371/m1s_ups_control.git
synced 2024-09-25 05:35:40 +00:00
Update service.py
This commit is contained in:
parent
f5bbfec17f
commit
7855f04eed
@ -122,10 +122,10 @@ while not killer.kill_now:
|
||||
ups.shutdown()
|
||||
os.system("shutdown now")
|
||||
log.crit('battery is too low Shut down system')
|
||||
elif pw <= 3800:
|
||||
log.warn('battery is low')
|
||||
elif pw <= 3650:
|
||||
log.crit('battery is too low')
|
||||
elif pw <= 3800:
|
||||
log.warn('battery is low')
|
||||
elif ps == "err":
|
||||
log.crit('UPS hardware error detect')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user