checkit-hub-config v1.7.0-alpha.1
Checkit Hub Config
A central file to define configuration options for the hub. Options are taken from environmental variables or have provided defaults.
See index.js for the available options.
Usage:
const config = require('checkit-hub-config');
console.log(config.serialNumber);
Environment variables used to support checkit-hub-config
- Registration
- *REGISTRATION_SERVER Defines the location of the registration server file.
SERIAL_NUMBER Hub serial number
Logging
- LOG_PATH Location of log store
- LOG_TO_STDOUT Defines whether logging is sent to the current terminal
LOG_LEVEL Defines the amount of logging. Default = trace. Options are 0 less ... 40 more info|debug|fatal|trace
Database
DATABASE_DIR The database path. Default is /usr/local/config/database
Zigbee
- ZIGBEE_TTY_DEVICE. The coordinator port. Default '/dev/ttyO5'
- ZIGBEE_NCP_TYPE NCP type. default '1'
ZIGBEE_COORD_EXE Location of the coordinator hos file. Default '/usr/local/bin/coordinator_host_ipc'
MQTT
- HUB_MQTT_CERT Defines the location of MQTT certificates. Default '/var/config/certs'
- HUB_FIXTURE_MQTT_API_REQUEST Defines the MQTT request string. Default 'api/request'
MQTT Files required in certs directory key.pem - mqtt server key cert.pem - mqtt server certificate ca-chain.pem - mqtt chain mqttAuthentication.json - contains the user name and password
7 years ago