GithubHelp home page GithubHelp logo

ilcctl's Introduction

ilcctl

Python package for iLC Bluetooth light bulbs

This project provides a Python3 package for controlling iLC Bluetooth light bulbs such as https://ilctech.myshopify.com/collections/lighting-1/products/ilc-bluetooth-bulbs-9w-e27 .

The code is tested on Python 3.5.

Installation

To install the current released version, on most Debian-based systems:

$ sudo apt-get install python3-pip libglib2.0-dev
$ sudo pip3 install ilcctl

On Fedora do:

$ sudo dnf install python3-pip glib2-devel

If this fails you should install from source.

$ sudo apt-get install git build-essential libglib2.0-dev
$ git clone https://github.com/h3nr1-g/ilcctl
$ cd ilcctl
$ python3 setup.py build
$ sudo python3 setup.py install

Commandline Interface

This package provides also a small commandline interface for shell based interactions with the light bulbs

$ ilcctl --help                                                                                                                                                                                                                             โŽ
Usage: ilcctl [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  powerstate  Command for turning light bulb on and off
  sendcmd     Command for sending a raw byte sequence to the light bulb
  setcolor    Command for changing the color
  whitelight  Command for turn on warm white led with certain intensity

$ ilcctl powerstate <MAC_ADDR> <0|1>
$ ilcctl setcolor <MAC_ADDR> <HEX_COLOR>
$ ilcctl sendcmd <MAC_ADDR> <CMD>
$ ilcctl whitelight [--brightness <LEVEL>] <MAC_ADDR> 

License

This project uses code from the bluez project, which is available under the Version 2 of the GNU Public License.

The Python files are released into the public domain by their author, Henry Glueck.

ilcctl's People

Watchers

 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.