homebridge-purpleair-sensor
Version:
Monitor air quality using PurpleAir.
28 lines • 1.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PURPLEAIR_API_BASE_URL = exports.SENSOR_FAILURE_TIMEOUT_SECS = exports.MIN_UPDATE_INTERVAL_SECS = exports.DEFAULT_UPDATE_INTERVAL_SECS = exports.PLUGIN_NAME = exports.PLATFORM_NAME = void 0;
/**
* This is the name of the platform that users will use to register the plugin in the Homebridge config.json
*/
exports.PLATFORM_NAME = 'PurpleAirSensor';
/**
* This must match the name of your plugin as defined the package.json
*/
exports.PLUGIN_NAME = 'homebridge-purpleair-sensor';
/**
* This is the default update interval in seconds - 5 minutes.
*/
exports.DEFAULT_UPDATE_INTERVAL_SECS = 5 * 60;
/**
* Never update more frequently than the following value - 30 seconds.
*/
exports.MIN_UPDATE_INTERVAL_SECS = 30;
/**
* Timeout after which to consider a sensor or API failed - 1 hour.
*/
exports.SENSOR_FAILURE_TIMEOUT_SECS = 60 * 60;
/**
* The base URL for the PurpleAir API.
*/
exports.PURPLEAIR_API_BASE_URL = 'https://api.purpleair.com/v1/sensors';
//# sourceMappingURL=settings.js.map