⚡ Pi-Work: IoT Dashboard

A Raspberry Pi based Flask app providing hardware control, live data, and system diagnostics.

TRY THE INTERACTIVE DEMO (Pass: demo)
⚠️ SAFETY WARNING: Relays and mains electrics are dangerous. This is a description of what worked for me; it is not a guide. Every situation is different. Do not attempt mains wiring unless you are qualified.

About The Project (4button)

A Raspberry Pi based Flask app with HTML, providing a webpage with Login, Pi Data, City Times, four buttons controlling four GPIO pins, a log out, and a remote shutdown/reboot just in case SSH goes down but the site is still up. The next project on the main page will get all this hooked up for remote access.

🌟 Features

🚀 Installation & Setup

Hardware Requirements: Raspberry Pi (Tested on Pi 3B+ Bookworm) & a 4-Channel Relay Board.

# Create directory and enter
mkdir 4button && cd 4button

# Create virtual environment (Required for Bookworm+)
python3 -m venv env

# Activate the environment
source env/bin/activate

# Clone the repo
git clone https://github.com/rubato22/4button.git

# Install dependencies
pip install flask RPi.GPIO python-dotenv

# Run the app
python3 app.py

Did you find this project useful or interesting?

Buy Me A Coffee