Description
Problem
The animation in the Powerwall Dashboard sometimes doesn't load if you have multiple copies of it open on multiple tabs in the same browser.
To Reproduce
- PyPowerwall proxy in TEDAPI/local mode with static route to your gateway
- PW_STYLE=solar
- Load dashboard (Note animation is working)
- Load dashboard in second tab (Animation is probably working in both)
- Refresh original tab
- Animation now broken.
- Refresh again, and animation is likely working again.
This can be reproduced using /
or example.html
as well.
Screenshots
Host System
- Raspberry Pi/Raspbian hosting Grafana/PyPowerwall/etc
- Client: Windows 11 (Chrome or Firefox)
Additional context
I'm nearly certain this has something to do with app.js deadlocking on a shared context object. Perhaps someone who has more expertise in webdev/JS can help investigate here? I tried renaming webpackjsonp, but that did nothing.
Other options might be to update to the latest version from the Tesla app. Nearly certain the "root" problem is this was not designed to be loaded in a normal browser, and definitely not designed to be loaded more than once!
While I reproduced this using TEDAPI/local mode and solar only, I don't believe this bug to be exclusive to that.
Activity