DavidMStraub/homeconnect

NameError: name 'auth_result' is not defined

Closed this issue · 4 comments

Ev15 commented

Hi, i get the following error when i try to run the program:

NameError: name 'auth_result' is not defined

What am i doing wrong ?

Thx Ed.

Hard to tell when you're not writing what exactly you're doing...

Ev15 commented

I have made an account in Homeconnect. I don't really know what the redirect url should be. I think that is the problem ?
I am running your code on Windows btw. (python 3.8)

If you're just using this locally, it doesn't matter. Use http://localhost (but make sure to set it in the application settings at Home Connect). Your browser will redirect you to this address with some token append and it doesn't matter whether it exists - you just have to copy the address from the address bar in your browser.

Ev15 commented

Got it working. Thank you.