BnMcG / PyRobovac

Python library for controlling the Eufy RoboVac 11c
Apache License 2.0
27 stars 2 forks source link

KeyError: 'access_token' #5

Closed Lex-talionis closed 5 years ago

Lex-talionis commented 5 years ago

Hi, ive having trouble running this

from robovac import get_local_code my_robovac_local_code = get_local_code("username", "password", "123.456.7.89")

it returns this

File "/usr/local/lib/python3.6/site-packages/robovac/robovac.py", line 36, in get_local_code token = login_request.json()['access_token'] KeyError: 'access_token'

Im sure its because ive made an assumption about the pass and username. i have used the ones that i used on the phone app, plus the ip that i'm sure is correct as i have all the other connections named.

Lex-talionis commented 5 years ago

For any one else who is dumb like me, the mobile app password and email along with the IP allocated by your router returned a local_code for me