NodeJS client for Sector Alarm
npm install nodejs-sector-alarmA Sector Alarm SDK written in TypeScript with test coverage using Tape. This is intended for use in Smart Home applications.
node >= 10.0
``bash`
npm i -S nodejs-sector-alarm
##### Documentation is available here
`javascript
import { SectorApi } from "nodejs-sector-alarm";
// Setup the API client
const api = new SectorApi(email, password);
// Fetch a list of panels/alarms associated with the login credentials
const panelId = await api.getPanelList()[0].PanelId;
const panelCode = 1234;
// Disarm the alarm
await api.changeAlarmState(panelId, "Disarm", panelCode);
`
This library uses debug. Enable all logs by:`bash`
DEBUG=sectoralarm:*`
or limit the logs to a certain log level by specifying {debug, info, warn, error} e.g:bash``
DEBUG=sectoralarm:warn,sectoralarm:error
Any utilization, consumption and application of this library is done at the user's own discretion. This library, its maintainers and Sector Alarm cannot guarantee the alarm's integrity if this library or any applications of this library are compromised.