-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for multiple NUT servers #5
base: main
Are you sure you want to change the base?
Conversation
any update here? Would be cool to add multiple servers. |
any update on that ? |
You can use this branch, and I would welcome feedback on it but there is nothing I can do about merging it into main unless @rshipp accepts the changes. |
I know it is about 1 year :( |
@AdeMiller i found a small bug when you have multiple UPS monitored and one go offline the web interface do not display anything |
New Feature
The PR adds support for multiple NUT servers. It uses a new configuration which is backwards compatible with the original single server configuration format. UPSs are now indexed by an ID, "[ups]@[server]". The UI has been updated to support a new server column in the "UPS Devices" view.
Some additional minor fixes:
_get_ups_status()
battery.charge
, are not set. This can happen for a dummy/heartbeat UPS, which does not pupulate all values. Use.get()
with a default value "--" in these cases.