Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-mgmt/py-pypowerwall: Update to 0.5.0
- Loading branch information
Showing
4 changed files
with
77 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
TIMESTAMP = 1656865953 | ||
SHA256 (jasonacox-pypowerwall-v0.4.0_GH0.tar.gz) = 08504bbf53c831eaba8bca585a2958ec8226fb6a64e2e95fa145fca471c9237a | ||
SIZE (jasonacox-pypowerwall-v0.4.0_GH0.tar.gz) = 131316 | ||
TIMESTAMP = 1657029942 | ||
SHA256 (jasonacox-pypowerwall-v0.5.0_GH0.tar.gz) = 94fece6d038523899e23183708b8a7cb3368eb121415a39cd4a5caea7848900f | ||
SIZE (jasonacox-pypowerwall-v0.5.0_GH0.tar.gz) = 185001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/sh | ||
|
||
# PROVIDE: pypowerwall_proxy | ||
# REQUIRE: LOGIN | ||
# KEYWORD: shutdown | ||
# | ||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf | ||
# to enable this service: | ||
# | ||
# pypowerwall_proxy_enable (bool): Set to NO by default. | ||
# Set it to YES to enable pypowerwall_proxy. | ||
# pypowerwall_proxy_user (string): Set user that pypowerwall_proxy will run under | ||
# Default is "nobody". | ||
# pypowerwall_proxy_listen (string): Set IP that pypowerwall_proxy will listen on | ||
# Default is "127.0.0.1". | ||
# pypowerwall_proxy_host (string): Set IP that pypowerwall_proxy will connect to | ||
# Default is "127.0.0.1". | ||
# pypowerwall_proxy_port (string): Set port that pypowerwall_proxy listen on | ||
# Default is "8675". | ||
# pypowerwall_proxy_email (string): Set email that pypowerwall_proxy use to login | ||
# Default is "no@body.com". | ||
# pypowerwall_proxy_password (string): Set password that pypowerwall_proxy use to login | ||
# Default is "". | ||
# pypowerwall_proxy_timezone (string): Set timezone that pypowerwall_proxy will use | ||
# Default is "America/New_York". | ||
|
||
. /etc/rc.subr | ||
|
||
name=pypowerwall_proxy | ||
rcvar=pypowerwall_proxy_enable | ||
|
||
load_rc_config $name | ||
|
||
: ${pypowerwall_proxy_enable:="NO"} | ||
: ${pypowerwall_proxy_username:="nobody"} | ||
: ${pypowerwall_proxy_group:="nobody"} | ||
: ${pypowerwall_proxy_listen:="127.0.0.1"} | ||
: ${pypowerwall_proxy_host:="127.0.0.1"} | ||
: ${pypowerwall_proxy_email:="no@body.com"} | ||
: ${pypowerwall_proxy_timezone:="America/New_York"} | ||
: ${pypowerwall_proxy_password:=""} | ||
: ${pypowerwall_proxy_port:="8675"} | ||
|
||
pidfile=/var/run/pypowerwall_proxy.pid | ||
command="/usr/sbin/daemon" | ||
pypowerwall_proxy_command="%%DATADIR%%/server.py" | ||
command_args="-u ${pypowerwall_proxy_username} -rP ${pidfile} -S -t ${name} -T ${name} /usr/bin/env PW_EMAIL=${pypowerwall_proxy_email} PW_PASSWORD=${pypowerwall_proxy_password} PW_TIMEZONE=${pypowerwall_proxy_timezone} PW_HOST=${pypowerwall_proxy_host} PW_BIND_ADDRESS=${pypowerwall_proxy_listen} PW_PORT=${pypowerwall_proxy_port} ${pypowerwall_proxy_command}" | ||
|
||
load_rc_config $name | ||
run_rc_command "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
%%DATADIR%%/HELP.md | ||
%%DATADIR%%/README.md | ||
@comment %%DATADIR%%/localhost.pem | ||
@mode 555 | ||
%%DATADIR%%/server.py | ||
@mode | ||
%%DATADIR%%/transform.py | ||
%%DATADIR%%/web/black.js | ||
%%DATADIR%%/web/clear.js | ||
%%DATADIR%%/web/dakboard.js | ||
%%DATADIR%%/web/example.html | ||
%%DATADIR%%/web/grafana.js | ||
%%DATADIR%%/web/white.js |