Blink
Python API for the Blink Home Security Camera System
This is based off the documentation at: https://github.com/MattTW/BlinkMonitorProtocol
Usage
import blink
b = blink.Blink()
events = b.events()
an_event = events[0]
mp4_data = b.download_video(an_event)
This assumes you have a file ~/.blinkconfig that looks like this:
me@somewhere.net: my_password
Alternatively, you can init Blink like so:
b = blink.Blink(email='me@somewhere.net', password='my_password')
Archiving Video
Blink eventually deletes old video clips. If you want to archive your videos locally, run:
$ python -m blink --archive path/to/archive_dir
Typically this would be put into a cron job.
API
| Function | Description | Implemented | Works |
|---|---|---|---|
connect() |
Client login to the Blink Servers. | yes | yes |
networks() |
Obtain information about the Blink networks defined for the logged in user. | yes | yes |
sync_modules(network) |
Obtain information about the Blink Sync Modules on the given network. | yes | yes |
arm(network) |
Arm the given network (start recording/reporting motion events). | yes | yes |
disarm(network) |
Disarm the given network (stop recording/reporting motion events. | yes | yes |
command_status() |
Get status info on the given command. | yes | unknown |
homescreen() |
Return information displayed on the home screen of the mobile client. | yes | yes |
events(network) |
Get events for a given network (sync module). | yes | yes |
download_video_by_address |
Get a video clip using its address. | yes | yes |
download_video(event) |
Get a video clip from the events list. | yes | yes |
download_thumbnail(event) |
Get a thumbnail from the events list. | yes | no |
cameras(network) |
Gets a list of cameras. | yes | yes |
clients() |
Gets information about devices that have connected to the blink service. | yes | yes |
regions() |
Gets information about supported regions. | yes | yes |
health() |
Gets information about system health. | yes | yes |
capture_video(camera) |
Captures a new video for a camera. | no | |
capture_thumbnail(camera) |
Captures a new thumbnail for a camera. | no | |
unwatched_videos() |
Gets a list of unwatched videos. | no | |
delete(video) |
Deletes a video. | no |
Metadata
Release files for blink-cameras 0.3.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| blink-cameras-0.3.13.tar.gz | 5.5 kB | Without provenance | Details for blink-cameras-0.3.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blink_cameras-0.3.13-py3-none-any.whl | Python 3 | none | any | Details for blink_cameras-0.3.13-py3-none-any.whl |
Total release size: 21.9 kB
Release files / blink-cameras-0.3.13.tar.gz
| Download URL | blink-cameras-0.3.13.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1d096d8f6dd72dfe3e0308a9e5d250d32c506db2137041082fa43dd76707796
|
|
BLAKE2b-256 checksum How to use checksums |
aa26c572ad93bd08dca2db9770923d67eccc9b6c4c0e627f11fdae5ec67015f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1
|
Release files / blink_cameras-0.3.13-py3-none-any.whl
| Download URL | blink_cameras-0.3.13-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
534fb5213d2488ccfd596ddd27db7319458c7e7587a7956c96d84c684a706968
|
|
BLAKE2b-256 checksum How to use checksums |
738fe48303d6a4112e36151f394a70d97a0db24cddf71160f05d26f1ef1e5e0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1
|
Security for blink-cameras 0.3.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.