Skip to content

Add INDI UPS Driver using NUT for monitoring UPS status#2233

Merged
knro merged 3 commits into
indilib:masterfrom
grm:feat_add_ups
May 5, 2025
Merged

Add INDI UPS Driver using NUT for monitoring UPS status#2233
knro merged 3 commits into
indilib:masterfrom
grm:feat_add_ups

Conversation

@grm
Copy link
Copy Markdown
Contributor

@grm grm commented May 2, 2025

This commit introduces a new driver that integrates with Network UPS Tools (NUT) to monitor UPS status and expose it through INDI's weather interface. The driver includes properties for server address, UPS name, connection settings, and simulation controls, along with methods for querying UPS status and updating weather parameters accordingly.

Comment thread drivers/auxiliary/ups.cpp
Comment thread drivers/auxiliary/ups.cpp
Comment thread drivers/auxiliary/ups.cpp Outdated
Jérémie Klein and others added 2 commits May 3, 2025 15:31
- Removed socket-based connection handling and replaced it with a TCP connection object.
- Updated connection initialization and handshake process to establish a TCP connection.
- Simplified property management by removing unused server address properties.
- Enhanced logging for connection status and command responses.
- Improved error handling during communication with the NUT server.
@grm grm force-pushed the feat_add_ups branch from ef26dec to f265911 Compare May 3, 2025 13:31
@knro
Copy link
Copy Markdown
Contributor

knro commented May 4, 2025

Please fix the CI issues (unused parameters)

@TallFurryMan
Copy link
Copy Markdown
Contributor

@knro is the Fedora issue regarding ciso64 a global issue that needs investigation?

@knro knro merged commit f9c41a0 into indilib:master May 5, 2025
10 of 11 checks passed
@grm grm deleted the feat_add_ups branch July 11, 2025 16:46
knro pushed a commit to knro/indi that referenced this pull request Aug 25, 2025
* Add INDI UPS Driver using NUT for monitoring UPS status

* Refactor UPS driver to use TCP connection for NUT server communication

- Removed socket-based connection handling and replaced it with a TCP connection object.
- Updated connection initialization and handshake process to establish a TCP connection.
- Simplified property management by removing unused server address properties.
- Enhanced logging for connection status and command responses.
- Improved error handling during communication with the NUT server.

* Correct CI

---------

Co-authored-by: Jérémie Klein <jeremie.klein@octo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants