Skip to content

Commit

Permalink
Merge pull request #482 from jasonacox/v4.4.1
Browse files Browse the repository at this point in the history
FleetAPI Hotfix
  • Loading branch information
jasonacox authored Jun 9, 2024
2 parents 994e870 + e92bc3b commit 9f2f055
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 3 deletions.
5 changes: 5 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# RELEASE NOTES

## v4.4.1 - FleetAPI Hotfix

* Update to pypowerwall v0.10.2 to fix FleetAPI setup but as raised in https://github.com/jasonacox/pypowerwall/issues/98.
* Update `setup.sh` to add optional command line switch `-f` for standalone FleetAPI mode setup.

## v4.4.0 - FleetAPI and TEDAPI

* Add TEDAPI Support for Extended Device Metrics (the return of most of `/vitals`) - This requires connecting to Powerwall WiFi directly or setting up a network route on the Dashboard host to allow it to reach the GW address (192.168.91.1).
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.4.0
4.4.1
2 changes: 1 addition & 1 deletion powerwall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
- influxdb.env

pypowerwall:
image: jasonacox/pypowerwall:0.10.1t59
image: jasonacox/pypowerwall:0.10.2t59
container_name: pypowerwall
hostname: pypowerwall
restart: unless-stopped
Expand Down
41 changes: 41 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,47 @@ if ! docker compose version > /dev/null 2>&1; then
fi
fi

# Command Line Options
while getopts ":hf" opt; do
case ${opt} in
h )
echo "Usage: setup.sh [-h]"
echo " -h Display this help message."
echo " -f Setup FleetAPI Cloud Mode"
exit 0
;;
f )
echo "Setup FleetAPI Cloud Mode"
echo ""
if [ ! -f ${PW_ENV_FILE} ]; then
echo "ERROR: Missing ${PW_ENV_FILE}. Run setup.sh first."
echo ""
exit 1
fi
echo "This will configure FleetAPI Cloud mode for Powerwall systems."
echo ""
read -r -p "Setup FleetAPI Cloud Mode? [Y/n] " response
if [[ "$response" =~ ^([nN][oO]|[nN])$ ]]; then
echo "Cancel"
exit 1
fi
echo ""
echo "Running FleetAPI Cloud Mode Setup..."
echo ""
docker exec -it pypowerwall python3 -m pypowerwall fleetapi
echo ""
echo "Restarting..."
docker restart pypowerwall
echo "-----------------------------------------"
exit 0
;;
\? )
echo "Invalid Option: -$OPTARG" 1>&2
exit 1
;;
esac
done

# Check PW_ENV_FILE for existing configuration
if [ ! -f ${PW_ENV_FILE} ]; then
choice=""
Expand Down
2 changes: 1 addition & 1 deletion upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set -e

# Set Globals
VERSION="4.4.0"
VERSION="4.4.1"
CURRENT="Unknown"
COMPOSE_ENV_FILE="compose.env"
INFLUXDB_ENV_FILE="influxdb.env"
Expand Down

0 comments on commit 9f2f055

Please sign in to comment.