thewolfman56 / audio-led-sync

Sync LED lights and home assistant lights to audio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

audio-led-sync

Sync LED lights and home assistant lights to audio

It is a work in progress.

Made for raspberry pi. ws2812 led or home assistant instance on another server. Options -c, -a, w, t, r, e, x for ws2812 leds Options -e, -x for home assistant -e to check home assistant for an entity and display a color on the leds

-x hass,led, or both to sync audio via usb mic connected to rpi and display colors based on pitch/volume.

NOTE: sudo is required for ws2821 leds depending on the pin used. If not using leds or you are using a supported pin that does not require root access, then no sudo commands are required for these scripts.

There is a cherrypy server script that is included. Spin up the server sudo python3 color_server.py Open a web browser to your ip address and port 8080.

cli options:

usage: color_script.py [-h] [-c] [-a] [-w] [-t] [-r] [-x {hass,led,both}]
                       [-e ENTITY] [-s]

optional arguments:
  -h, --help            show this help message and exit
  -c, --clear           clear the display on exit
  -a, --all             All Examples
  -w, --wipe            Color Wipe
  -t, --theater         Theater Chase
  -r, --rainbow         Rainbow Cycle
  -x {hass,led,both}, --audio {hass,led,both}
                        Audio Sync LED or HASS
  -e ENTITY, --entity ENTITY
                        Entity
  -s, --stop            Stop

About

Sync LED lights and home assistant lights to audio


Languages

Language:Python 98.7%Language:CSS 1.3%