Skip to content

Solution to control Raspberry Pi LEDs via web interface

Notifications You must be signed in to change notification settings

AaltoFablab/led-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi LED Control

Simple API written in Python by using gpiozero and flask libraries.

Installation

Clone this repo to /home/pi/led-control. Copy services to systemd.

sudo cp /home/pi/led-control/services/led-control-api.service /etc/systemd/system/
sudo cp /home/pi/led-control/services/led-control-app.service /etc/systemd/system/

Enable services.

sudo systemctl enable led-control-api
sudo systemctl enable led-control-app

Start services.

sudo systemctl start led-control-api
sudo systemctl start led-control-app

Usage

Connect your Pi to the network and find out your IP address.

hostname -I

Use IP address returned in your browser.

http://193.167.5.183

Dependencies

You need to have python3 installed in /usr/bin/python3. And the following libraries.

  • gpiozero
  • flask
  • flask-cors (if using app from remote computer)

All libraries should be installed using pip3.

About

Solution to control Raspberry Pi LEDs via web interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published