From 04bc0ace3f9130faedd7e6d0c5080c6ef8534e0e Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Mon, 15 May 2017 18:17:46 -0400 Subject: [PATCH 1/2] Update README.rst Fixed incorrect example code --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index d3eb6f5..6097a55 100644 --- a/README.rst +++ b/README.rst @@ -50,8 +50,8 @@ The cameras are of a BlinkCamera class, of which the following parameters can be blink = blinkpy.Blink(username='YOUR USER NAME', password='YOUR PASSWORD') blink.setup_system() - for camera in blink.cameras: - print(camera.name) # Name of the camera + for name, camera in blink.cameras.items(): + print(name) # Name of the camera print(camera.id) # Integer id of the camera (assigned by Blink) print(camera.armed) # Whether the device is armed/disarmed (ie. detecting motion) print(camera.clip) # Link to last motion clip captured @@ -61,7 +61,7 @@ The cameras are of a BlinkCamera class, of which the following parameters can be print(camera.battery_string) # Gives battery level as a string ("OK" or "Low"). Returns "Unknown" if value is... well, unknown print(camera.notifications) # Number of unread notifications (ie. motion alerts that haven't been viewed) print(camera.motion) # Dictionary containing values for keys ['video', 'image', 'time'] - # which correspond to last motion recorded, thumbnail of last motion, and timestamp of last motion + # which corresponds to last motion recorded, thumbnail of last motion, and timestamp of last motion Class Descriptions From 46dd002e5de938daeeade34310a01e29b4e46204 Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Mon, 15 May 2017 18:18:59 -0400 Subject: [PATCH 2/2] Update README.rst --- README.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/README.rst b/README.rst index 6097a55..2e02f9b 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,7 @@ blinkpy |Build Status| |Coverage Status| ============================================= A Python library for the Blink Camera system +Only compatible with Python 3+ Disclaimer: ~~~~~~~~~~~~~~~