CLI for interacting with Sensirion SCD30, the CO2, temperature, and humidity sensor.
The CLI exposes all of the commands supported by the SCD30, as documented in the official Interface Description.
Uses scd30-node for communication with the SCD30.
yarn global add scd30-cli
$ scd30-cli start-continuous-measurement
Continuous measurement started.
Ambient pressure compensation deactivated.
$ scd30-cli read-measurement
╔═══════════════════╤══════════╗
║ CO2 concentration │ 1054 ppm ║
╟───────────────────┼──────────╢
║ Temperature │ 24.15°C ║
╟───────────────────┼──────────╢
║ Humidity │ 31.86% ║
╚═══════════════════╧══════════╝
-b, --bus <number>
- The number of the I2C bus to open.
0 for /dev/i2c-0, 1 for /dev/i2c-1, ...
(default: 1)
- The number of the I2C bus to open.
-h, --help
- output usage information
Refer to official documentation for more details on commands.
- read-measurement
- status
- is-data-ready
- start-continuous-measurement
- stop-continuous-measurement
- set-measurement-interval
- get-measurement-interval
- start-asc
- stop-asc
- get-asc-status
- set-frc-value
- get-frc-value
- set-temp-offset
- get-temp-offset
- set-altitude-compensation
- get-altitude-compensation
- get-firmware-version
- soft-reset
Read a measurement of CO2 concentration, temperature, and humidity.
Queries for data ready status, ASC status, FRC value, temperature offset, altitude compensation,continuous measurement interval, and firmware version
Determines if a measurement can be read from the sensor's buffer.
Starts continuous measurement of CO2 concentration, temperature, and humidity.
pressure
(optional)- Ambient pressure to compensate CO2 measurements, 700–1400 mBar.
Overrides altitude compensation.
Setting to 0 deactivates ambient pressure compensation.
To set new value, re-runstart-continuous-measurement
.
- Ambient pressure to compensate CO2 measurements, 700–1400 mBar.
Stops continuous measurement of CO2 concentration, temperature, and humidity.
Sets the interval of continuous measurement.
interval
- Interval of 2–1800 seconds
Returns the interval of continuous measurement.
Starts the automatic self-calibration.
Stops the automatic self-calibration.
Returns the status of automatic self-calibration.
Sets the reference CO2 concentration for forced re-calibration.
co2ppm
- Concentration of CO2, 400-2000 ppm
Returns the reference CO2 concentration for forced re-calibration.
Sets the temperature offset.
offset
- Temperature offset in units of 0.01°C
Returns the temperature offset.
Sets the altitude compensation value.
altitude
- Altitude in meters above sea level
Returns the altitude compensation value.
Returns the firmware version.
Performs a soft reset.