Giter Site home page Giter Site logo

node-yeelight's Introduction

node-yeelight

Build Status

node-yeelight is a 0 dependency solution for controlling Xiaomi Yeelights. There are already a number of other solutions available, but they were not exactly what I wanted, so I made another one to be better than all the others.

Competing standards

How is this any different?

Well it has less functionality for a start. All of the other ones I saw came bundled with an SSDP solution. I already have my own SSDP solution over here so I didn't want to pull in another one. I just wanted something to interface with the lights. This solution offers a 1:1 implementation of the official docs from Xiaomi without any 3rd party dependencies.

To actually find the lights you will need an SSDP implementation of you don't know the IP of your light. As mentioned above,I have taken care of that too but because I'm not building it into this package, you can use whichever one you like. Or write your own.

How do I use this?

Simply require and instantiate the package as a class, passing in the ip address and port of the light as an object.

const Yeelight = require('node-yeelight');
const yee1 = new Yeelight({ ip: 0.0.0.0, port: 55443 });

You can now call any of the operations from the official docs on this instance.

node-yeelight's People

Contributors

cpave3 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ericprom

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.