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
# This workflows will upload a Python Package using Twine when a release is created
2
+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
Copy file name to clipboardExpand all lines: README.rst
+21-4
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,23 @@ The simplest way to use this package from a terminal is to call ``Blink.start()`
55
55
56
56
If you would like to log in without setting up the cameras or system, you can simply call the ``Blink.login()`` function which will prompt for a username and password and then authenticate with the server. This is useful if you want to avoid use of the ``start()`` function which simply acts as a wrapper for more targeted API methods.
57
57
58
+
In addition, you can also save your credentials in a json file and initialize Blink with the credential file as follows:
The credential file must be json formatted with a ``username`` and ``password`` key like follows:
67
+
68
+
.. code:: json
69
+
70
+
{
71
+
"username": "YOUR USER NAME",
72
+
"password": "YOUR PASSWORD"
73
+
}
74
+
58
75
Cameras are instantiated as individual ``BlinkCamera`` classes within a ``BlinkSyncModule`` instance. All of your sync modules are stored within the ``Blink.sync`` dictionary and can be accessed using the name of the sync module as the key (this is the name of your sync module in the Blink App).
59
76
60
77
The below code will display cameras and their available attributes:
@@ -100,10 +117,10 @@ Example usage, which downloads all videos recorded since July 4th, 2018 at 9:34a
0 commit comments