Skip to content
/ RPiLC Public

Control RGB LED strip with a Raspberry Pi. RPiLC allows you to easily control multiple RGB LED strips using one or more Raspberry Pi.

Notifications You must be signed in to change notification settings

Winor/RPiLC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

GitHub package version GitHub (pre-)release Dependency Status

RPiLC lets you control your RGB led strip with a Raspberry Pi. RPiLC has a designed web app that allows you to control your RGB led strip from any device with style!

Imgur

Features

  • Live color preview as you move the color picker
  • Multiple clients can be opened simultaneously
  • control multiple RPiLC servers from one client
  • Cycle between selected colors
  • Recently used colors
  • Web controlled, clean design
  • iOS web app support
  • Touch ready UI
  • API

Prerequisites

In order to use this app you need:

  • A Raspberry Pi.
  • Node.js installed.
  • Pigpio C library (Version V41 or higher)
  • RGB led connected to the Pi's GPIO (you can follow this guide for wiring)

How to run RPiLC ?

You can follow these 3 easy steps to get it running on your own RPi:

1. Get the files

git clone https://github.com/Winor/RPiLC
cd RPiLC
npm install

2. Config

Edit config.json to match your setup

3. Run

sudo node index.js

Run RPiLC on startup using pm2

You can start RPiLC on startup by following these steps:

1. Install pm2

sudo npm install pm2@latest -g

2. Add RPiLC to pm2

cd [RPiLC location]
sudo pm2 start index.js --name RPiLC

3. Make pm2 run on startup

sudo pm2 startup

API

Status

http://RPiLC-Address/status

Will return status in JSON format

Toggle State

http://RPiLC-Address/togglestate

Will turn the LED strip on or off & return status in JSON format

Set Color

http://RPiLC-Address/color

Accepts hex value, rgb(x, x, x) and color name. Will set the LED strip color & return status in JSON format

Apple Shortcuts

You can use this Siri shortcut to toggle your LED strip using your Apple device.

TODO

You can see what I plan to do next at my trello list, might be a little messy, sorry :P

Resources

License

This project is licensed under Apache License 2.0

About

Control RGB LED strip with a Raspberry Pi. RPiLC allows you to easily control multiple RGB LED strips using one or more Raspberry Pi.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published