forked from jeffreydwalter/arlo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdb9ba5
commit 85fd316
Showing
1 changed file
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,42 @@ Paste your output here | |
|
||
### Which Arlo hardware are you having the issue with (camera types - [Arlo, Pro, Q, etc.], basestation model, etc.)? | ||
|
||
### Run this script and paste the output: | ||
### Run this script: | ||
``` | ||
from arlo import Arlo | ||
import json | ||
import re | ||
USERNAME = '[email protected]' | ||
PASSWORD = 'supersecretpassword' | ||
def pp(data): | ||
print(json.dumps(data, indent=4, sort_keys=True)) | ||
try: | ||
arlo = Arlo(USERNAME, PASSWORD) | ||
devices = arlo.GetDevices() | ||
for i, device in enumerate(devices): | ||
for key in ['deviceId', 'parentId', 'uniqueId', 'userId', 'xCloudId']: | ||
if key in device: | ||
device[key] = re.sub(r'[0-9A-Za-z]', r'X', device.get(key)) | ||
for key in ['deviceName', 'presignedFullFrameSnapshotUrl', 'presignedLastImageUrl', 'presignedSnapshotUrl']: | ||
device[key] = "" | ||
device['owner']['ownerId'] = re.sub(r'[0-9A-Za-z]', r'X', device['owner']['ownerId']) | ||
device['owner']['firstName'] = "" | ||
device['owner']['lastName'] = "" | ||
devices[i] = device | ||
pp(devices) | ||
except Exception as e: | ||
print(e) | ||
``` | ||
|
||
``` | ||
Paste your output here | ||
``` | ||
|