Watch
1
0
Fork
You've already forked Luminize
0
Colorlight my room by screenshotting the raspberry, calculating colors and then sending it to the philips hue bridge. Because fuck only using official philips hue lights for entertainment zones.
  • PHP 94.2%
  • Shell 5.1%
  • Dockerfile 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-28 11:58:55 +02:00
app Comment out shouldstop and shouldpause 2022-12-22 13:22:01 +01:00
bin Fall back to 2 fps 2026-07-28 11:58:55 +02:00
bootstrap Initialize project 2022-12-16 16:01:46 +01:00
config Fall back to 2 fps 2026-07-28 11:58:55 +02:00
database pint 2022-12-18 00:40:11 +01:00
docker/raspi2png_screenshot Remove scrot setup 2022-12-20 22:58:14 +01:00
tests Initialize project 2022-12-16 16:01:46 +01:00
.editorconfig Initialize project 2022-12-16 16:01:46 +01:00
.env.example Add .env.example 2022-12-18 13:06:46 +01:00
.gitattributes Initialize project 2022-12-16 16:01:46 +01:00
.gitignore Add database to gitignore 2022-12-18 01:05:21 +01:00
box.json Initialize project 2022-12-16 16:01:46 +01:00
composer.json Add database 2022-12-18 00:20:22 +01:00
composer.lock Composer install 2026-07-28 10:34:22 +02:00
docker-compose.yml Explicitly declare display 2026-07-28 11:42:46 +02:00
luminize Initialize project 2022-12-16 16:01:46 +01:00
phpunit.xml.dist Initialize project 2022-12-16 16:01:46 +01:00
README.md Simplify production running 2026-07-28 11:15:09 +02:00

Luminize

Colorlight my room by screenshotting the raspberry, calculating colors and then sending it to the philips hue bridge. Because fuck only using official philips hue lights for entertainment zones.

Locations

These locations are available, lights can follow these locations. For these location the average pixel value is calculated.

ID Description
overall The average color for the whole screen
left The left side of the screen
center The center of the screen horizontally
right The right side of the screen
top The top of the screen
middle The middle of the screen vertically
bottom The bottom of the screen
topleft Top left segment if screen is divided in a 3x3 matrix
topcenter Top center segment if screen is divided in a 3x3 matrix
topright Top right segment if screen is divided in a 3x3 matrix
middleleft Middle left segment if screen is divided in a 3x3 matrix
middlecenter Middle center segment if screen is divided in a 3x3 matrix
middleright Middle right segment if screen is divided in a 3x3 matrix
bottomleft Bottom left segment if screen is divided in a 3x3 matrix
bottomcenter Bottom center segment if screen is divided in a 3x3 matrix
bottomright Bottom right segment if screen is divided in a 3x3 matrix

Installation

Clone this repository

git clone git@code.elementon.nl:dm/Luminize.git ./luminize

Dependencies

Install Docker:

curl -fsSL https://get.docker.com | sudo sh

Light Setup

  1. Run docker compose run --rm -it prepare
  2. Set values for HUE_HOST and HUE_USER in .env.
  3. Run docker compose run --rm -it runner.
  4. Within the runner run ./luminize light:setup. When done use ctrl+c to exit.

Running

Start luminize using raspi2png service: ./bin/run
Stop luminize and raspi2png service: ./bin/stop

Development

docker compose run --rm -it provision
./bin/develop

Useful commands:

docker compose run --rm -it runner
docker compose run --rm -it tinker

Stack