Skip to main content

Graphical interface for controlling lifx bulbs

Project description

PyPI Version GitHub release GitHub license Github all releases Platform: Windows,Mac,Linux

lifxtools

[NOTE]: This readme is a work-in-progress. If you require any specific information, please submit a github issue. I will try my best to address any questions you have in this readme once I get the chance. Thanks! :)

[NOTE]: For the moment, live_audio_level.py is WAAAAY less responsive on Windows than on Linux, this is being worked on.

[NOTE]: The latest version of a dependency (PyAudio v0.2.11) doesn't support the most recent version of python (3.7.4) on Windows 10 as of this commit (2019/10/07 @ 07:75PM)

[NOTE]: Mac requires a method to pipe your desktop audio into an audio input, soundflower can be used for this

Starting scripts

  1. Ensure you've navigated to the root of the repo after cloning

GUI (WIP)

Linux

  1. python3 -m lifxtools

Real-time Audio Visualiser

Linux

  1. chmod +x live_audio_level.py (ensure live_audio_level.py is executable)
  2. python3 -m venv venv (set up a venv)
  3. source venv/bin/activate (activate the venv)
  4. pip install -r requirements.txt (install the necessary requirements)
  5. ./live_audio_level.py (launch the script)

Notable usages

average_screen_color.py

(Ultra-slow fade mode) Stanley Kubrick's A Clockwork Orange is well enhanced by the effect of average_screen_color.py; first few minutes of the film are of particularly strong effect.

(Slow fade mode) Blade Runner (1997). Movie full of both muted and vibrant tones. Takes full advantage of the vividness of the colour of lifx bulbs

(Game fade mode) Half-Life 2: Episode 1. The first few levels of this game are truly awesome with live colour averages.

Todo

Public Transport API Intergration

Intergration for multiple public transport APIs. This will involve making a package to translate multiple APIs to the general format (which is likely object-based)

Planned APIs to intergrate:

  • PTV (Public Transport Victoria)

Better colours for "Dusk and Dawn" lifx bulbs

The plan:

color condition effect
blue > red cooler light
blue == red neutral light
blue < red warmer light

Add preferences for monitor refresh related

With the addition of benchmarking capabilities available to the user, this will allow users to compare their color average processing time with the refresh rate of their displays. Ideally, this number should be as close to matching as possible (with consideration for network speed also)

Don't send packets if colour is identical to last sent colour

This has the intention of saving network bandwidth (and potenially a small amount of processing time)

Add firewall issue detection

Add tests for if a firewall is in place and whether it may cause issues for the scripts, if it's detected that it will, return a verbose error to the user to help them rectify the issue.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

lifxtools-0.3.2-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file lifxtools-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: lifxtools-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for lifxtools-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 83fdf573a615a3fd0159ac7a8c705c6537408ff960cb8329058b0838d25e326b
MD5 a52a25c7836ce1641c3cef65ace62113
BLAKE2b-256 0cf89ef1f7a6a148be0649689739e8070f1e9d2819bf93c16e428c2486b29a83

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