Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Nov 12, 2019. It is now read-only.

Python library to read the DHT series of humidity and temperature sensors on a Raspberry Pi or Beaglebone Black.

License

NotificationsYou must be signed in to change notification settings

adafruit/Adafruit_Python_DHT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

his library has been deprecated! We are leaving this up for historical and research purposes but archiving the repository.

We are now only supporting the use of our CircuitPython libraries for use with Python.

Check out this guide for info on using DHT sensors with the CircuitPython library:https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/python-setup


Python library to read the DHT series of humidity and temperature sensors on aRaspberry Pi or Beaglebone Black.

Designed specifically to work with the Adafruit DHT series sensors ---->https://www.adafruit.com/products/385

Currently the library is tested with Python 2.6, 2.7, 3.3 and 3.4. It shouldwork with Python greater than 3.4, too.

Installing

Dependencies

For all platforms (Raspberry Pi and Beaglebone Black) make sure your system isable to compile and download Python extensions withpip:

On Raspbian or Beaglebone Black's Debian/Ubuntu image you can ensure yoursystem is ready by running one or two of the following sets of commands:

Python 2:

sudo apt-get updatesudo apt-get install python-pipsudo python -m pip install --upgrade pip setuptools wheel

Python 3:

sudo apt-get updatesudo apt-get install python3-pipsudo python3 -m pip install --upgrade pip setuptools wheel

Install with pip

Usepip to install from PyPI.

Python 2:

sudo pip install Adafruit_DHT

Python 3:

sudo pip3 install Adafruit_DHT

Compile and install from the repository

First download the library source code from theGitHub releasespage, unzipping thearchive, and execute:

Python 2:

cd Adafruit_Python_DHTsudo python setup.py install

Python 3:

cd Adafruit_Python_DHTsudo python3 setup.py install

You may also git clone the repository if you want to test an unreleasedversion:

git clone https://github.com/adafruit/Adafruit_Python_DHT.git

Usage

See example of usage in the examples folder.

Author

Adafruit invests time and resources providing this open source code, pleasesupport Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Tony DiCola for Adafruit Industries.

MIT license, all text above must be included in any redistribution

About

Python library to read the DHT series of humidity and temperature sensors on a Raspberry Pi or Beaglebone Black.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp