Comments (1)
Unfortunately I don't think the code as-is can work without sudo. The code relies on using memory mapped IO to access the Pi's GPIO registers directly, instead of using the Kernel/sysfs interface to GPIO (which libraries like RPI.GPIO, etc. use). The Kernel/sysfs GPIO code is convenient and easy to permission but unfortunately too slow to reliably read the DHT signal from userspace.
If someone is super knowledgeable about kernel permissions and memory mapped GPIO functions perhaps there's some magic to allow the code to run as a non-root user. For now though it needs to be run as root.
from adafruit_python_dht.
Related Issues (20)
- pip package looks broken HOT 4
- Installation failure on Windows 10 HOT 2
- hello...I try to install python library of dht11 on raspberry pi but it appear no route to host?what is the problem?please help me... HOT 2
- Semaphore not finding library HOT 4
- Cable Length Causes incorrect DHT11 Readings HOT 6
- import errors in setup.py HOT 1
- unknown platform due to very wrong detection mechanism HOT 1
- Specifiy Raspberry version when using pip3 install Adafruit_DHT HOT 3
- IOError: [Errno 24] Too many open files: '/proc/cpuinfo' HOT 2
- Can't install on RPI3 HOT 1
- Will this work in Ubuntu 16.04 with normal pc HOT 7
- Declare sensor dinamically HOT 2
- DHT22 humidity and temperature values are incorrect HOT 2
- setup.py fails to install with error "TypeError: __init__() takes exactly 2 arguments (4 given)" HOT 4
- Google Authentication Error HOT 1
- I can not install RaspBerry 3 and Raspbian Jessie Lite HOT 10
- Broken link in ez_setup HOT 4
- AdafruitDHT.py show higher temp HOT 2
- Problem witch installing HOT 5
- Failed pip Install of Adafruit_Python_DHT on Raspbian Stretch HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_python_dht.