Replies: 2 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
-
I tried spinning up a Grafana container on another Raspberry Pi (not my Powerwall Dashboard host) to play around with the latest version of Grafana. I was able to import my dashboard, but I can't get past the Teslapro / login screen in the Powerwall animation panel. This isn't a supported setup, so I don't expect anyone to spend too much time trying to figure it out, but I'm wondering if I'm just missing something simple that would make it work. The setup is: After changing the panel JSON to use the IP of the host that is running pypowerwall, rather than 'window.location.hostname', I get the Tesla logon screen in place of the animation. The firmware version displays normally. I tried clicking through 'Continue' and 'Upgrade Later' within the Grafana panel, but that just takes me to the logon screen. I get an error if I try to login from inside the Grafana panel, and when I reload the page, I'm back to the first logon screen with the 'Continue' button. I tried going all the way through the logon process from the GUI of the RPi that is hosting the new Grafana instance. That didn't help. I tried stopping and restarting pypowerwall, I tried a different browser and a hard reload. I can successfully load the animation directly in the browser (http://pw_hostip:8675), but when Grafana tries to load it in the panel, I get the Tesla login screen. Is this just a limitation of the way the proxy works where I won't be able to get past the upgrade prompts with Grafana on a different host from the proxy? EDIT: Plugging away at this a little more, I installed pypowerwall on the 2nd RPi and pointed the iframe to that URL. It works. I'm assuming the reason it won't work through the original pypowerwall has something to do with passing the login authentication from one machine (running Grafana) to the other (running pypowerwall). Is it ok to have two different pypowerwall containers pointed at the same Gateway 2 or am I asking for trouble doing that? |
Beta Was this translation helpful? Give feedback.
-
Hi, Im getting this error when running pypowerwall. I have entered my details and confirmed they are correct. Any suggestions to fix?
pypowerwall | Traceback (most recent call last):
pypowerwall | File "/usr/local/lib/python3.10/site-packages/pypowerwall/init.py", line 155, in _get_session
pypowerwall | self.auth = {'AuthCookie': r.cookies['AuthCookie'], 'UserRecord': r.cookies['UserRecord']}
pypowerwall | File "/usr/local/lib/python3.10/site-packages/requests/cookies.py", line 334, in getitem
pypowerwall | return self._find_no_duplicates(name)
pypowerwall | File "/usr/local/lib/python3.10/site-packages/requests/cookies.py", line 413, in _find_no_duplicates
pypowerwall | raise KeyError(f"name={name!r}, domain={domain!r}, path={path!r}")
pypowerwall | KeyError: "name='AuthCookie', domain=None, path=None"
pypowerwall |
pypowerwall | During handling of the above exception, another exception occurred:
pypowerwall |
pypowerwall | Traceback (most recent call last):
pypowerwall | File "/app/server.py", line 109, in
pypowerwall | pw = pypowerwall.Powerwall(host,password,email,timezone,cache_expire,timeout,pool_maxsize)
pypowerwall | File "/usr/local/lib/python3.10/site-packages/pypowerwall/init.py", line 138, in init
pypowerwall | self._get_session()
pypowerwall | File "/usr/local/lib/python3.10/site-packages/pypowerwall/init.py", line 164, in _get_session
pypowerwall | raise LoginError("Invalid Powerwall Login")
pypowerwall | pypowerwall.LoginError: Invalid Powerwall Login
pypowerwall exited with code 0
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions