https://github.com/micheltlutz/pydht11-api
Read Data from DHT11 Sensor with Python and Raspberry Pi
https://github.com/micheltlutz/pydht11-api
adafruit dht11 fastapi gpio gpio-pins python raspberry-pi raspberrypi raspberrypi-dht11
Last synced: 7 months ago
JSON representation
Read Data from DHT11 Sensor with Python and Raspberry Pi
- Host: GitHub
- URL: https://github.com/micheltlutz/pydht11-api
- Owner: micheltlutz
- Created: 2023-10-20T14:39:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-20T18:11:53.000Z (almost 2 years ago)
- Last Synced: 2025-01-26T07:43:06.700Z (8 months ago)
- Topics: adafruit, dht11, fastapi, gpio, gpio-pins, python, raspberry-pi, raspberrypi, raspberrypi-dht11
- Language: Python
- Homepage: https://linktr.ee/micheltlutz
- Size: 67.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PyDHT11 API


[](https://github.com/micheltlutz)
[](https://www.python.org)## Environment
- Python 3.11.+ (3.9.+ or 3.10.+ should work too)
- Raspberry Pi 2B+ (or any other Raspberry Pi with GPIO pins)
- DHT11 sensor## Setup steps (Raspberry Pi)
```bash
python3 -m venv venv
``````bash
source venv/bin/activate
``````bash
pip install -r requirements.txt
```## Run
```bash
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
```## Access
> Change localhost to your Raspberry Pi IP address to access from another device
- [http://localhost:8000/docs](http://localhost:8000/docs)
