Skip to content

Commit 301e891

Browse files
Add missing sample code.
1 parent a290fdd commit 301e891

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ ENV/
8989
.ropeproject
9090

9191
# vim files
92-
.swp
93-
.swo
92+
*.swp
93+
*.swo
9494

9595
# Test script
96-
ArloTest.py
96+
ArloTest.py*
9797

examples/arlo-snapshot.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
# Subsequent successful calls to login will update the oAuth token.
99
arlo = Arlo(USERNAME, PASSWORD)
1010
# At this point you're logged into Arlo.
11-
12-
# Filter on device type to only get the cameras.
13-
# This will return an array which includes all of the cameras and their associated metadata.
11+
12+
# Get the list of devices and filter on device type to only get the cameras.
13+
# This will return an array of cameras, including all of the cameras' associated metadata.
1414
cameras = arlo.GetDevices('camera')
1515

1616
# Starting recording with a camera.
17-
arlo.StartRecording(cameras[0])
17+
arlo.StartRecording(cameras[0]);
1818

1919
# Wait for 4 seconds while the camera records. (There are probably better ways to do this, but you get the idea.)
2020
time.sleep(4)
2121

2222
# Stop recording.
23-
arlo.StopRecording(cameras[0])
23+
arlo.StopRecording(cameras[0]);
2424

2525
# Take the snapshot.
26-
arlo.TakeSnapshot(cameras[0])
26+
arlo.TakeSnapshot(cameras[0]);
2727

2828
except Exception as e:
29-
print (e)
29+
print(e):

0 commit comments

Comments
 (0)