track_co2.sh writes co2 (PPM), temperature (C), and relative humidity with timestamps to a csv file, recording every 10 minutes for 24 hours.
Usage:
./track_co2.sh -L <outfile.csv> -I <interval (seconds)> -d <duration>
## Example, record every 10 seconds for 1 hour:
./track_co2.sh -L out.csv -I 10 -d 1h
## duration is a floating point number with suffix 's' 'm' 'h' or 'd' for
## seconds, minutes, hours, and days, respectively. Defaults to 's'.
## Passing '0' enables indefinite logging.
Requires usbtenkiget software from the Dracal website
graph.py graphs the data recorded with track_co2.sh.
Usage:
python graph.py infile.csv outfile.png
Requires: Python >= 3.8, matplotlib, pandas >= 1.1.0, pytz.