npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

scd30-cli

v1.0.3

Published

CLI for interacting with [Sensirion SCD30]( https://www.sensirion.com/en/environmental-sensors/carbon-dioxide-sensors/carbon-dioxide-sensors-co2/), the CO2, temperature, and humidity sensor.

Readme

scd30-cli

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.

Usage

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%   ║
╚═══════════════════╧══════════╝

Options

  • -b, --bus <number>
    • The number of the I2C bus to open. 0 for /dev/i2c-0, 1 for /dev/i2c-1, ... (default: 1)
  • -h, --help
    • output usage information

Commands

Refer to official documentation for more details on commands.

read-measurement

Read a measurement of CO2 concentration, temperature, and humidity.

status

Queries for data ready status, ASC status, FRC value, temperature offset, altitude compensation,continuous measurement interval, and firmware version

is-data-ready

Determines if a measurement can be read from the sensor's buffer.

start-continuous-measurement [pressure]

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-run start-continuous-measurement.

stop-continuous-measurement

Stops continuous measurement of CO2 concentration, temperature, and humidity.

set-measurement-interval <interval>

Sets the interval of continuous measurement.

  • interval
    • Interval of 2–1800 seconds

get-measurement-interval

Returns the interval of continuous measurement.

start-asc

Starts the automatic self-calibration.

stop-asc

Stops the automatic self-calibration.

get-asc-status

Returns the status of automatic self-calibration.

set-frc-value <co2ppm>

Sets the reference CO2 concentration for forced re-calibration.

  • co2ppm
    • Concentration of CO2, 400-2000 ppm

get-frc-value

Returns the reference CO2 concentration for forced re-calibration.

set-temp-offset <offset>

Sets the temperature offset.

  • offset
    • Temperature offset in units of 0.01°C

get-temp-offset

Returns the temperature offset.

set-altitude-compensation <altitude>

Sets the altitude compensation value.

  • altitude
    • Altitude in meters above sea level

get-altitude-compensation

Returns the altitude compensation value.

get-firmware-version

Returns the firmware version.

soft-reset

Performs a soft reset.