A python wrapper for the cheerlights API
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cheerlights
LICENSE
README.rst
cheerlights.py
setup.py

README.rst

cheerlights

Python wrapper for accessing the cheerlights API.

Dependencies:

  • requests

Usage:

You can create an instance of the cheerlights API like so:

import cheerlights

cl = cheerlights.Cheerlights()

You can then:

  • Get the last colour’s name as a string:

    cl.last_color_name
    
  • Get the last colour as a hex string:

    cl.last_color_hex
    
  • Get the last colour as a list containing its red, green and blue components:

    cl.last_color_rgb