Skip to content

Commit

Permalink
Update ISSUE_TEMPLATE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreydwalter authored Jan 3, 2022
1 parent cdb9ba5 commit 85fd316
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 85fd316

Please sign in to comment.