All Projects → madshall → Node Blink Security

madshall / Node Blink Security

Licence: mit
This is an npm module for communicating with Blink Home Security System

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Blink Security

Geotic
Entity Component System library for javascript
Stars: ✭ 97 (+79.63%)
Mutual labels:  npm, system
Instacam
Instant canvas video
Stars: ✭ 106 (+96.3%)
Mutual labels:  camera, npm
HopeLibrarySystem
厚朴工作室图书管理系统Hope books manage system📘
Stars: ✭ 42 (-22.22%)
Mutual labels:  system, camera
Automatic Release
Automates the release process for GitHub projects.
Stars: ✭ 46 (-14.81%)
Mutual labels:  npm
Local Npm
Local and offline-first npm mirror
Stars: ✭ 1,040 (+1825.93%)
Mutual labels:  npm
Defold Orthographic
Orthographic camera functionality for the Defold game engine
Stars: ✭ 50 (-7.41%)
Mutual labels:  camera
Gitpkg
use a sub directory of a github repo as yarn / npm dependency directly
Stars: ✭ 54 (+0%)
Mutual labels:  npm
React Sip
React wrapper for jssip
Stars: ✭ 45 (-16.67%)
Mutual labels:  npm
Harmoware Vis
Spatial-Temporal Visualization Library using Deck.GL
Stars: ✭ 51 (-5.56%)
Mutual labels:  npm
Cli
The command line vault (Windows, macOS, & Linux).
Stars: ✭ 1,044 (+1833.33%)
Mutual labels:  npm
Npm Git Install
Clones and (re)installs packages from remote git repos. See npm/npm#3055
Stars: ✭ 49 (-9.26%)
Mutual labels:  npm
Keera Posture
Alleviate your back pain using Haskell and a webcam
Stars: ✭ 48 (-11.11%)
Mutual labels:  camera
Awesome Node Utils
some useful npm packages for nodejs itself
Stars: ✭ 51 (-5.56%)
Mutual labels:  npm
V4l2test
v4l2 camera test for android platform.
Stars: ✭ 47 (-12.96%)
Mutual labels:  camera
Facedetector
Face detection for your Android app
Stars: ✭ 1,059 (+1861.11%)
Mutual labels:  camera
Nodejs Socketio Chat App
MEAN Stack & Socket.IO Real-time Chat App | A MEAN stack based Real Time chat application
Stars: ✭ 45 (-16.67%)
Mutual labels:  npm
Pixi Cull
a library to visibly cull objects designed to work with pixi.js
Stars: ✭ 51 (-5.56%)
Mutual labels:  camera
Postcss Import
PostCSS plugin to inline @import rules content
Stars: ✭ 1,048 (+1840.74%)
Mutual labels:  npm
Code Recheck
一键查重,自动检查项目中的重复代码
Stars: ✭ 49 (-9.26%)
Mutual labels:  npm
Systemd
The systemd System and Service Manager
Stars: ✭ 8,841 (+16272.22%)
Mutual labels:  system

Build Status Downloads Downloads npm version dependencies dev dependencies License

node-blink-security

This is a Node.js version of this python library. It allows to communicate with Blink Home Security System from a Node.js application.

Installation

npm install node-blink-security

Usage

const Blink = require('node-blink-security');

var blink = new Blink('YOUR_EMAIL', 'YOUR_PASSWORD', 'DEVICE_ID');
blink.setupSystem()
  .then(() => {
    blink.setArmed()
      .then(() => {
        // see the object dump for details
        console.log(blink);
      });
  }, (error) => {
    console.log(error);
  });

API

class Blink

Constructor

  • email - your Blink account email
  • password - your Blink account password
  • deviceId - identifies your device and registers it in your account. It's required since version 4.0.0 of this package as this is when Blink switched to 2-factor authentication flow. The value is provided by you and it should let you identify the device correctly when you receive a verification email from Blink.
  • options
    • auth_2FA: false - set to true if you want to receive verification code for each login, otherwise you'll receive verification email only once for the first time and after that the device will be remembered by Blink.
    • verification_timeout: 60000 - number of milliseconds to wait for email verification until retrying account login
    • device_name: "node-blink-security" - this name appears in verification email along with your deviceId

Properties

  • blink.cameras - the information about all available cameras
  • blink.idTable - {cameraId:cameraName} map for further references
  • blink.networks - map of configured networks (sync modules)
  • blink.accountId - account id
  • blink.region - region (e.g. prod)
  • blink.regionId - region (e.g. United States)

Methods

  • blink.refresh - get all blink cameras and pulls their most recent status
  • blink.getSummary - get a full summary of system information, broken down by sync module
  • blink.getCameraThumbs - refresh all cameras thumbnails
  • blink.getVideos(page, Date) - get metadata for X (per page is unknown) videos recorded since Date. Paginate with page parameter
  • blink.getEvents - get all events from Blink server (e.g. heartbeats, motion...), by sync module
  • blink.isOnline - return boolean system online status, by sync module
  • blink.getLastMotions - refresh motion events data
  • blink.isArmed() - return boolean statuses of all sync modules: armed(true)/disarmed(false).
  • blink.setArmed(boolean, [networkIds]) - arm/disarm the system/specific set of sync modules; true by default
  • blink.getCameras - find and creates cameras; used for internal purposes
  • blink.getLinks - set access links and required headers for each camera in system; used for internal purposes
  • blink.setupSystem([system name or id]) - logs in and sets auth token, urls, and ids for future requests. Specify a system identifier if you have more than one system setup.
  • blink.getIDs - set the network IDs and Account ID; used for internal purpose
  • blink.getClients - get information about devices that have connected to the system
class BlinkCamera

Properties

  • blinkCamera.id - camera id
  • blinkCamera.name - camera name
  • blinkCamera.region_id - region id
  • blinkCamera.armed - camera arm status
  • blinkCamera.clip - current clip
  • blinkCamera.thumbnail - current thumbnail
  • blinkCamera.temperature - camera temperature
  • blinkCamera.battery - battery level
  • blinkCamera.notifications - number of notifications
  • blinkCamera.image_link - image link
  • blinkCamera.arm_link - link to arm camera
  • blinkCamera.header - request header
  • blinkCamera.motion - last motion event detail
  • blinkCamera.updated_at - last device update date
  • blinkCamera.network_id - camera's assigned sync module id (network id)

Methods

  • blinkCamera.snapPicture - take a picture with camera to create a new thumbnail
  • blinkCamera.setMotionDetect(boolean) - set motion detection
  • blinkCamera.update - update camera information; internal use
  • blinkCamera.imageRefresh - refresh current thumbnail
  • blinkCamera.fetchImageData - get the image data for the camera's current thumbnail
  • blinkCamera.recordClip - record video clip from the camera

License

MIT

This is awesome!

If you find this package helpful you can buy me a beer Donate

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].