Skip to main content

Python Utility for Logitech Litra Glow and Beam

PyPI version

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 glow so that we can control it via USB without using the physical buttons on the device. It also now supports the Logitech Litra Beam.

Quick Start

Linux

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

sudo reboot

# Uninstall if previously installed
pip uninstall litra-driver
pip install litra-driver

# 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

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 bright 10
lc temp 6500
lc off

# Chain multiple commands
lc on bright 100 temp 2700

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

  • CRITICAL
  • ERROR
  • WARNING
  • INFO
  • DEBUG

Development

Creating / installing the distribution

pip install build

# Create distribution
python -m build

# Local Testing
pip install --editable .

# Linter
tox -e lint

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

Metadata

Release files for litra-driver 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for litra-driver 0.0.8
File Size Uploaded Provenance Actions
litra-driver-0.0.8.tar.gz 39.0 kB Without provenance Details for litra-driver-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for litra-driver 0.0.8
File Interpreter ABI Platform Actions
litra_driver-0.0.8-py3-none-any.whl Python 3 none any Details for litra_driver-0.0.8-py3-none-any.whl

Total release size: 62.0 kB

Release files / litra-driver-0.0.8.tar.gz

Download URL litra-driver-0.0.8.tar.gz
Size 39.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c7c0162c3a659f9fcaa059025e99850bdaba668272a0b340adfc92d59cc6f7a0
BLAKE2b-256 checksum
How to use checksums
3bbe94560784035bb08b1d0a4af1a30a88adfe61b7e97f6836d2af302e81546e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / litra_driver-0.0.8-py3-none-any.whl

Download URL litra_driver-0.0.8-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f5770edf2357dccde160c82e7f1330bee724716232bcdbaf3a6da371bbf7927
BLAKE2b-256 checksum
How to use checksums
c1fddeda548d5e41027cf537a47a1cff915dba4aa36949e5cf84367e85cbb6cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for litra-driver 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page