Last active
April 21, 2016 18:22
-
-
Save josy1024/21fb514738345b098540fc8af661c3da to your computer and use it in GitHub Desktop.
raspberrypi DHT22 AM2302 temperatur und humidity sensor
This file contains 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
# on osmc | |
# PRETTY_NAME="Open Source Media Center" | |
# NAME="OSMC" | |
# VERSION="February 2016" | |
# VERSION_ID="2016.02-3" | |
# ID=osmc | |
# ID_LIKE=debian | |
sudo apt-get install git-core | |
sudo apt-get install make gcc autoconf gawk libc6 libc6-dev | |
# where to go with the setups? | |
mkdir /opt/am2302 | |
cd /opt/am2302 | |
#wireingPI | |
git clone git://git.drogon.net/wiringPi | |
cd wiringPi | |
./build | |
cd .. | |
#copy build files to os library | |
cp /opt/am2302/wiringPi/wiringPi/* /usr/local/include | |
# checking for gawk... no | |
# configure: error: in `/opt/am2302/lol_dht22': | |
# configure: error: C compiler cannot create executables | |
git clone https://github.com/technion/lol_dht22 | |
cd lol_dht22 | |
./configure | |
make | |
sudo ./loldht 7 | |
Humidity = 57.60 % Temperature = 20.40 *C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment