Skip to content
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

Common UPS variable and generic variable datatypes #28

Open
gbakeman opened this issue May 4, 2024 · 0 comments
Open

Common UPS variable and generic variable datatypes #28

gbakeman opened this issue May 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@gbakeman
Copy link
Collaborator

gbakeman commented May 4, 2024

NUTVariable

A variable that tries to closely represent the behavior of a state (variable) in the C-based NUT server and client code represents it. This will be largely abstracted from the consumer of this library by way of providing a higher-level object.

UPSVariable

Wraps a NUTVariable. Takes in update commands & information from a managing object, and allows read access to the consumer. Allows and handles updates from the consumer depending on variable properties. May also keep a history of read values and interactions with the NUT server.

CommonUPSProperty

Represents a common property of a UPS that someone may expect, such as Name and Description, as well as technical indicators like input and output values, and line and battery properties. These in turn may be directly represented by an underlying UPSVariable, or involve an algorithm by calculating it from some combination of known UPSVariables. What method or mode of providing this property should be indicated, or if it is even available at all.

@gbakeman gbakeman added the enhancement New feature or request label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant