-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can not log in #161
Comments
Sorry; I missed this. Did you get it working? I think you need to setup 2fa authentication for the account. |
The browser not trusted can be ignored, I've quietened it down in the new release. I don't think you have 2FA set up. Or not configured correctly. Can you paste the command you are running - less the sensitive bits of course. |
Thank you very much for your reply. |
What you had should work. But based on the examples you gave this should log in: USERNAME="[email protected]"
PASSWORD="password1"
IHOST="imap-mail.outlook.com"
IUSERNAME="[email protected]"
IPASSWORD="password1_5"
arlo = pyaarlo.PyArlo(username=USERNAME, password=PASSWORD,
tfa_host=IHOST, tfa_username=IUSERNAME, tfa_password=IPASSWORD,
tfa_type='email', tfa_source='imap',
tfa_nickname=IUSERNAME,
dump=True, verbose_debug=True) Worse case it should output some useful information. |
Hi @twrecked,
My current branch on my fork still works but it is behind your master branch : https://github.com/YpNo/pyaarlo/tree/fix/active_user_stream Let me know if you want to drill down. |
My branch should fix the "browser not trusted" error. It actually isn't an error but a response from Arlo telling you you need to log in. You get it using the chrome. It's working here (obviously) and I can take a look later but if you can see if there are any obvious differences that would be great. |
Hi, I now got the login failed error:
|
It logged into Arlo but the IMAP is failing. It looks like it connects to something but gets rejected; Anything here help? Do this need an app password? i.e, one you can use not from a browser? |
I tried zoho mail, it seems to be able to login, but it also seems to be stuck, it just keeps searching. here is the log
|
Everything works today on my side (with your master branch) ... It seems that Arlo's API sucked yesterday... On my side I got Warning "errors" but it succeeded in login/auth.
@seahearman, some email providers, like gmail, require to use "application auth" mecanism : A specific token/password used for application authentifcation (not by human). Could be your case ? Regards. |
Thank you for your reply. I am now using zohomail as the email provider which support App password, with App password, I got this error:
If I use the zoho password, it directly throws me an error:
|
the following naive code works, so I don't understand why it can not fetch the code. import imaplib
IHOST="imap.zoho.com"
IUSERNAME="[email protected]"
IPASSWORD='App_password'
test_imap = imaplib.IMAP4_SSL(IHOST)
test_imap.login(IUSERNAME, IPASSWORD)
test_imap.select("INBOX")
res, new_ids = test_imap.search(None, "FROM", "[email protected]")
res, parts = test_imap.fetch(new_ids[0], "(BODY.PEEK[])")
print(parts[0][1])
|
@seahearman can you paste in the traces with the
In the mean time I'll double check the code here based on your traces. edit: I get output like this:
|
Hi, thank you again for your prompt reply! I really appreciate it. It may be a naive question, but how to paste the traces with the |
@twrecked thank you very much for looking into this. this is the code using arlo = pyaarlo.PyArlo(username=USERNAME, password=PASSWORD,
tfa_host=IHOST, tfa_username=IUSERNAME, tfa_password=IPASSWORD,
tfa_type='email', tfa_source='imap',
tfa_nickname=IUSERNAME,
dump=True, verbose_debug=True) Log:
|
I'm still not seeing the python debug. This is a small test script I sometimes use. It will write what python is doing to standard out. #!/usr/bin/env python
#
import logging
import os
import sys
import time
import pprint
# set these from the environment to log in
USERNAME = os.environ.get('ARLO_USERNAME', '[email protected]')
PASSWORD = os.environ.get('ARLO_PASSWORD', 'test-password')
IHOST = os.environ.get('IMAP_HOST', 'imap.gmail.com')
IUSERNAME = os.environ.get('IMAP_USERNAME', '[email protected]')
IPASSWORD = os.environ.get('IMAP_PASSWORD', 'test-password')
# set up logging, change INFO to DEBUG for a *lot* more information
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
_LOGGER = logging.getLogger('pyaarlo')
# log in
arlo = pyaarlo.PyArlo(username=USERNAME, password=PASSWORD,
tfa_type='email', tfa_source='imap',
tfa_host=IHOST, tfa_username=IUSERNAME, tfa_password=IPASSWORD,
tfa_nickname=IUSERNAME,
synchronous_mode=True, save_session=True, user_agent='linux',
save_state=True, dump=True, storage_dir='aarlo', verbose_debug=True,
send_source=False)
if not arlo.is_connected:
print("failed to login({})".format(arlo._last_error))
sys.exit(-1)
time.sleep(60)
arlo.stop()
time.sleep(2) |
Hi @twrecked thanks again for your help. Here is the log using the code you provided:
|
It starts up, logs in to Arlo and IMAP, asks for a code and then it stops immediately. Can you try setting the tfa timeout values. Something like this: arlo = pyaarlo.PyArlo(username=USERNAME, password=PASSWORD,
tfa_type='email', tfa_source='imap',
tfa_host=IHOST, tfa_username=IUSERNAME, tfa_password=IPASSWORD,
tfa_timeout=5, tfa_total_timeout=30,
... |
thank you so much. it's working now. |
Had you set those values? They should be 3 and 30 by default if not. |
yes, I set it to 10 and 60 and it's working now. I kind of see the code that it can not detect the new email from imap but in the browser I can see the new email. I want to run the python code that once there is a motion captured by the camera (when the Arlo app sends me a notification), the python code can connect to the camera can save 30 sec median to my local machine. Do you happen to have an example to do so? Thank you so much! |
Hi, I am new to this, I have a floodlight camera and an essential spotlight camera. I don't have a base. so does pyaarlo support this?
when I simply try:
It throws me an error:
The text was updated successfully, but these errors were encountered: