GithubHelp home page GithubHelp logo

xtrendence / lights Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 289 KB

A web interface along with a PHP based API to interact with Yeelight smart bulbs.

Home Page: https://www.xtrendence.dev/pages/lights/

PHP 20.03% CSS 24.53% JavaScript 41.39% Hack 14.06%
lights lightbulb smartbulb yeelight yeelight-api php javascript js jquery html css webapp web-app

lights's Introduction

Lights

A web interface along with a PHP-based API to interact with Yeelight smart bulbs.

API Documentation

Method Endpoint Data Description
GET get-brightness.php N/A Returns the brightness of the lightbulb
GET get-color.php N/A Returns the color of the lightbulb
GET get-config.php N/A Returns the IP, port, and guest mode setting
GET get-power.php N/A Returns the power status of the lightbulb
GET get-status.php N/A Returns the power status, brightness, color, and color mode of the lightbulb
POST set-brightness.php {brightness} (int) (1 - 100) Sets the brightness of the lightbulb
POST set-color.php {color} (string) (orange, white, purple, green, blue, red), {mode} (string) (color, bright) Sets the color of the lightbulb
POST set-config.php {ip} (string), {port} (string), {guest-mode} (boolean) Sets the IP, port, and guest mode setting
POST set-power.php {power} (boolean) Sets the power status of the lightbulb

Web UI

lights's People

Contributors

xtrendence avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lights's Issues

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.