Coder Social home page Coder Social logo

shikhar13012001 / wiz-led-nodejs Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 38 KB

This project uses system output to generate color and have change your wiz led according to music.

JavaScript 98.20% Shell 1.80%
audio-processing nodejs smart-led streaming udp-protocol wiz fmedia

wiz-led-nodejs's Introduction

Wiz LED Control Node.js

Control your Wiz smart bulbs with audio! wiz-led-control-nodejs is a Node.js application that listens to audio input, processes it to determine its characteristics like sample rate, channels, duration, and loudness, and then changes the color of your Wiz smart bulbs based on these audio properties.

Features

  • Discover Wiz bulbs on your network.
  • Process audio input in real-time.
  • Change bulb colors based on the audio's sample rate, channels, duration, and loudness.

Installation

Before installing, ensure you have Node.js and npm (Node Package Manager) installed on your system.

  1. Clone the repository to your local machine.
    git clone https://github.com/yourusername/wiz-led-control-nodejs.git
    
  2. Navigate to the cloned directory.
    cd wiz-led-control-nodejs
    
  3. Install the required dependencies.
    npm install
    

Usage

To start controlling your Wiz bulbs with audio, run the following command in the terminal:

node index.js

Ensure your computer's audio input is set up correctly to capture the desired audio source.

How It Works

  1. The application uses the wikari library to discover Wiz bulbs on the network.
  2. It then starts capturing audio using the fmedia command and processes this audio in real-time.
  3. For each chunk of audio data, the application calculates various audio properties and maps these to colors.
  4. The Wiz bulb colors are then updated in real-time based on the audio input, creating an immersive audio-visual experience.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

wiz-led-nodejs's People

Contributors

shikhar13012001 avatar

Stargazers

Shreshth Goyal avatar Sameer avatar Prakhar Kumar Sinha avatar Suyash Vikram Singh avatar Mounica Sruthi avatar Rishabh Kumar avatar

Watchers

 avatar  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.