0.1.7 • Published 3 years ago

hikanvison-api v0.1.7

Weekly downloads
16
License
MIT
Repository
-
Last release
3 years ago

hikvision-api

Summary

a simple toolkit to connect and control some equipments of hikvision.

Installation

install with npm:

npm install hikvision-api

install with yarn

yarn add hikvision-api

Usage

build a nvr instance

const nvr = new Nvr({
  ip: '192.168.1.64',
  user: 'admin',
  password: '123456',
  // proxy: 'http://127.0.0.1:8080',
  version: 2
});
Tips:
  1. if you face a cross-origin problem on the browser, please add the proxy
  2. original nvr may use version 1, the newer one may use version 2

connect

await nvr.connect();

use other api

nvr.fetchChannels()
nvr.fetchUsers()
nvr.reboot()
0.1.7

3 years ago

0.1.4

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago