Go to file
Ebbe Baß 7c5e6c7144 added install commands and gitignore json
Signed-off-by: Ebbe Baß <ebbe.bass>
2024-02-08 19:31:47 +01:00
client added client and added db 2024-02-08 19:19:24 +01:00
server fixed js moduals 2024-02-08 19:28:41 +01:00
.gitignore added install commands and gitignore json 2024-02-08 19:31:47 +01:00
LICENSE Initial commit 2024-02-08 15:30:29 +00:00
README.md added install commands and gitignore json 2024-02-08 19:31:47 +01:00
requirements.txt added client and added db 2024-02-08 19:19:24 +01:00

README.md

PiXelTubes

CREATE DATABASE IF NOT EXISTS pixeltube_db;

USE pixeltube_db;

CREATE TABLE IF NOT EXISTS tubes ( id INT AUTO_INCREMENT PRIMARY KEY, mac_address VARCHAR(17) NOT NULL UNIQUE, universe INT NOT NULL, dmx_address INT NOT NULL, CONSTRAINT mac_address_format CHECK (LENGTH(mac_address) = 17 AND mac_address REGEXP '([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})') );

create user 'pxm'@'localhost' IDENTIFIED by 'pixel';

grant all privileges on pixeltube_db . * to 'pxm'@'localhost';

flush privileges;

Install Flask for the web server

sudo apt-get install python3-flask

Install Flask-MySQLdb for MySQL integration with Flask

sudo apt-get install python3-flask-mysqldb

Install python-osc for handling Art-Net messages

sudo apt-get install python3-osc

Install neopixel library for controlling WS2812B LED strip

sudo apt-get install python3-rpi-ws281x python3-adafruit-circuitpython-neopixel

Install wifi library for Wi-Fi management

sudo apt-get install python3-wifi