Skip to main content

Logitech Lumitra Glow Driver

Project description

Python Utility for Logitech Litra Glow

Introduction

After purchasing a Logitech Litra Glow I was unable to find any support for linux. This project reverse-engineers the basic functionality of the litra pro so that we can control it via USB without using the physical buttons on the device.

Quick Start

Linux

# If necessary, create a udev role to grant permission to access the light
sudo echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="046d", ATTR{idProduct}=="c900",\
           MODE="0666"' > /etc/udev/rules.d/82-litra-glow.rules

sudo reboot
pip install litra-driver --upgrade

# Command Line Interface
lc --help

# User Interface
lcui

The UI

A basic UI can be launched to allow control of the light:

lcui

lcui Screen Shot

The CLI

The log level can be adjusted by setting the environment variable LITRA_LOGLEVEL to one of the following:

  • CRITICAL
  • ERROR
  • WARNING
  • INFO
  • DEBUG
NAME
    lc

SYNOPSIS
    lc COMMAND

COMMANDS
    COMMAND is one of the following:

     on
       Turns on the Litra Glow

     off
       Turns off the Litra Glow

     temp
       Sets the temperature level of the Litra Glow

     bright
       Sets the brightness level of the Litra Glow

Sample Usage

lc on
lc brightness 1
lc brightness 50
lc off

# Chain multiple commands
lc on brightness 100 temperature 2700

Development

Creating / installing the distribution

# Create distribution
python -m build

# Local Testing
pip install --editable .

# Linter
tox -e lint

# Unit Test - "Coming Soon"™
tox -e test

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

litra-driver-0.0.3.dev6.tar.gz (38.3 kB view hashes)

Uploaded Source

Built Distribution

litra_driver-0.0.3.dev6-py3-none-any.whl (22.5 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