Skip to content

Instantly share code, notes, and snippets.

@josy1024
Last active June 15, 2024 19:28
Show Gist options
  • Save josy1024/25339a02e66f8fb2a6e08cafa65c746f to your computer and use it in GitHub Desktop.
Save josy1024/25339a02e66f8fb2a6e08cafa65c746f to your computer and use it in GitHub Desktop.
rehau usb airsensor monitoring raspberry pi
# Voltcraft-CO-20
# rehau raumluftsensor USB
# dmesg:
# hid-generic 0003:03EB:2013.0001: hiddev0,hidraw0: USB HID v1.11 Device [AppliedSensor iAQ Stick] on usb-20980000.usb-1.3.7/input0
# source: https://code.google.com/archive/p/usb-sensors-linux/wikis/Install_AirSensor_Linux.wiki
sudo apt-get install libusb-dev
sudo apt-get install build-essential
wget https://raw.githubusercontent.com/jschanz/usb-sensors-linux/master/airsensor/airsensor.c
gcc -o airsensor airsensor.c -lusb
airsensor -o -v > airsensor.txt
rrdtool create airsensor.rrd --step 900 \
DS:air:GAUGE:1200:100:5000 \
DS:hum:GAUGE:1200:-40:80 \
DS:temp:GAUGE:1200:-40:80 \
RRA:AVERAGE:0.5:1:960 \
RRA:MIN:0.5:96:3600 \
RRA:MAX:0.5:96:3600 \
RRA:AVERAGE:0.5:96:3600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment