UNPKG

@komponent/unifi-protect-lib

Version:

Node library for connecting to Ubiquiti Unifi Protect controllers and listen for events

19 lines 1.2 kB
"use strict"; /* Copyright(C) 2017-2021, HJD (https://github.com/hjdhjd). All rights reserved. * * settings.ts: Settings and constants for homebridge-unifi-protect. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.PROTECT_LOGIN_REFRESH_INTERVAL = exports.PROTECT_EVENTS_HEARTBEAT_INTERVAL = exports.PROTECT_API_TIMEOUT = exports.PROTECT_API_RETRY_INTERVAL = exports.PROTECT_API_ERROR_LIMIT = void 0; // Number of API errors to accept before we implement backoff so we don't slam a Protect controller. exports.PROTECT_API_ERROR_LIMIT = 10; // Interval, in seconds, to wait before trying to access the API again once we've hit the PROTECT_API_ERROR_LIMIT threshold. exports.PROTECT_API_RETRY_INTERVAL = 300; // Protect API response timeout, in seconds. This should never be greater than 5 seconds. exports.PROTECT_API_TIMEOUT = 3.5; // Heartbeat interval, in seconds, for the realtime Protect API on UniFI OS devices. // UniFi OS expects to hear from us every 15 seconds. exports.PROTECT_EVENTS_HEARTBEAT_INTERVAL = 10; // How often, in seconds, should we refresh our Protect login credentials. exports.PROTECT_LOGIN_REFRESH_INTERVAL = 1800; //# sourceMappingURL=Settings.js.map