Skip to content

Commit d0547e1

Browse files
committed
Extend powerwall.yml & Backups
Support Extending powerwall.yml by modifying compose-dash.sh to look for powerwall.extend.yml and including it in docker compose commands. Change backup.sh to backup.sh.sample. Modify instructions to indicate that backup.sh.sample should be copied to backup.sh
1 parent 74133d7 commit d0547e1

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

backups/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Backup the Powerwall-Dashboard folder. In that folder are two important folders:
1111

1212
The following shows an example of how to migrate the data (influxdb) from one system to another (see backup.sh):
1313

14-
Copy backup.sh.sample to backup.sh, and edit the line that says DASHBOARD="/home/user/Powerwall-Dashboard" to have your dashboard location.
14+
Copy backup.sh.sample to backup.sh (cp backup.sh.sample backup.sh), and edit the line that says DASHBOARD="/home/user/Powerwall-Dashboard" to have your dashboard location.
1515

1616
## Backup Example
1717

File renamed without changes.

compose-dash.sh

+10-2
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,22 @@ set -a
4444
. compose.env
4545
set +a
4646

47+
# Docker Compose Extension Check
48+
if [ -f "powerwall.extend.yml" ]; then
49+
echo "Including powerwall.extend.yml"
50+
pwextend="-f powerwall.extend.yml"
51+
else
52+
pwextend=""
53+
fi
54+
4755
echo "Running Docker Compose..."
4856
if docker-compose version > /dev/null 2>&1; then
4957
# Build Docker (v1)
50-
docker-compose -f powerwall.yml $1 $2
58+
docker-compose -f powerwall.yml $pwextend $1 $2
5159
else
5260
if docker compose version > /dev/null 2>&1; then
5361
# Build Docker (v2)
54-
docker compose -f powerwall.yml $1 $2
62+
docker compose -f powerwall.yml $pwextend $1 $2
5563
else
5664
echo "ERROR: docker-compose/docker compose is not available or not runnning."
5765
echo "This script requires docker-compose or docker compose."

weather/contrib/ecowitt/README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,12 @@ Docker: docker pull [jasonacox/ecowitt](https://hub.docker.com/r/jasonacox/ecowi
8282

8383
4. Incorporate into Powerwall-Dashboard
8484

85-
Add into powerwall.yml in your Powerwall-Dashboard folder
85+
Save the following into a file called powerwall.extend.yml in your Powerwall-Dashboard folder
8686

8787
```yaml
88+
version: "3.5"
89+
90+
services:
8891
ecowitt:
8992
# Uncomment next line to build locally
9093
# build: ./weather/contrib/ecowitt
@@ -108,7 +111,7 @@ Docker: docker pull [jasonacox/ecowitt](https://hub.docker.com/r/jasonacox/ecowi
108111
- influxdb
109112
```
110113

111-
Optionally remove the weather411 section if you're not going to be running both Weather 411 and Local Weather
114+
Then restart the services using compose-dash.sh and the new component will be picked up:
112115

113116
```bash
114117
./compose-dash.sh stop
@@ -173,6 +176,10 @@ docker start ecowitt
173176

174177
## Release Notes
175178

179+
### 0.0.4.1
180+
181+
* Change to docker compose instructions to work with modified comppose-dash
182+
176183
### 0.0.4 - Third Release
177184

178185
* Fix to Rainfall Data

0 commit comments

Comments
 (0)