a simple library to interact with AX Hub Pro alarm system programtically.
install with npm:
npm install hikvision-toolkit
install with yarn
yarn add hikvision-toolkit
const alarm = new Alarm({
host: '192.168.1.64',
user: 'admin',
password: '123456',
version: 2.1
});
await alarm.connect();
alarm.armAlarmHomeMode()
alarm.disarmAlarm()
alarm.alarmStatus()