diff --git a/src/commands/index.js b/src/commands/index.js index 169df0c..f11d74a 100644 --- a/src/commands/index.js +++ b/src/commands/index.js @@ -12,36 +12,43 @@ module.exports = [ topic: 'data.flow', aliases: ['air_flow'], payloadSchema: { type: 'number' }, + units: { measure: 'volumeFlowRate', default: 'm3/h' }, + description: 'Push the measured air flow into the diffuser model.', handler: handlers.setFlow, }, { topic: 'set.density', aliases: ['density'], payloadSchema: { type: 'number' }, + description: 'Update the air density used in OTR / SOTR calculations.', handler: handlers.setDensity, }, { topic: 'set.water-height', aliases: ['height_water'], payloadSchema: { type: 'number' }, + description: 'Update the water column height above the diffusers (m).', handler: handlers.setWaterHeight, }, { topic: 'set.header-pressure', aliases: ['header_pressure'], payloadSchema: { type: 'number' }, + description: 'Update the header (supply) pressure feeding the diffusers (mbar).', handler: handlers.setHeaderPressure, }, { topic: 'set.elements', aliases: ['elements'], payloadSchema: { type: 'number' }, + description: 'Update the count of active diffuser elements.', handler: handlers.setElements, }, { topic: 'set.alfa-factor', aliases: ['alfaFactor'], payloadSchema: { type: 'number' }, + description: 'Update the alfa factor used in oxygen-transfer correction.', handler: handlers.setAlfaFactor, }, ];