bmedicke / aruna

✨🧵 Raspberry Pi based LED strip control (with individual LEDs)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

see https://github.com/bmedicke/smart-mirror for another React project

Aruna

Raspberry Pi based LED strip control (with individual LEDs)

front-to-back.py

  • connects Home Assistant via MQTT to the database

back-to-hardware.py

  • translates database changes to the physical world

setup

# install docker:
curl -fsSL https://get.docker.com -o get-docker.sh
sh ./get-docker.sh
rm get-docker.sh

# install docker-compose and postgres:
apt install docker-compose postgresql -y

# we only need it for the cli tools:
systemctl disable --now postgresql

# create and activate virtual environment:
python3 -m venv env
source env/bin/activate

# on rpi4 you might get an error about multiple
# definitions while installing rpi.gpio,
# to avoid them use the flag:
export CFLAGS=-fcommon

# upgrade/install libs:
pip install --upgrade adafruit-blinka
pip install --upgrade adafruit-circuitpython-neopixel
pip install --upgrade black

# [binary] version not yet supported for ARM.
pip install --upgrade 'psycopg[pool]'

running it

# start db and adminer:
docker-compose up -d

supplemental

Power Circuit Diagramm

Pin Layout

image

terminology

  • entity
    • sensors, automations, switches, scenes
  • device
    • physical objects (that might have multiple entities)

useful links

useful repos

About

✨🧵 Raspberry Pi based LED strip control (with individual LEDs)


Languages

Language:JavaScript 35.5%Language:Python 27.4%Language:PLpgSQL 15.5%Language:HTML 7.9%Language:SCSS 6.7%Language:CSS 4.6%Language:Dockerfile 2.4%