All work

TV Glow

Real-time ambient lighting for Android TV

Role
Personal project
Year
2026
Code
github.com/j4dgpt/tvglow
TV Glow download page: Syncs your TV lights to whatever is on screen
The TV Glow download page (docs/index.html)

Overview

No cloud and no sync box. The app captures the screen at 96 by 54 pixels, samples colour zones around the edge, smooths them, and streams per-zone colour to the strip over UDP.

It speaks Govee's undocumented LAN realtime protocol and WLED's realtime protocol, and ships a phone remote served from the TV itself. CI builds the APK on every push.

What I built

Architecture

CaptureService.java

MediaProjection capture at 96 by 54, small enough to cost almost no CPU, with frame pacing and a keep-alive.

Hard parts

UDP never tells you it failed

A strip that changed address or had LAN control switched off looks exactly like one that works. StripMonitor listens on the reply port, probes status and rescans the network to find a strip that moved.

Latency from a command queue

Updating segments one by one builds a queue on the strip, which reads as lag. The scheduler paints groups of segments per command, chosen by perceptual error.

Screens

TV Glow phone remote
The phone remote, shown with no TV connected.

Stack

Known limits