Skip to main content

Cross-platform CLI for LIFX devices

Project description

CLIFX

Cross-platform CLI for LIFX devices

demo.gif

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clifx-1.1.0rc0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

clifx-1.1.0rc0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for clifx-1.1.0rc0.tar.gz
Algorithm Hash digest
SHA256 91579c95d173f678f23d458649bae7e7f90393d2bcd75f53c76e614db45a771e
MD5 9d377f90196c84e33e42e82af894358c
BLAKE2b-256 a38ff0e615cac5f3e2c3c75bf723f7faab55d542cb17234f383d26bcb359f4e6

See more details on using hashes here.

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

Hashes for clifx-1.1.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 fdecec53c1d9365add7fae3fe6e27829f686835bc77487fe3a70203d69eae3d9
MD5 d4fe19b3507265a4a85ad270cac827b8
BLAKE2b-256 db72f467d7e5bfd531dbb6283dc1efd4a4ed10114058d06f28c8bb3ef1d82792

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page