GithubHelp home page GithubHelp logo

thewolfman56 / audio-led-sync Goto Github PK

View Code? Open in Web Editor NEW

This project forked from roblandry/audio-led-sync

0.0 0.0 0.0 9 KB

Sync LED lights and home assistant lights to audio

Python 98.70% CSS 1.30%

audio-led-sync's Introduction

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

audio-led-sync's People

Contributors

roblandry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.