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 details)

Uploaded Python 3

File details

Details for the file rpi_ws281x_hub-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: rpi_ws281x_hub-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 431.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for rpi_ws281x_hub-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0ccef21ce34c32bf675e67183387b0468cf1bf1be07b10eb31a37209e54ac3a7
MD5 f5432649baf1ad3bfdbb4cc84647294a
BLAKE2b-256 00e9b0778a3da99c56dceb2da0dd8e4ba4e57f40a3d1d75274a5b8715f8fb988

See more details on using hashes here.

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