-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
scripts/external_apis: add example external protocol script #2813
Conversation
New scripts directory for external_apis, including one integrating the Enphase IQ Gateway web-API with NUT. Signed-off-by: Scott Shambarger <[email protected]>
Signed-off-by: Jim Klimov <[email protected]>
…ME.adoc: adjust wording in layman English parts of the text [networkupstools#2813] Note that scripts/external_apis/enphase/README.adoc is not spell-checked because it includes text from a bash script and its many variable names. Signed-off-by: Jim Klimov <[email protected]>
ENPHASE_TOKENS="https://entrez.enphaseenergy.com/tokens" | ||
|
||
msg() { printf '%s\n' "$*"; } | ||
warn() { msg >&2 "$*"; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never saw redirections ordered not in the end of command line, but this seems to work in bash at least :-)
Per #2807 (comment) :
Thanks, I'll brush it up a bit for better build integration (e.g. default paths from NUT's |
…t sources into .in templates [networkupstools#2813] Signed-off-by: Jim Klimov <[email protected]>
…xternal_apis/Makefile.am: introduce `configure --enable-extapi-enphase` installation [networkupstools#2813] Signed-off-by: Jim Klimov <[email protected]>
…ader, parameterize installed script location and NUT run-time user [networkupstools#2813] Signed-off-by: Jim Klimov <[email protected]>
…ternal_apis/enphase/enphase-monitor.in: parameterize config/state file locations to defaults with NUT configuration and locations made by package or make-install [networkupstools#2813] Signed-off-by: Jim Klimov <[email protected]>
…for the enphase data file [networkupstools#2813] Signed-off-by: Jim Klimov <[email protected]>
…nal_apis/enphase/README.adoc, fix corresponding typos or update the dictionary [networkupstools#2813] Signed-off-by: Jim Klimov <[email protected]>
@sshambar : most of NUT is licensed GPLv2+, WDYT about changing the wording in the PR'ed files to that (not v3+ to avoid surprises)? |
That's fine, the script is really designed to work specifically with NUT, so aligning the licenses makes total sense. |
Signed-off-by: Scott Shambarger <[email protected]>
…nsed [networkupstools#2813] Signed-off-by: Jim Klimov <[email protected]>
New scripts directory for external_apis, including one integrating the Enphase IQ Gateway web-API with NUT.
First draft of script addition discussed in issue #2807