Skip to content

ElectronicsGeek/cheerlights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
    

About

A python wrapper for the cheerlights API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages