jasonacox / Powerwall-Dashboard

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

v4.3.0 #462

Closed jasonacox closed 2 months ago

jasonacox commented 3 months ago

Updates:

jasonacox commented 3 months ago

To test new pypowerwall, edit powerwall.yml and update the pypowerwall image to:

jasonacox/pypowerwall:0.8.1t52

Restart and watch logs...

./compose-dash.sh up -d ; docker logs pypowerwall -f
jgleigh commented 2 months ago

Not sure if you meant to suppress this in 0.8.1 or not.

[ERROR] 404 Powerwall API not found at https://192.168.1.6/api/customer/registration

jgleigh commented 2 months ago

Seeing this occasionally too.

[ERROR] Server-side problem at Powerwall API (status code 503) at https://192.168.1.6/api/solar_powerwall

And this is what gets returned when accessing that URL (until I log in again): {"code":401,"message":"Token Expired"}

jasonacox commented 2 months ago

Interesting that we see error code 503.

The HTTP status code 503 means that the server is currently unable to handle the incoming requests. Usually, this error occurs because the server is too busy or is temporarily down for maintenance. The backend server is overloaded or beyond its capacity and cannot handle any new incoming client requests.

You wouldn't be able to hit the URL directly from a browser because you are missing the token data in the request header. To test it, you would have to use the proxy via: http://powerwall:8675/api/solar_powerwall (replace powerwall with IP address of your Powerwall).

It would be interesting to see if you are seeing errors tick up: http://powerwall:8675/stats

I'm thinking about treating 503 similar to 429 (rate limit) to cause a cool down timer for that API call.

jasonacox commented 2 months ago

Testing jasonacox/pypowerwall:0.8.2t53-beta

jasonacox commented 2 months ago

Thanks for your help @jgleigh !

jgleigh commented 2 months ago

0.8.1 2024-04-12 17:31:05 04/12/2024 05:31:05 PM [proxy] [ERROR] Socket broken sending API response to client [doGET]: [Errno 32] Broken pipe 2024-04-12 17:31:05 04/12/2024 05:31:05 PM [proxy] [ERROR] Socket broken sending API response to client [doGET]: [Errno 32] Broken pipe 2024-04-12 17:31:09 04/12/2024 05:31:09 PM [proxy] [ERROR] Socket broken sending API response to client [doGET]: [Errno 32] Broken pipe 2024-04-12 17:31:09 04/12/2024 05:31:09 PM [proxy] [ERROR] Socket broken sending API response to client [doGET]: [Errno 32] Broken pipe 2024-04-12 17:31:09 04/12/2024 05:31:09 PM [proxy] [ERROR] Socket broken sending API response to client [doGET]: [Errno 32] Broken pipe 2024-04-12 17:31:09 04/12/2024 05:31:09 PM [proxy] [ERROR] Socket broken sending API response to client [doGET]: [Errno 32] Broken pipe

Restarted it earlier so don't have the token errors.

Will start testing 0.8.2 now.

youzer-name commented 2 months ago

I got this message when doing the upgrade to 4.3.0:

WARN[0000] /home/..../Powerwall-Dashboard/powerwall.extend.yml: version is obsolete

That file starts with: version: "3.5"

I use the extend file to run tesla-history alongside PWD and use that to pull my Tesla solar / PPA data. Do I need to update the extend file? I noticed that the powerwall.yml doesn't have a 'version' statement.

jasonacox commented 2 months ago

hi @youzer-name - This isn't causing problems other than the warning from docker compose?

You should be able to remove that version line. It shouldn't be needed with latest docker versions.

mcbirse commented 2 months ago

Hi @youzer-name - I also have a powerwall.extend.yml file with a custom docker container.

Confirming you can simply remove the version: "3.5" line, which is what I did. This will fix the warning without affecting your custom docker container service definitions.

youzer-name commented 2 months ago

@mcbirse Thanks for confirming.