Repository navigation
Releases
1.4.0 - Live from YouTube
A channel can now be YouTube: one video on a loop, or whatever a YouTube channel has live.
It plays full screen on the dial, with the set's own volume and none of YouTube's controls.
New:
- YouTube channels. Add a channel of type YouTube video or live in the control room and paste an address. A video link (watch, youtu.be, live, embed, or shorts) plays that video on a loop. A channel's address (
https://www.youtube.com/@cheerlights/live, a/channel/UC...link, or the channel id) plays whatever the channel has live, and follows it from one broadcast to the next without an edit. - The address is looked up as you enter it. The row shows what it found, a video's title or the channel's name, so a wrong paste shows before you save. An
@handleis turned into the channel's id once, at that moment, and the set plays from the id.GET /api/youtube?url=does the lookup. - It behaves like a channel, not a web page. The volume key sets YouTube's volume, and sound off mutes it. The power key and the channel bug work as on any channel. A tune shows static until the picture is playing, so it never lands on YouTube's spinner or title bar. The guide lists a live channel as LIVE and a video by its title.
- It looks after itself. Buffering for more than 4 seconds shows static until the picture comes back. A picture that has not played for 30 seconds gets a fresh player. A live channel with nothing on the air shows the off-air test card and looks again every minute. A video YouTube will not play here shows the card with the reason.
- Fit or fill. The picture shows whole inside the 4:3 glass with bars above and below (
fit, the default), or fills the glass and crops the sides (fill).
Fixed:
- No camera prompt over the picture. Every page the station serves now tells the browser that neither the page nor anything framed in it may use a camera, a microphone, or screen capture. On a Raspberry Pi running Wayland, a framed page that looked for cameras (YouTube's player does) made the desktop put "Allow app to Use the Camera?" over the set.
Config: a youtube channel takes url, fit, and the video or channel id and the title the control room fills in.
Nothing changes for an existing config.json.
The player is YouTube's, loaded from youtube.com the first time a YouTube channel is tuned; a dial without one never contacts YouTube.
Checked on our Raspberry Pi 3 B+ and the Magnavox, with channel 18 set to the CheerLights live stream: the picture and sound were smooth.
The Pi decodes the picture in software and uses about 1.5 to 1.9 of its 4 cores while the channel is on.
Tests: Node 131, browser harness 80, end to end 104.
They cover reading every kind of YouTube address, the schema keeping a channel by what it points at, the lookup against a stand-in YouTube, the guide's names, and the camera rule on every page.
Checked by hand in a desktop browser at 640x480: the volume key against YouTube's own volume reports, a channel with nothing live, a video that will not play, and a stream cut off mid-picture and brought back.
Update: git pull and restart the service. The display reloads itself (the build changed).
1.3.0 - Saturday morning
A channel can now run a Saturday morning block: two cartoons taking turns, starting at the top of an episode at 9:00 and picking up next week where it left off.
This release also adds Jarvis, an on-screen host with an API.
Commercial breaks can now come every few programs.
New:
- Several folders that take turns. A video channel takes
folders, up to 8, and airs one program from each in order: Transformers, then the Turtles, then Transformers again. Each folder is put in the channel's order (filename or shuffled daily) on its own before they alternate, and a show with fewer episodes starts over so the turns hold. In the control room, + Folder on the channel's row adds another picker. - A block clock for scheduled channels. By default a scheduled channel keeps the station's clock and runs on unseen between its windows, so at 9:00 you join it mid-episode. With
"clock": "block"(Each window starts a program in the control room), the channel keeps a clock that only runs while it is on the air: every window opens at the top of a program, and the next window picks up where the last one closed. A program the close cut off airs again from its top, so no episode is lost to 11:00. Each show cycles through its own episodes, and a shuffled block shuffles each show every time it starts over, so every episode airs once before any airs again. The guide reads the same clock, so it shows what will air. - Jarvis, a 1980s computer-generated host who cuts in over any channel to say a line or answer a question.
POST /api/jarvistakes{"text": "..."}or{"ask": "weather"}(alsocheerlights,time, andjoke);GET /api/jarvisdescribes him. His mouth follows the real voice, the channel ducks while he talks, and the control room has a Jarvis group with his name, voice, speed, pitch, and a Try him box. Callers for the shell, Python, Node, and Home Assistant are inexamples/jarvis/. Docs:docs/jarvis.md. - Breaks every few programs (from Dale Martin). With
breaks.everyMinutesat 0,breaks.everyPrograms(1 to 50, default 1) sets how many programs run between breaks, so a channel of three-minute music videos can run a spot every five songs. - The README is now a front door, and the guides moved to
docs/.
Config: folders and clock on a video channel, breaks.everyPrograms, and a jarvis group. A channel with one folder saves and plays exactly as before, and a channel saved with folders still carries folder (the first one) for older readers. Nothing changes for an existing config.json.
The block clock works out its place from the start of 2026 with the files the folders hold today, so every set agrees on it; adding or removing episodes moves where the block picks up.
Checked against the library on our Raspberry Pi 3 B+, with channel 17 set to Transformers and the Turtles, Saturdays 9:00 to 11:00, three 1980s spots about every eight minutes. Run through the new clock, the channel is off the air at 8:59 on 28 November, opens on "A Thing About Rats" at 9:00, alternates the two shows through six programs, and closes at 11:00 five minutes into "The Ultimate Doom, Part 2", which opens the block on 5 December. Jarvis has been answering on the same set since October.
Tests: Node 126, browser harness 80, end to end 104. They cover a two-folder channel on a block clock playing in its window in a browser, twenty weeks of windows against a slow program-by-program model, the nights the clocks change, and a 500-episode shuffled block twenty years on.
Update: git pull and restart the service. The display reloads itself (the build changed). For Jarvis's voice, sudo apt install espeak-ng; without it he still appears, with a drawn wave for a mouth.
1.2.0 - The joystick does it all
A joystick with one button now runs the whole set: the dial, the volume, the power, and the shutdown.
New:
- Left and right are the volume. One cell of the on-screen meter at a time, eight cells from sound off to loud, stopping at the ends. Hold the stick and it keeps going. A d-pad does the same.
- Two presses are the power key. Any button but Select, pressed twice, switches the set off the way the remote does, the picture folding to a line and fading. Twice again and it comes back on the same channel.
- Ten presses shut the machine down. From the third press the screen counts, SHUT DOWN 3 OF 10, and at ten the station makes the same request as the control room's Shut down button: the disks are flushed and systemd takes it from there. The picture goes out and the dark screen says SHUTTING DOWN. A run that stops short does nothing. On a machine that cannot be powered from the station, the screen says STILL ON, CANNOT SHUT DOWN FROM HERE.
volumeUpandvolumeDownon the tuner bus, for anything with two directions to give.
A stick leaning into a corner is no direction, so turning the sound down cannot change the channel.
The volume key on the remote still walks its ring, loud, sound off, soft, medium, and now does so from whatever level the stick left.
Config: a new tuner.shutdownPresses, 5 to 20, default 10, 0 to turn the shutdown off. It is in the control room under Tuning. Nothing changes for an existing config.json.
Shutting down still leaves a Pi powered: wait for the green light to stop blinking, then pull the plug.
Verified on a Raspberry Pi 3 B+ with a one-button joystick: ten presses shut it down, and the card came back clean. A restart through the same path, with a program playing off a USB drive, left the drive clean too.
Tests: Node 87, browser harness 80, end to end 84, including a joystick drill (the stick for the dial and the volume, a held stick, a corner, one press, two presses, two buttons, a run that stops short, a refusal, and a shutdown whose request is caught before it reaches a machine).
Update: git pull and restart the service. The display reloads itself (the build changed).
1.1.0 - Faux CRT
CABLE 82 on a flat panel now looks like a television.
New:
- Faux CRT. A flat panel has no tube to be the filter, so the set draws one. Turn it on in the control room's Faux CRT panel, under Display, and the 4:3 picture plays inside a 1970s wood console that fills the screen edge to edge, so the television's own frame is the console's frame. The console's channel dial is live: it carries the lineup's numbers, its pointer turns on every tune, and a click on a number tunes.
- The tells of a tube, as sliders. Curve, scanlines, noise, wave, bloom, vignette, and flicker, each 0 to 10 and off at 0, plus a phosphor mask and a reflection for the people who miss them. The glass is cut where the picture ends: the faceplate is derived from the same mapping that bends the picture, so the two are one curve at every setting, and at curve 0 the glass is a plain rounded rectangle.
- Glass only. The same tells without the cabinet, for a display that already sits in something.
The rule from the tube side stands: faux CRT is turned off when you save with CRT mode on, and the control room says so. A real tube needs none of it.
Curve, wave, and bloom run as one filter on the picture and cost a full-screen pass per frame; the rest are free. A Raspberry Pi 3 feeding a flat panel is happiest with those three at 0.
Config: a new fauxCrt block, documented in docs/config.md. Nothing changes for an existing config.json; the block fills in with faux CRT off.
Tests: Node 84, end to end 56, including a faux CRT drill (the console, the glass at 4:3, the dial's order and pointer, click to tune, the switch-off inside the glass, and CRT mode turning it off with the warning).
Update: git pull and restart the service. The display reloads itself (the build changed).
1.0.2 - Restart actually restarts
Restart and Shut down in the control room now do what they say on a Pi.
Fixed:
- Restart left the Pi up with the tube dark. The Power panel's first step was to stop the station's own service, and systemd stops a service by ending every process in it, the station included, so the flush and the reboot after it never ran. The Pi stayed up with the channel stopped and the screen black until someone started the service by hand. Both buttons now flush the disks and hand straight to systemd, whose reboot and poweroff stop the station and the desktop in order before the card comes down. Verified on the Pi: Restart from the control room, the set back on the air about a minute later.
Update: git pull and restart the service. The display does not reload (nothing in it changed).
1.0.1 - Remote on the home screen
The remote control can go on your phone's home screen, with the 82 as its icon.
New:
- Install the remote.
/remote-controlnow carries a web app manifest, so a phone can keep it on the home screen and open it like an app: the station's blue, the 82 as the icon, no browser chrome. On an iPhone: Share, then Add to Home Screen. On Android: the browser menu's Add to Home screen, or the INSTALL key that appears in the crawl band when the browser offers to install. - The icon is the SVG. The pixel 82 from
favicon.svgis the manifest's icon, with a padded copy for Android's adaptive icons and PNGs rasterized from the same file at whole pixels for browsers that want a bitmap. - A service worker scoped to the remote alone. It caches the remote's shell, network first, so the remote opens even when the station is down and says so. It never touches the display or the control room, so the set's self-update is exactly as before, and it never caches the tuner bus, so "one set is listening" is always live.
Browsers only install a web app from a secure origin, and the station serves plain HTTP on your network. The iPhone's Add to Home Screen gives the full-screen app anyway. Android makes a home-screen shortcut with the icon and name that opens in the browser.
Under the hood:
.webmanifestgets its MIME type; the remote's head carries the iOS standalone tags.- Tests: 78 in Node (a manifest, icons, and worker test) and 41 checks in the end-to-end drill (the worker's scope covers the remote and neither the display nor the control room).
Update: git pull and restart the service. The display does not reload (nothing in it changed); the remote picks the manifest up on its next open.
1.0.0 - Complete
The complete project: every part of the set in its own file, every setting doing something, the whole station driven end to end in a browser, and a first-time user's walkthrough folded back into the product.
Ten releases in two days took CABLE 82 from a bulletin board to a cable network: the dial, the broadcast clock, commercial breaks, the remote, the guide, channels on any drive, restart and shut down from the control room.
1.0.0 is the pass after that: the code base read end to end, the product used the way a stranger would, and everything that was loose tightened.
New:
- An on-screen display - the channel on every tune, the digits as you type them, and the volume as a meter of eight cells, on a plate centered in the upper part of the picture with a dark backing. It reads over a bright program, a white web page, and the board's own masthead, and the meter can be read across a room. It replaces the corner bug that drew itself over the tagline.
- The remote is a page of the board -
/remote-controlis now the station in your hand: the header band with the bug, four color keys (channel up, channel down, volume, power), and the crawl band carrying the status. Pressed keys invert like the bug. The Zenith Space Command is retired. - Quick settings - the control room opens on the things a station touches week to week: the name and tagline, the community messages, the music. Then Channels, Community Board, Channel Preview, Display, Server. Colors moved up beside the page rotation.
- Vitals -
GET /api/vitalsand a panel in the Server group: uptime, load, memory and swap, the CPU's temperature, the Pi's throttling flags decoded, free space on the card and on every drive with channels, and how many sets are listening. Refreshed every ten seconds while the room is open. - What the guide calls a program is the channel's choice - the file name, the title written inside the file (read from the MP4's own atoms, no decoding, cached in
.titles.json), or one fixed name for the whole channel, so a folder of commercials says COMMERCIALS. - A broken config.json is told, not hidden - the set says PLEASE STAND BY with the line and column instead of showing factory defaults; the control room names the file instead of blaming the server; while the last good settings are on the air the room says so; and a Save from the room writes a good file over the broken one, after which the set comes back on its own.
- Wind on the weather card, on the line with the high and low.
node server.js --help, and every flag checked at start.- The display is six files instead of one -
dial.js,board.js,guide.js,video.js,tuner.js,app.js. No build step, still nothing to install. - A save reaches the set at once, and so does a hand edit - the tuner bus's
hellocarries the config version next to the build, so the 20-second poll is gone. - The API and the configuration file have their own pages -
docs/api.mdanddocs/config.md; the README carries the walkthrough and a new "What a first-time user will ask" section.
Fixed:
- A fresh set signs on to the board. Every fresh browser was signing on to channel 0 because an empty memory read as zero, and 0 is the guide. The board is the out-of-the-box channel; the guide is one press away.
- The guide never lists a commercial. A spot airing at the top of a half hour was named as the program; the guide now names the program the break sits inside.
- A long headline no longer loses half its last line. The page's flex layout was squeezing the text box instead of overflowing it, so the fit pass never saw the problem.
- The sunrise line is back on the weather card at the default text size; the card shrinks a little before it gives anything up.
- Keying
0reaches the guide. - Channel rows reflow on a phone, guide channel names wrap instead of ellipsizing at nine characters, and the time headers no longer wrap at tube text sizes.
- The gamepad no longer costs a frame a second with no pad plugged in.
- "1 files", the day chips' color, and a few other small things.
Under the hood:
- One source for each fact: the natural sort and the palette live in
config-schema.jsonly. overscanPercentis read from an olderconfig.jsoninto both axes and never written back.weather.location.countryand the CheerLightshexare no longer fetched or stored.sudo -n trueruns once; the channels listing resolves each folder once.- Two literal invisible characters in source are escapes now.
- Tests: 77 in Node (server, the broadcast clock, the MP4 title reader) + 76 browser-harness, plus
node test/e2e.mjs, a 38-check drill of the real display in headless Chromium.
Update: git pull and restart the service; the display reloads itself.
A config.json from an earlier release needs nothing: every new setting has a default that keeps the station as it was.
0.8.1 - Power panel, no cast button
Restart and shut down from the control room, and a white box gone from the corner of the picture.
New:
- Power in the Server group - On a Raspberry Pi, the control room grows Restart and Shut down buttons. Both do what the runbook does by hand: stop the station, flush the disks, then hand over to systemd, which is what keeps a memory card intact. Each button asks twice, since neither has an undo.
- Offered only where it works -
GET /api/systemreports the host model, whether it is a Pi, and whether it can be powered without a password. Anywhere else the panel stays hidden, so a button never appears that would fail on the press.POST /api/systemtakesrestartorshutdownbehind the same header a config save uses.
Fixed:
- No Cast button over the programming - Chromium floats a Remote Playback button over a
<video>when it spots a cast device on the network, which on a TV channel is a small white box in the corner. Both video buffers now carrydisableRemotePlayback,disablePictureInPicture, andx-webkit-airplay="deny". Fixed in the app rather than the kiosk's launch flags, so it holds wherever the display runs.
Note: a Pi 3 cannot cut its own power, so after a shutdown wait for the green light to stop blinking before pulling the plug.
Tests: 54 server + 75 browser-harness.
Update: git pull and restart the service; the display reloads itself.
0.8.0 - Any drive
Your library does not have to fit on the card.
New:
- Channels on any drive - Put a
channelsfolder at the top of a USB drive, an external disk, or a mounted network share, drop your channel folders inside it, and they appear in the picker alongside the built-in ones and stream the same way, Range requests and all. A 16 GB card fills up fast; a stick does not. - Found where the machine mounts it -
/media,/mnt, and/Volumesare scanned, one level deeper too for the/media/<user>/<label>layout Raspberry Pi OS uses.node server.js --media /path/to/librarynames a library that lives anywhere else. - A drive counts only if it carries a
channelsfolder - so plugging in a disk full of photos and tax returns does not offer them as channels. - The control room says where a folder lives - "Beavis and Butthead (6 files, on USB DISK)", because the same name can mean a different library once the drive is unplugged.
How it behaves:
- A folder is still written as a plain name, so a config from an earlier release means exactly what it always did. If the same name exists in two places, the built-in folder wins.
- Durations cache on whichever drive the folder lives on.
- Pull the drive and its channels go off the air with a test card, the same as a folder you deleted. Plug it back in and they come back.
Tests: 51 server + 75 browser-harness, still dependency-free Node 18+, no build step.
Update: git pull and restart the service; the display reloads itself.
0.7.2 - Sized for a tube
CABLEVUE, sized for a television.
The guide shipped in 0.7.0 was built against a monitor and looked it on a real tube: grey mush, and the wordmark running off the left edge.
Fixed:
- It stays inside the overscan margins. The masthead and the grid now pad themselves by the same margins every other surface uses, so nothing runs off the edge of a tube that crops.
- It follows Text size. The CRT panel's control now scales the guide the way it scales the board.
- The type is television-sized. Rows, column headings, the clock, and the wordmark are all roughly double what they were, which is what it takes to read a grid across a room.
- Long names and titles degrade gracefully. A channel name ellipses instead of being cut mid-letter, and a program title wraps to two lines inside its cell.
- The lineup crawls when it should. The bitmap face loads after the first paint and every row grows when it lands, so the old one-shot measurement was always stale. The fit is measured again whenever the layout settles.
Tests: 45 server + 75 browser-harness.
Update: git pull and restart the service; the display reloads itself.