Cross-platform CLI for LIFX devices
Project description
CLIFX
Cross-platform CLI for LIFX devices
Table of Contents
Installation
pip install clifx
Usage
Interactive
clifx # interactive prompt - specify device and new hue, saturation, brightness and colour temp
Examples
# set the device labelled 'Strip' to...
clifx -l Strip -h 50 -s 50 -v 50 -k 6500 # soft cyan with a daylight colour temp
clifx -l Strip -h 0 -s 100 -v 100 -k 6500 # pure red at 100% brightness
Options
clifx --help # display help
Script Template
Windows
Contents of <your-preset>.ps1
# TODO
Linux/Mac
Contents of <your-preset>.sh:
#!/bin/bash
clifx -l <device-label> -h <hue> -s <saturation> -v <value> -k <kelvin>
Development
Installation
git clone https://gitlab.com/DrTexx/CLIFX/
cd CLIFX
poetry install
Usage
Identical to typical usage except commands must be prefixed by poetry run.
For example, instead of writing the following:
clifx
You would write this:
poetry run clifx
Build
./development-scripts/build.sh
Contributing
Issues and pull requests welcome!
Links
- Documentation: https://gitlab.com/DrTexx/CLIFX#clifx
- PyPI Releases: https://pypi.org/project/clifx
- Source Code: https://gitlab.com/DrTexx/CLIFX/
- Issue Tracker: https://gitlab.com/DrTexx/CLIFX/-/issues
- Twitter: @DrTexx
- Email: denver.opensource@tutanota.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clifx-1.1.0rc0.tar.gz.
File metadata
- Download URL: clifx-1.1.0rc0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91579c95d173f678f23d458649bae7e7f90393d2bcd75f53c76e614db45a771e
|
|
| MD5 |
9d377f90196c84e33e42e82af894358c
|
|
| BLAKE2b-256 |
a38ff0e615cac5f3e2c3c75bf723f7faab55d542cb17234f383d26bcb359f4e6
|
File details
Details for the file clifx-1.1.0rc0-py3-none-any.whl.
File metadata
- Download URL: clifx-1.1.0rc0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdecec53c1d9365add7fae3fe6e27829f686835bc77487fe3a70203d69eae3d9
|
|
| MD5 |
d4fe19b3507265a4a85ad270cac827b8
|
|
| BLAKE2b-256 |
db72f467d7e5bfd531dbb6283dc1efd4a4ed10114058d06f28c8bb3ef1d82792
|