Giter Club home page Giter Club logo

yilishen's Introduction

YiLiShen

Project YiLiShen (Chinese: 蚁力神), a simple helper tool for Xiaomi Yeelight WiFi light bulbs/lamps/strips.

The name was taken from a famous Chinese Ponzi scheme scandal in a decade ago. Check Yilishen Tianxi Group for more details.

Development environment

  • Ubuntu 18.04
  • macOS 10.13.5

You may need to install rapidjson separately.

On macOS you should run:

brew install rapidjson

On Ubuntu you should run

sudo apt install rapidjson-dev

I've only got two mono color light bulbs, so I can't test those color setting commands. But it should works.

Sample Usage

Usage:

Yilishen <command>  [arg1] [arg2] [arg3] ... [argN]

Please refer to Yeelight WiFi Light Inter-Operation Specification for more details

Output when running ./Yilishen toggle:

Found a device at 192.168.2.122, ID: 3330
Sending command toggle to this device...
Got result: {"id":9527, "result":["ok"]}



Found a device at 192.168.2.145, ID: 3331
Sending command toggle to this device...
Got result: {"id":9527, "result":["ok"]}

...and the light bulb will be turn on (if not on) or turn off (if it has been turned on).

yilishen's People

Contributors

huming2207 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

beho1der

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.