Notes

Weekly notes

A self-dimming ultrawide, laggy AirPlay and a map of everywhere I've been

Published

This site went properly live at the end of last week, along with car-telemetry-logger on GitHub. So I'm going to start writing up what I get up to outside work each week. Short ones.

A monitor that dims itself by the weather

I picked up a second-hand Dell U3818DW, a 38-inch ultrawide, and got it running off my MacBook over a single USB-C cable. The panel's a bit reflective, and in a grey English winter I kept catching my own face in it.

So I wrote a small Python script, u3818-daylight. It pulls live solar irradiance and cloud cover from Open-Meteo and sets the monitor's actual hardware brightness over DDC through BetterDisplay. Heavy overcast gets about 64%, bright sun goes up to 100%, and night sits at 55%. If it's offline it falls back to working out the sun's height from the time and date.

While I was in there I turned on BetterDisplay's fine volume steps too, so the volume keys move the monitor speakers a point or two at a time instead of jumping by six.

Why AirPlay to my HomePod lagged

Audio from the Mac to my HomePod mini kept drifting out of sync. The speaker was fine. It had joined the 2.4 GHz network, which was packed: a neighbour on the same channel, another one overlapping it, and a couple of devices with awful signal hogging airtime. The delay was swinging anywhere from 5 to 280 ms.

AirPlay only needs a couple of megabits, so it was never about speed, just waiting for a busy channel. The fix is moving it onto 5 GHz, which is far quieter.

A map of everywhere I've been

I started a personal travel map: a MapLibre vector map that shades the countries I've been to, draws my flight routes (including the Bali trip for C2C-CTF), and opens a drawer for each place.

It looked great and rendered nothing. MapLibre 6 loads its map worker from a separate file that Vite wasn't copying into the build, so the server answered with the HTML page instead of JavaScript and the map died silently. Bundling the worker and serving .mjs with the right type fixed it.

A new coding theme

I made a custom CSS theme for T3 Code with a tiled icon mosaic behind the chat, drawn as vectors at 2880×1800 on true black with pastel colours drifting across it. I had Gemini generate a batch of alternatives as a bake-off. Its best one had more charm, but it came out at 1376×768 and on navy, so it would have looked soft and clashed with the rest of the app. The vector version stayed.

Nothing new on GitHub this week. That's the week.