jasonacox / Powerwall-Dashboard

Grafana Monitoring Dashboard for Tesla Solar and Powerwall Systems
MIT License
270 stars 57 forks source link

V3.0.2 - Docker-Compose Fixes #391

Closed jasonacox closed 7 months ago

jasonacox commented 7 months ago

v3.0.2 - Docker-Compose Fixes

jasonacox commented 7 months ago

✅ Ubuntu 18 with Docker-Compose 1.17.1

$ ./upgrade.sh 
Upgrade Powerwall-Dashboard from 3.0.1 to 3.0.2
---------------------------------------------------------------------
This script will attempt to upgrade you to the latest version without
removing existing data. A backup is still recommended.

Upgrade - Proceed? [y/N] y

Resetting Timezone to Default...

Pull influxdb.sql, dashboard.json, telegraf.conf, and other changes...

No local changes to save
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 13 (delta 6), reused 12 (delta 6), pack-reused 0
Unpacking objects: 100% (13/13), done.
From https://github.com/jasonacox/Powerwall-Dashboard
   0ed811e..2644e62  main       -> origin/main
 * [new tag]         v3.0.1     -> v3.0.1
Updating 0ed811e..2644e62
Fast-forward
 RELEASE.md      |  6 ++++++
 VERSION         |  2 +-
 compose-dash.sh | 38 ++++++++++++++++++++++++--------------
 upgrade.sh      |  2 +-
 4 files changed, 32 insertions(+), 16 deletions(-)
Current branch main is up to date.

Setting Timezone back to America/Los_Angeles...

Updating Powerwall-Dashboard stack...
Running Docker Compose...
** WARNING **
    You have an old version of docker-compose that will
    be deprecated in a future release. Please upgrade or
    report your use case to the Powerwall-Dashboard project.

Applying workaround for old docker-compose...
pypowerwall is up-to-date
influxdb is up-to-date
grafana is up-to-date
weather411 is up-to-date
telegraf is up-to-date

Waiting for InfluxDB to start...
 up!

Add downsample continuous queries to InfluxDB...
2023/11/20 17:26:05 error: retention policy already exists
2023/11/20 17:26:05 error: retention policy already exists
2023/11/20 17:26:05 error: retention policy already exists
2023/11/20 17:26:06 error: continuous query already exists
2023/11/20 17:26:06 error: continuous query already exists

Deleting old pyPowerwall...
pypowerwall
pypowerwall

Deleting old telegraf...
telegraf
telegraf

Deleting old weather411...
weather411
weather411

Restarting Powerwall-Dashboard stack...
Running Docker Compose...
** WARNING **
    You have an old version of docker-compose that will
    be deprecated in a future release. Please upgrade or
    report your use case to the Powerwall-Dashboard project.

Applying workaround for old docker-compose...
influxdb is up-to-date
grafana is up-to-date
Creating pypowerwall ... 
Creating weather411 ... 
Creating weather411
Creating pypowerwall ... done
Creating telegraf ... 
Creating telegraf ... done

---------------[ Update Dashboard ]---------------
Open Grafana at http://localhost:9000/

From 'Dashboard/Browse', select 'New/Import', and
upload 'dashboard.json' located in the folder
/home/tesla/Powerwall-Dashboard/dashboards/

Please note, you may need to select data sources
for 'InfluxDB' and 'Sun and Moon' via the
dropdowns and use 'Import (Overwrite)' button.