Replies: 4 comments 23 replies
-
Hi @ThePnuts ! Welcome!
Absolutely not. 😉 You have thought through several good options. Since you are already running InfluxDB and grafana, you would likely have problems setting up the docker-ompose version (since they probably use the same ports).
Yes, and telegraf, some some other adjustments. The reason for this project is that the setup is a bit involved, but you can do it. I'll do a quick top-of-mind list of things you should think about (and yes, I'm probably missing some things 😁 ):
Here are the parameters you will need to set: pypowerwallSee https://github.com/jasonacox/pypowerwall/tree/main/proxy and you will find the docker run \
-d \
-p 8675:8675 \
-e PW_PORT='8675' \
-e PW_PASSWORD='password' \
-e PW_EMAIL='[email protected]' \
-e PW_HOST='IP_of_Powerwall_Gateway' \
-e PW_TIMEZONE='America/Los_Angeles' \
-e TZ='America/Los_Angeles' \
-e PW_CACHE_EXPIRE='5' \
-e PW_DEBUG='no' \
-e PW_HTTPS='no' \
--name pypowerwall \
--restart unless-stopped \
jasonacox/pypowerwall After you have it running, you can test it by going to to this address TelegrafThis is a little more complicated because it will require telegraf to access a local configuration file (
After you save that, set up telegraf in Unraid manager with details like below. Notice it is mapping the telegraf.conf flie you created into the container (change $PWD to the path where telegraf.conf lives):
InfluxdBThere are still setup things you will need to do for InfluxDB to support the dashboard. If you have the ability to execute a shell inside your InfluxDB, you will want to run the docker exec -it influxdb influx GrafanaWe use several plugins for Grafana. You may have these already setup, but if not, you can use the list here: https://github.com/jasonacox/Powerwall-Dashboard/blob/main/grafana.env.sample#L3 Now inside of Grafana, you will still follow some of the setup here: https://github.com/jasonacox/Powerwall-Dashboard#grafana-setup Key difference is that you will edit the URL to represent the address of your Unraid server instead of http::/influxdb. Weather411 (optional)This is optional, but if you want local weather data on your graph, you will set up the weather411.conf file (see https://github.com/jasonacox/Powerwall-Dashboard/tree/main/weather#quick-start) and then run that container: 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 If you decided to go down this path, it would be great if you could note all of your steps and share with others who might have the same Unraid setup. |
Beta Was this translation helpful? Give feedback.
-
Debating spinning up a influx 1.8 db I might be a bit in over my head on the constant query converted to task front. Also for weather411, I have been using api tokens to grant access for telegraf, guessing I cant do that and need to look into how to add a user, or not if I do setup a 1.8 db just for this. Hmmmmmm |
Beta Was this translation helpful? Give feedback.
-
Follow up here with docker setup steps in Unraid (or use XML files here: #191 (reply in thread))
|
Beta Was this translation helpful? Give feedback.
-
I wanted to say thank y'all to @ThePnuts and @jasonacox for the work y'all did here outlining these steps. They weren't the easiest to follow but they were clear enough that I now have my docker containers working on my Unraid machine and can stop running them on a separate computer/VMs. For others that may find this here are the steps I took:
I had to create the telegraf.conf file in /mnt/user/appdate/telegraf/telegraf.conf and used Jason's instructions and updated the IP directions for the IP of my unraid server.
|
Beta Was this translation helpful? Give feedback.
-
I am new to all of this and basically learning as I take each step.
I currently have an Unraid server with several docker containers including Influxdb and Grafana. As I understand it, if I install Docker Compose, it would be lost after a restart due to the way Unraid functions. It looks like there is a beta plugin I could use though.
Is it likely something I could do, to have this functional without Docker Compose, using the Unraid docker manager?
Would a Ubuntu VM doing the non influx\grafana stuff probably be a better option for me?
I think I may be over thinking all this...
Being new to github as well (first time here really), I think I understand this all a little better as I am digging in while making this post.
Powerwall-Dashboard is basically a all in one approach making it easy to set everything up? Its creating multiple dockers for each piece and tying it all together very nicely for someone to get rolling instantly.
pypowerwall is what is getting the data and putting it into influx.
Maybe my best approach is learning how to get pypowerwall functioning in docker (using Unraids manager) and then I can come here and pull out the dashboard information that all looks amazing and tweak it as I want.
I think this last option seems like the best path forward. I guess I'm not really asking a question and kind of just typed my train of thoughts as I read through this. If anyone has any good info that would be helpful for me in my learning experience, feel free to point me. Or even just confirmation of my sillyness and maybe a different approach I didn't think of.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions