https://github.com/jokkeez/thum
A web app that collects real-time temperature and humidity data from a DHT11/DHT21/DHT22 sensor and displays it in a user-friendly interface.
https://github.com/jokkeez/thum
bootstrap5 dht11 dht21 dht22 python3 quart sqlite3
Last synced: about 1 month ago
JSON representation
A web app that collects real-time temperature and humidity data from a DHT11/DHT21/DHT22 sensor and displays it in a user-friendly interface.
- Host: GitHub
- URL: https://github.com/jokkeez/thum
- Owner: JokkeeZ
- License: mit
- Created: 2024-05-09T11:28:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-28T15:05:54.000Z (about 1 year ago)
- Last Synced: 2025-03-28T16:22:45.930Z (about 1 year ago)
- Topics: bootstrap5, dht11, dht21, dht22, python3, quart, sqlite3
- Language: Python
- Homepage:
- Size: 643 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# t h u m
A web application that displays temperature and humidity data
from a DHT11/DHT21/DHT22 sensor in clean and user-friendly interface.
> [!NOTE]
> Developed with Raspberry Pi 4B and DHT11 sensor.
## Usage
Clone the repository:
```sh
git clone https://github.com/JokkeeZ/thum.git
cd thum
```
### Configure backend
Create venv and install requirements:
```sh
python -m venv .venv
source .venv/bin/activate # .\.venv\Scripts\activate on Windows
python -m pip install -r ./requirements.txt
```
Start backend:
```sh
fastapi run api/main.py
```
### Configure frontend
> [!IMPORTANT]
> In `app/` folder, rename `.env.template` file to `.env` and make sure `VITE_API_BASE_URL` env key
> has the correct FastAPI url and port.
Install npm packages for the frontend:
```sh
cd app
npm install
```
Start frontend:
```sh
npm run host
```
# License
thum is licensed under the [MIT License](https://github.com/JokkeeZ/thum/blob/main/LICENSE)