NAME
CheerLights::API - A Perl module for accessing the CheerLights API.
SYNOPSIS
use CheerLights::API qw(get_current_color get_current_hex get_color_history);
my $current_color = get_current_color();
print "Current color: $current_color->{color}, Hex: $current_color->{hex}\n";
my $hex = get_current_hex();
print "Current hex color: $hex\n";
my $history = get_color_history(5);
foreach my $entry (@$history) {
print "Color: $entry->{color}, Hex: $entry->{hex}, Timestamp: $entry->{timestamp}\n";
}
DESCRIPTION
This module provides functions for interacting with the CheerLights API, allowing you to get the current color, its history, and more.
FUNCTIONS
get_current_color
get_current_hex
get_current_color_name
get_color_history
color_name_to_hex
hex_to_rgb
is_valid_color
AUTHOR
Hans Scharler <hans@nothans.com>
COPYRIGHT AND LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.