This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"index_mode": "v2", | |
"keys": { | |
"aggPeriodSeconds": { | |
"doc_value": true, | |
"type": "long" | |
}, | |
"concurrentRequests": { | |
"doc_value": true, | |
"type": "long" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The threshold to determine whether the battery is low | |
const LOW_BATTERY_THRESHOLD = 20 | |
// The factor to convert TVOC in ppb to μg/m3 | |
// @see https://leeduser.buildinggreen.com/content/my-device-measures-tvoc-ppb-units-how-do-i-convert-measurements-gm3 | |
const TVOC_CONVERSION_FACTOR = 3.767 | |
module.exports = { | |
init() { | |
return { |