Long, slightly daft tech project
Andrew @andrewt@mathstodon.xyz
Content warning: Long, slightly daft tech project
So I was looking for something in my flat and happened across a little stand-alone HDMI screen which hadn't worked for years. I thought, "that's a shame, I wonder if I can get it running" and it turned out it was just the 5V power input that was dead. The 12V input works fine, and I happen to have a spare 12V barrel plug because my smart-clock that died of old age used one. So now it works! Cool! What do I put on this new screen? Maybe I can get a clock and calendar events?
It runs my old Chromecast pretty well, but my old phone that's running as my new smart-clock can't cast the screen if the screensaver is on — but the screensaver is the whole point.
OK, so I'll plug a Raspberry Pi in there. The only Pi I have is a Pi Zero W, which has 512MB of Ram and therefore can't run any remotely modern browser, so it's hard to get anything much on the screen.
So I installed Dillo, a browser so tiny it doesn't even run JavaScript. Obviously that poses problems for any kind of dashboard screen I might want to run on there, but OK, I'll just http-equiv refresh every minute. Which Dillo also doesn't support. And it doesn't support the HTTP refresh header either.
Anyway, a bunch of nonsense later and I have a bash script which launches the browser, and enters a loop where it creates an HTML file with the current time and date, sends an F5 keystroke to the browser, then sleeps for about a minute. It works! It works surprisingly well. But I enjoy that it's simultaneously a very obviously silly way of doing this *and* far more efficient than any of the better ways.