Coder Social home page Coder Social logo

blink-1's Introduction

image

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:

[email protected]: my_password

Alternatively, you can init Blink like so:

b = blink.Blink(email='[email protected]', 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 no
disarm(network) Disarm the given network (stop recording/reporting motion events. yes no
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(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

blink-1's People

Contributors

keredson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.