Skip to main content

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

Metadata

Release files for rpi-ws281x-hub 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for rpi-ws281x-hub 1.0.3
File Interpreter ABI Platform Actions
rpi_ws281x_hub-1.0.3-py3-none-any.whl Python 3 none any Details for rpi_ws281x_hub-1.0.3-py3-none-any.whl

Release files / rpi_ws281x_hub-1.0.3-py3-none-any.whl

Download URL rpi_ws281x_hub-1.0.3-py3-none-any.whl
Size 431.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ccef21ce34c32bf675e67183387b0468cf1bf1be07b10eb31a37209e54ac3a7
BLAKE2b-256 checksum
How to use checksums
00e9b0778a3da99c56dceb2da0dd8e4ba4e57f40a3d1d75274a5b8715f8fb988
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for rpi-ws281x-hub 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page