MikeBishop / MMM-Powerwall

MagicMirror2 module for Tesla Powerwall and TWCManager
MIT License
22 stars 4 forks source link

MMM-Powerwall/auth gives scraping oauth form failed warning #48

Closed rupertwilson closed 3 years ago

rupertwilson commented 3 years ago

Within the last few days attempting to enter Tesla login credentials via MMM-Powerwall/auth gives an error

"scraping oauth form failed"

this is for the Tesla API. Logging into the local Powerwall API still works OK.

Any ideas?

mwkrieger commented 3 years ago

I'm seeing the same thing. Only part of the data is showing up now.

MikeBishop commented 3 years ago

Yes, this cropped up a while ago -- the request to Tesla's auth server times out. It only seems to happen in Node and on Raspberry Pi; the same code works running on my desktop. I haven't found a solution yet.

If you have a working token from another tool, the API itself remains functional; just put it into tokens.json manually. I'm looking into workarounds in the meantime.

MikeBishop commented 3 years ago

I'm very sorry for the delay -- I eventually gave up trying to solve the problem and worked around it instead. Can you try the python branch (PR #49) and see if that fixes things for you?

rupertwilson commented 3 years ago

Thanks for the workaround - I ran the python script with the required credentials and it seemed to update the tokens.json file I then restarted the MagicMirror but the go to "MMM-Powerwall/auth to login message still shows"

MikeBishop commented 3 years ago

The script is used by the helper; you still sign in via the /auth page.