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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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