Skip to main content

A server for interacting with LIFX lights over the LAN

Project description

A Photons powered server for interacting with LIFX lights over the lan.

The server allows us to do continuous discovery and information gathering so that all commands are super fast.

You can find documentation at https://photons-interactor.readthedocs.io

Installation and use

Make sure you have a version of python greater than python3.6 and do:

$ python -m venv .interactor
$ source .interactor/bin/activate
$ pip install lifx-photons-interactor
$ photons-interactor serve

Running from a docker container

If you’re not on a mac and want to run via a docker container, you can say:

$ docker run -it --rm --net=host delfick/photons-interactor:0.6.0

Running from the code

You can find the code at https://github.com/delfick/photons-interactor

Once you’ve checked it out you can start the server by installing python3.6 or above and running:

$ pip3 install venvster
$ ./interact server

You can also find a handy script for running commands against the server in this repository called command.

For example:

$ ./command query '{"pkt_type": "GetColor"}'
{
    "results": {
        "d073d5001337": {
            "payload": {
                "brightness": 1.0,
                "hue": 0.0,
                "kelvin": 3500,
                "label": "",
                "power": 65535,
                "saturation": 0.0
            },
            "pkt_name": "LightState",
            "pkt_type": 107
        }
    }
}

The License

This work is licensed under NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0). The ‘LIFX Colour Wheel’ patented design as intellectual property is used in this repository.

LIFX has granted permission to use the ‘LIFX Colour Wheel’ design conditional on use of the (CC BY-NC-SA 4.0) license.

Commercial use the ‘LIFX Colour Wheel’ requires written consent from LIFX. Submit enquiries to business@lifx.com

References:

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

photons-interactor-0.6.0.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

photons_interactor-0.6.0-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file photons-interactor-0.6.0.tar.gz.

File metadata

  • Download URL: photons-interactor-0.6.0.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0

File hashes

Hashes for photons-interactor-0.6.0.tar.gz
Algorithm Hash digest
SHA256 e38750300b6a7edd6f087138441bb7db28c443747b68ff8a3fa79c2a968c1d2b
MD5 e6497ed2d455752cf91831e050abe881
BLAKE2b-256 13961019775a248e0b656f5158b7e6924c53bb57de9f03afa3a02bd81d2905ac

See more details on using hashes here.

File details

Details for the file photons_interactor-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: photons_interactor-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 MB
  • 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.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0

File hashes

Hashes for photons_interactor-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b9928dc441b14f3b95e8b332999e7f80c766bc7b1a43399e961368960e6815c
MD5 40c740914a7de89b84621da941eb4ef8
BLAKE2b-256 23e9723420dd8dbfc1e0c1a42182fdcbf97e8c44f1df04d8c12127d087e3218e

See more details on using hashes here.

Supported by

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