Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 0dfd600

Browse files
authored
Merge pull request #88 from tchellomello/version_0.1.8
Version 0.1.8
2 parents de6d91e + 94c15d7 commit 0dfd600

File tree

8 files changed

+666
-31
lines changed

8 files changed

+666
-31
lines changed

README.rst

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Python Arlo
1313
.. image:: https://img.shields.io/pypi/pyversions/pyarlo.svg
1414
:target: https://pypi.python.org/pypi/pyarlo
1515

16+
.. _CONTRIBUTING.rst: https://raw.githubusercontent.com/tchellomello/python-arlo/master/CONTRIBUTING.rst
17+
1618

1719
Python Arlo is a library written in Python 2.7/3x that exposes the Netgear Arlo cameras as Python objects.
1820

@@ -151,7 +153,79 @@ Loading Videos
151153
media.download_video('/home/user/demo.mp4')
152154
153155
156+
Ambient Sensors Data Usage (Arlo Baby Monitor)
157+
----------------------------------------------
158+
159+
.. code-block:: python
160+
161+
# Get the base_station instance corresponding to the Arlo Baby
162+
base_station = arlo.base_stations[0]
163+
164+
# Store all ambient sensor history in self._ambient_sensor_data
165+
# All of the accessor properties will call this if values are not cached.
166+
base_station.get_ambient_sensor_data()
167+
168+
# Get cached sensor history (property)
169+
base_station.ambient_sensor_data
170+
171+
# Get most recent temperature reading in degrees celsius (property)
172+
base_station.ambient_temperature
173+
174+
# Get most recent humidity reading in relative humidity percentage (property)
175+
base_station.ambient_humidity
176+
177+
# Get most recent air quality reading (property)
178+
# Not 100% sure on the unit of measure, but would assume it's VOC PPM
179+
base_station.ambient_air_quality
180+
181+
Music Playback Usage (Arlo Baby Monitor)
182+
----------------------------------------
183+
184+
.. code-block:: python
185+
186+
# Get the current playback status and available track list
187+
base_station.get_audio_playback_status()
188+
189+
# Play a track, optionally specify the track and seek time in seconds
190+
base_station.play_track(
191+
track_id='229dca67-7e3c-4a5f-8f43-90e1a9bffc38',
192+
position=0)
193+
194+
# Pause the currently playing track
195+
base_station.pause_track()
196+
197+
# Skip to the next track in the playlist
198+
base_station.skip_track()
199+
200+
# Set the music loop mode to repeat the entire playlist
201+
base_station.set_music_loop_mode_continuous()
202+
203+
# Set the music loop mode to repeat the current track
204+
base_station.set_music_loop_mode_single()
205+
206+
# Sets playback to shuffle
207+
base_station.set_shuffle_on()
208+
209+
# Sets playback to sequential
210+
base_station.set_shuffle_off()
211+
212+
# Change the playback volume
213+
base_station.set_volume(100)
214+
215+
Night Light Usage (Arlo Baby Monitor)
216+
-------------------------------------
217+
218+
.. code-block:: python
219+
220+
# Turn on the night light
221+
base_station.set_night_light_on()
222+
223+
# Turn off the night light
224+
base_station.set_night_light_off()
225+
226+
# Set the brightness of the night light
227+
base_station.set_night_light_brightness(200)
228+
154229
Contributing
155230
------------
156-
157-
See more at CONTRIBUTING.rst
231+
See more at CONTRIBUTING.rst_.

pyarlo/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ def devices(self):
185185
camera = ArloCamera(name, device, self)
186186
self._all_devices['cameras'].append(camera)
187187

188-
if device.get('deviceType') == 'basestation' and \
189-
device.get('state') == 'provisioned':
188+
if (device.get('state') == 'provisioned' and
189+
(device.get('deviceType') == 'basestation' or
190+
device.get('modelId') == 'ABC1000')):
190191
base = ArloBaseStation(name, device, self.__token, self)
191192
self._all_devices['base_station'].append(base)
192193

0 commit comments

Comments
 (0)