$ sudo apt-get install \
python3-dev \
librrd-dev \
libudev-dev \
libusb-1.0-0-dev
$ python3 -m pip install wheel
$ python3 -m pip install hidapi rrdtool
$ mkdir data
$ rrdtool \
create ./data/temperature.rrd \
--step 10 \
--start now-1h \
DS:celsius:GAUGE:600:U:U \
RRA:AVERAGE:0.5:1m:8d \
RRA:AVERAGE:0.5:5m:90d \
RRA:MIN:0.5:1h:366d \
RRA:MAX:0.5:1h:366d \
RRA:AVERAGE:0.5:1h:366d
$ rrdtool \
create ./data/co2.rrd \
--step 10 \
--start now-1h \
DS:ppm:GAUGE:600:U:U \
RRA:AVERAGE:0.5:1m:8d \
RRA:AVERAGE:0.5:5m:90d \
RRA:MIN:0.5:1h:366d \
RRA:MAX:0.5:1h:366d \
RRA:AVERAGE:0.5:1h:366d