File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 89
89
.ropeproject
90
90
91
91
# vim files
92
- .swp
93
- .swo
92
+ * .swp
93
+ * .swo
94
94
95
95
# Test script
96
- ArloTest.py
96
+ ArloTest.py *
97
97
Original file line number Diff line number Diff line change 8
8
# Subsequent successful calls to login will update the oAuth token.
9
9
arlo = Arlo (USERNAME , PASSWORD )
10
10
# 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.
14
14
cameras = arlo .GetDevices ('camera' )
15
15
16
16
# Starting recording with a camera.
17
- arlo .StartRecording (cameras [0 ])
17
+ arlo .StartRecording (cameras [0 ]);
18
18
19
19
# Wait for 4 seconds while the camera records. (There are probably better ways to do this, but you get the idea.)
20
20
time .sleep (4 )
21
21
22
22
# Stop recording.
23
- arlo .StopRecording (cameras [0 ])
23
+ arlo .StopRecording (cameras [0 ]);
24
24
25
25
# Take the snapshot.
26
- arlo .TakeSnapshot (cameras [0 ])
26
+ arlo .TakeSnapshot (cameras [0 ]);
27
27
28
28
except Exception as e :
29
- print (e )
29
+ print (e ):
You can’t perform that action at this time.
0 commit comments