0.1.1 • Published 5 months ago

blink-ts v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

node-blink-ts

A simple implementation of a nodejs client for Blink Cameras, written in typescript. Right now it just does auth, arm, and disarm.

Follows the BlinkMonitorProtocol specifications.

Inspired by blinkpy and node-blink-security.

Usage

Try something like this:

import {Blink} from "blink-ts";

const blink = new Blink('EMAIL', 'SECRET PASSWORD', 'CONSTANT UUID FOR THE DEVICE RUNNING THIS SOFTWARE');

// the following will auth and ... then fail, because you need to put the PIN in there.

blink.authenticate()
    .then(
        r => {
            r.disarmNetwork(0)
                .then(c => console.log(c))
        },
        e => {
            console.log(e);
        }
    )

// once you have a PIN
blink.authenticate("YOURPIN")
    .then(
        r => {
            r.disarmNetwork(0)
                .then(c => console.log(c))
        },
        e => {
            console.log(e);
        }
    )

Use responsibly.

0.1.1

5 months ago

0.1.0

5 months ago