Get the latest tech news

Never Missing the Train Again


How I built a transit dashboard with Rust, Skia, and an old Kindle

I built a Node.js server that used Puppeteer to take a screenshot of the part of the page I cared about, tweaked it to the size and color depth for the Kindle display, and returned it via an HTTP endpoint. Now that we have the image sorted, making a deployable version of this server is just a matter of removing the “cache the data forever” code that’s at the top of the HTTP handler. The caching system that fetched API data continuously in the background so that the HTTP server is very fast Extra pieces of the UI - time in the lower left corner and data cache status in the lower right corner Anti-aliasing Cutting off destination names if they stretch into the arrival time area so the strings don’t overlap (with gradient!)

Get the Android app

Or read this on Hacker News

Read more on:

Photo of train

train

Related news:

News photo

Amtrak's New Marketing Strategy: It's Not a Train, It's a Hotel on Wheels

News photo

Europe Jumps On the Train

News photo

Seeing America by train