Giter VIP home page Giter VIP logo

yeectl's Introduction

yeectl

Yeectl is a Python TUI for controlling Yeelights. It uses the Yeelight Python library to control the lights, and py-cui to create an interface.

Installation

To install remotely using pip:

pip install yeectl

To install from source using using pip:

git clone https://github.com/Bean499/yeectl
cd yeectl
pip install .

Usage

Run python -m yeectl.

The colours displayed in the bottom right will be loaded from ~/.xresources and ~/.config/yeectl/.

The names of each light will be determined by the custom name set for their IP addresses. If a light does not have a custom name, it will be given a default name based on its model. If there is no set name for its model, it will simply be called "Yeelight".

Setting Custom Names for Lights

yeectl reads the file ~/.config/yeectl/lights to check for custom light names. Light IP addresses should be seperated from their name by a colon and a space.

Example ~/.config/yeectl/lights:

0.0.0.0: Bedroom light
0.0.0.1: Desk lightstrip

Importing Colours from XResources

yeectl will import any colours from ~/.xresources that are set as *.color followed by anything.

Importing Custom Colours

yeectl will import any custom colours from ~/.config/yeectl/colours ~/.config/yeectl/colors. Colour names should be seperated from their hexadecimal value by a colon and a space.

Example ~/.config/yeectl/colours:

Red: #ff0000
Green: #00ff00
Blue: #0000ff

Todo

  • Add a hotkey to show the IP address of a light
  • Allow the user to manually name lights using a configuration file
  • Load colours from $XDG_CONFIG_HOME instead of ~/.config

License

yeectl is licensed under the MIT license.

Changelog

0.0.3

  • Added ability to set custom light names
  • Fixed a crash that would occur when a model doesn't have a set display name

0.0.2

  • Fixed a few crashes

0.0.1

  • First release

yeectl's People

Contributors

bean499 avatar beanrob avatar

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.