A Raspberry Pi based Flask app providing hardware control, live data, and system diagnostics.
TRY THE INTERACTIVE DEMO (Pass: demo)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.
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