Skip to content

Animation when in TEDAPI (and solar only?) mode does not load when multiple tabs are used #585

Open
@Nexarian

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

  1. PyPowerwall proxy in TEDAPI/local mode with static route to your gateway
  2. PW_STYLE=solar
  3. Load dashboard (Note animation is working)
  4. Load dashboard in second tab (Animation is probably working in both)
  5. Refresh original tab
  6. Animation now broken.
  7. Refresh again, and animation is likely working again.

This can be reproduced using / or example.html as well.

Screenshots

Image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions