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

Enhanced the library with writing settings to the inverter. #1

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

27ascii
Copy link

@27ascii 27ascii commented Jan 28, 2024

The library has been extended to allow writing of settings to the inverter. An example of how it can be used to control battery state is included.

type SettingsDataValues structmatches the response structure of the GET /settings

type SettingsDataValues struct {

However it is lacking the valuefield required for writing. Therefor I created ModuleSettings suitable for the updates.
https://github.com/27ascii/golrackpi/blob/8e66f85887f14f082a50b14027045251009f2bab/settings.go#L186

@27ascii
Copy link
Author

27ascii commented Mar 29, 2024

@geschke Let me know if you need further information on this PR.

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.

1 participant