Skip to main content

Raspberry Pi - WS281x Led hub 🎨

Project description

RPi WS281x Hub

Control your raspberry pi ws281x leds from your network, using a local api / web application.

Backend: python / fast-api | Frontend: vuejs / vuetify

PyPI version

Application

Installation

On the pi run the following pip commands (as root cause the service will need priviledges to access PWM channels).

sudo pip3 install rpi_ws281x_hub

Once installed make sure that the config.json file match your hardware setup, important part being num (number of pixels), pin (hardware pin used to control the led) and finally channel (depending on the pin).

Know working pin|channel pairs are: 12|0, 18|0 or 13|1 see rpi_ws281x for more information.

Finally fire the thing with:

sudo rpi-ws281x-hub

And open http://<your-pi-ip>:8000 in a web browser.

Development

Clone this repository:

git clone https://github.com/vrince/rpi-ws281x-hub.git
cd rpi-ws281x-hub

Install dependencies and install package in dev mode:

sudo python3 setup.py develop

Run locally:

# using script
sudo rpi-ws281x-hub
# or directly using the api.py main
sudo python3 rpi_ws281x_hub/api.py --port 8000

Web application can be reach at http://<your-pi-ip>:8000/app

Add a new led task

Credits

https://github.com/jgarff/rpi_ws281x

All images used are from flaticon.com make sure to visite their site : https://www.flaticon.com/search?author_id=1&style_id=15&type=standard&word=color

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

rpi_ws281x_hub-1.0.3-py3-none-any.whl (431.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page