sensor-scd30
¶
CLI reference¶
glasgow run sensor-scd30¶
Measure CO₂ concentration, humidity, and temperature using Sensirion SCD30 sensors connected over the I²C interface.
NOTE: The SCD30 takes some time to start up. Run glasgow voltage AB 3.3 or similar before attempting to interact with it.
usage: glasgow run sensor-scd30 [-h] [-V SPEC] [--scl PIN] [--sda PIN]
OPERATION ...
- -h, --help¶
show this help message and exit
- -V <spec>, --voltage <spec>¶
configure I/O port voltage to SPEC (e.g.: ‘3.3’, ‘A=5.0,B=3.3’, ‘A=SA’)
- --scl <pin>¶
bind the applet I/O line ‘scl’ to PIN (default: ‘A0’, required)
- --sda <pin>¶
bind the applet I/O line ‘sda’ to PIN (default: ‘A1’, required)
glasgow run sensor-scd30 calibrate¶
usage: glasgow run sensor-scd30 calibrate [-h] [--auto-calibration]
[--no-auto-calibration]
[--force-calibration CAL]
[--temperature-offset OFF]
[--altitude-compensation ALT]
[--measurement-interval INTV]
- -h, --help¶
show this help message and exit
- --auto-calibration¶
enable automatic self-calibration
- --no-auto-calibration¶
disable automatic self-calibration
- --force-calibration <cal>¶
force calibration at CAL ppm of CO₂ (range: 400..2000)
- --temperature-offset <off>¶
set temperature offset to OFF °C
- --altitude-compensation <alt>¶
set altitude compensation to ALT m above sea level (range: 0..10000)
- --measurement-interval <intv>¶
set measurement interval to INTV s (range: 2..1800)
glasgow run sensor-scd30 log¶
usage: glasgow run sensor-scd30 log [-h] DATA-LOGGER ...
- -h, --help¶
show this help message and exit
glasgow run sensor-scd30 log csv¶
Log data to a comma-separated value (CSV) file.
usage: glasgow run sensor-scd30 log csv [-h] [--dialect DIALECT] CSV-FILE
- csv-file¶
write data to CSV-FILE
- -h, --help¶
show this help message and exit
- --dialect {excel,excel-tab,unix}¶
format CSV file according to DIALECT
glasgow run sensor-scd30 log influxdb¶
Log data to an InfluxDB 1.x endpoint over HTTP(S).
usage: glasgow run sensor-scd30 log influxdb [-h] [-r POLICY] [-t TAG=VALUE]
-p PRECISION
[--batch-size BATCH-SIZE]
ENDPOINT DATABASE SERIES
- endpoint¶
write to endpoint URL //ENDPOINT/write
- database¶
write to database DATABASE
- series¶
write to measurement SERIES
- -h, --help¶
show this help message and exit
- -r <policy>, --retention-policy <policy>¶
write to retention policy POLICY
- -t <tag=value>, --tag <tag=value>¶
attach TAG=VALUE to all data points
- -p {ns,us,ms,s,m,h}, --precision {ns,us,ms,s,m,h}¶
set timestamp precision to PRECISION
- --batch-size <batch-size>¶
submit data in groups of BATCH-SIZE points
glasgow run sensor-scd30 log influxdb2¶
Log data to an InfluxDB 2.x endpoint over HTTP(S).
usage: glasgow run sensor-scd30 log influxdb2 [-h] [-t TAG=VALUE] -p PRECISION
[--batch-size BATCH-SIZE]
--token TOKEN
ENDPOINT ORGANIZATION BUCKET
SERIES
- endpoint¶
write to endpoint URL //ENDPOINT/api/v2/write
- organization¶
write to Organization ORGANIZATION (can be either the name or the id)
- bucket¶
write to bucket BUCKET
- series¶
write to measurement SERIES
- -h, --help¶
show this help message and exit
- -t <tag=value>, --tag <tag=value>¶
attach TAG=VALUE to all data points
- -p {ns,us,ms,s,m,h}, --precision {ns,us,ms,s,m,h}¶
set timestamp precision to PRECISION
- --batch-size <batch-size>¶
submit data in groups of BATCH-SIZE points
- --token <token>¶
set the Token to use for Authentication
glasgow run sensor-scd30 log stdout¶
Log data to standard output in a human-readable format.
usage: glasgow run sensor-scd30 log stdout [-h]
- -h, --help¶
show this help message and exit
glasgow run sensor-scd30 measure¶
usage: glasgow run sensor-scd30 measure [-h]
- -h, --help¶
show this help message and exit
glasgow run sensor-scd30 start¶
usage: glasgow run sensor-scd30 start [-h] [PRESSURE]
- pressure¶
compensate for ambient pressure of PRESSURE mbar
- -h, --help¶
show this help message and exit
glasgow run sensor-scd30 stop¶
usage: glasgow run sensor-scd30 stop [-h]
- -h, --help¶
show this help message and exit
API reference¶
Todo
Add API documentation for sensor-scd30
.