Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
awaescher authored Oct 9, 2024
1 parent 8d7f4e8 commit fd7656a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ The communication to the inverters is achieved with an [reverse-engineered](http

The easiest way to use MaxPower is with docker. Use the files from [the dashboard sample](usage-with-docker-compose) to run a MaxPower container along with Prometheus and Grafana for a local dashboard stack which runs perfectly fine on a Raspberry Pi.

### Connection issues and regular restarts

I found that the inverters turned inaccessible after ~24 hours of running MaxPower. Strangely enough, only restarting the MaxPower-container fixed it. I checked the code but could not find any leaks or possible connection issues. That's why I went with the crowbar tactic and added an additional docker container in my docker-compose.yml that restarts the MaxPower-container regularly. You might need it too:

```yaml
restarter:
image: docker:cli
restart: unless-stopped
volumes: ["/var/run/docker.sock:/var/run/docker.sock"]
entrypoint: ["/bin/sh","-c"]
command:
- |
while true; do
echo "Restarting MaxPower ..."
docker restart maxpower # use the service name of the MaxPower container defined in your docker-compose.yml
sleep 3600
done
```
---
Solar panel icon created by Freepik - [Flaticon](https://www.flaticon.com/free-icons/solar-panel)
Solar panel icon created by Freepik - [Flaticon](https://www.flaticon.com/free-icons/solar-panel)

0 comments on commit fd7656a

Please sign in to comment.