jasonacox / Powerwall-Dashboard

Grafana Monitoring Dashboard for Tesla Solar and Powerwall Systems
MIT License
301 stars 66 forks source link

unRAID Setup #164

Open jasonacox opened 1 year ago

jasonacox commented 1 year ago

@drnick5 on Reddit:

Any place have a tutorial on how to set this up? I run unRAID and have Dockers for other things, but couldn't get this to work.

jasonacox commented 1 year ago

It would be helpful to get any details/error during the "setup" part.

Also, if docker compose is not available on unRAID, a manual setup of each container could work but would require configuration changes. For example, you would replace the hostnames with localhost. You would skip the ./compose-dash.sh up -d step and run individual docker run commands for each component:

# weather411
docker run \
-d \
-p 8676:8676 \
-e WEATHERCONF='/var/lib/weather/weather411.conf' \
-v ${PWD}:/var/lib/weather \
--name weather411 \
--restart unless-stopped \
jasonacox/weather411

# pypowerwall
docker run \
-d \
-p 8675:8675 \
-e PW_EMAIL=email@example.com \
-e PW_PASSWORD=password \
-e PW_HOST=10.0.1.2 \
-e PW_TIMEZONE=America/Los_Angeles \
--name pypowerwall \
--restart unless-stopped \
jasonacox/pypowerwall

# etc

Another option, from what I can tell from the unRAID site, you can create a Ubuntu Linux VM. If you do that, you can run the standard setup.sh.

willyp713 commented 5 months ago

Unraid has an add-on to enable compose support called Docker Compose Manager, but it's still a little clunky because it's not native and uses some non-conventional UI tricks. I'm going to try to get this project going that way and will report back if I find anything helpful.

Incidentally, Grafana (and InfluxDB and Telegraf) are popular in the Unraid world and have many easy paths to start. Perhaps there's another angle here to create some sort of tutorial or "easy-mode" path to get this project set up for existing installations of Grafana and InfluxDB?

For example: if you already have the Grafana ecosystem working, it would be conceptually pretty simple to add the pypowerwall and weather411 containers and follow the manual config steps in README.md. That kind of thing happens all the time to add new data sources to Grafana. But simple doesn't mean "easy" :)