-
Notifications
You must be signed in to change notification settings - Fork 32
New auth mechanism #115
New auth mechanism #115
Conversation
|
Thanks @yoooou, this works great for me, you are awesome. @tchellomello you can probably merge, thanks for all your work. I run pyarlo every day. |
|
Hi @yoooou , $ diff -u __init__.py~ __init__.py
--- __init__.py~ 2020-04-17 18:41:56.000000000 +1000
+++ __init__.py 2020-04-18 10:51:17.687413694 +1000
@@ -2,6 +2,7 @@
"""Base Python Class file for Netgear Arlo camera module."""
import logging
import requests
+import cloudscraper
from pyarlo.base_station import ArloBaseStation
from pyarlo.camera import ArloCamera
@@ -41,7 +42,7 @@
# set username and password
self.__password = password
self.__username = username
- self.session = requests.Session()
+ self.session = cloudscraper.CloudScraper() # requests.Session()
# login user
self.login()After this your fix worked perfectly for me! |
|
What are next steps to get this merged in? EDIT: fwiw, I pulled down these diffs, shoved them into |
|
@tchellomello ❗ ? |
TBH I don't have enough knowledge to tell whether @dscoular 's change should be included or not. It doesn't look like something neccesary at least for some of us it seems. Some clarifications/suggestions would be helpful. |
|
of note, i did not require #115 (comment) EDIT: I vote we merge w/out it, and see if it fixes for people; if there is still an issue and/or some corner case for some users, then we can subsequently do it |
|
@tchellomello mergie mergie time? (let me know how I can help) |
|
👀 |
|
Sorry guys for the long wait. @yoooou thanks for your contribution. |
Inspired by updates from hass-aarlo repo. Just trying to make Arlo login work by making minimal changes.