You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Python library for the Blink Camera system (Python 3.7+)
3
+
A Python library for the Blink Camera system (Python 3.8+)
4
4
5
5
Like the library? Consider buying me a cup of coffee!
6
6
@@ -44,14 +44,14 @@ This library was built with the intention of allowing easy communication with Bl
44
44
45
45
Quick Start
46
46
=============
47
-
The simplest way to use this package from a terminal is to call ``Blink.start()`` which will prompt for your Blink username and password and then log you in. In addition, http requests are throttled internally via use of the ``Blink.refresh_rate`` variable, which can be set at initialization and defaults to 30 seconds.
47
+
The simplest way to use this package from a terminal is to call ``await Blink.start()`` which will prompt for your Blink username and password and then log you in. In addition, http requests are throttled internally via use of the ``Blink.refresh_rate`` variable, which can be set at initialization and defaults to 30 seconds.
48
48
49
49
.. code:: python
50
50
51
51
from blinkpy.blinkpy import Blink
52
52
53
53
blink = Blink()
54
-
blink.start()
54
+
awaitblink.start()
55
55
56
56
57
57
This flow will prompt you for your username and password. Once entered, if you likely will need to send a 2FA key to the blink servers (this pin is sent to your email address). When you receive this pin, enter at the prompt and the Blink library will proceed with setup.
@@ -69,15 +69,15 @@ In some cases, having an interactive command-line session is not desired. In th
69
69
# Can set no_prompt when initializing auth handler
Since you will not be prompted for any 2FA pin, you must call the ``blink.auth.send_auth_key`` function. There are two required parameters: the ``blink`` object as well as the ``key`` you received from Blink for 2FA:
76
76
77
77
.. code:: python
78
78
79
-
auth.send_auth_key(blink, <your key>)
80
-
blink.setup_post_verify()
79
+
awaitauth.send_auth_key(blink, <your key>)
80
+
awaitblink.setup_post_verify()
81
81
82
82
83
83
Supplying credentials from file
@@ -91,9 +91,9 @@ Other use cases may involved loading credentials from a file. This file must be
91
91
from blinkpy.helpers.util import json_load
92
92
93
93
blink = Blink()
94
-
auth = Auth(json_load("<File Location>"))
94
+
auth = Auth(awaitjson_load("<File Location>"))
95
95
blink.auth = auth
96
-
blink.start()
96
+
awaitblink.start()
97
97
98
98
99
99
Saving credentials
@@ -102,7 +102,7 @@ This library also allows you to save your credentials to use in future sessions.
102
102
103
103
.. code:: python
104
104
105
-
blink.save("<File location>")
105
+
awaitblink.save("<File location>")
106
106
107
107
108
108
Getting cameras
@@ -123,19 +123,19 @@ The most recent images and videos can be accessed as a bytes-object via internal
123
123
.. code:: python
124
124
125
125
camera = blink.cameras['SOME CAMERA NAME']
126
-
blink.refresh(force=True) # force a cache update USE WITH CAUTION
0 commit comments