Skip to content
/ thum Public

A web application that displays temperature and humidity data from a DHT11/DHT21/DHT22 sensor in clean and user-friendly interface

License

Notifications You must be signed in to change notification settings

JokkeeZ/thum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

git clone https://github.com/JokkeeZ/thum.git
cd thum

Configure backend

(Windows) Create venv and install requirements:

python -m venv .venv
./.venv/Scripts/activate
python -m pip install -r ./requirements.txt

(Linux) Create venv and install requirements:

python -m venv .venv
source .venv/bin/activate
python -m pip install -r ./requirements.txt

Start backend:

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:

cd app
npm install

Start frontend:

npm run dev

License

thum is licensed under the MIT License

About

A web application that displays temperature and humidity data from a DHT11/DHT21/DHT22 sensor in clean and user-friendly interface

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •