Skip to main content

A Blink camera Python library running on Python 3.

Project description

blinkpy Build Status Coverage Status Docs PyPi Version

A Python library for the Blink Camera system Only compatible with Python 3+

Disclaimer:

Published under the MIT license - See LICENSE file for more details.

“Blink Wire-Free HS Home Monitoring & Alert Systems” is a trademark owned by Immedia Inc., see www.blinkforhome.com for more information. I am in no way affiliated with Blink, nor Immedia Inc.

Original protocol hacking by MattTW : https://github.com/MattTW/BlinkMonitorProtocol

API calls faster than 60 seconds is not recommended as it can overwhelm Blink’s servers. Please use this module responsibly.

Installation

pip3 install blinkpy

Installing Development Version

To install the current development version, perform the following steps. Note that the following will create a blinkpy directory in your home area:

$ cd ~
$ git clone https://github.com/fronzbot/blinkpy.git
$ cd blinkpy
$ rm -rf build dist
$ python3 setup.py bdist_wheel
$ pip3 install --upgrade dist/*.whl

Purpose

This library was built with the intention of allowing easy communication with Blink camera systems, specifically so I can add a module into homeassistant https://home-assistant.io

Usage

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. Alternatively, you can instantiate the Blink class with a username and password, and call Blink.start() to login and setup without prompt, as shown below.

import blinkpy
blink = blinkpy.Blink(username='YOUR USER NAME', password='YOUR PASSWORD')
blink.start()

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.

The cameras are of a BlinkCamera class, of which the following parameters can be used (the code below creates a Blink object and iterates through each camera found)

import blinkpy

blink = blinkpy.Blink(username='YOUR USER NAME', password='YOUR PASSWORD')
blink.start()

for name, camera in blink.cameras.items():
    print(name)                  # Name of the camera
    print(camera.attributes)      # Print available attributes of camera

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blinkpy-0.8.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file blinkpy-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: blinkpy-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for blinkpy-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9ffb05405aacfc81456dc2357f7c370bee2f9a5d5c3879cee97b3fb36820d534
MD5 73f53c6c26b756eb8d728e2b408b52d5
BLAKE2b-256 bb94dc46b3e492c611752ea56e20a7af21780205de3b88374873288c9d7750c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page