Last active
June 15, 2024 19:28
-
-
Save josy1024/25339a02e66f8fb2a6e08cafa65c746f to your computer and use it in GitHub Desktop.
rehau usb airsensor monitoring raspberry pi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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