Debugging an Embedded LED Display: Lessons from Shipping KMC’s Entrance Notice Board
Recently, our team rolled out a live digital notice board above the main entrance of Kathmandu Metropolitan City’s office in Kamaladi. The goal was simple: give visitors and staff a clear, at-a-glance display showing the current temperature, Nepali time, Bikram Sambat (BS) date, weekday, Nepal Sambat date (calculated astronomically from sun and moon positions), and a scrolling feed of the latest municipal notices.
Building the web page itself was the easy part. Getting it to actually render on the physical LED controller was where the real engineering happened.
The Embedded Browser Trap
When we pushed the first build to the display, the layout broke immediately—logos expanded to fill the entire screen, and spacing collapsed.
Inspecting the environment revealed why: the LED controller’s built-in browser reported its user agent as Chrome 85, yet behaved closer to Chromium 83 with several modern features stripped out. Worse, modern CSS fails silently on older engines without throwing obvious runtime errors.
Specifically, the display ignored:
@layer: Because Tailwind CSS v4 relies heavily on cascade layers, the entire utility stylesheet was effectively discarded.Modern layout units and gaps:
dvhviewport units,flex gap, andaspect-ratiodid not register.Logical properties & masks: CSS logical properties and unprefixed
maskdeclarations were skipped completely.
What Actually Fixed It
Rather than guessing which CSS properties or JavaScript APIs the box could handle, we stripped the problem down to basics:
Running a Plain ES5 Diagnostic Page: I wrote a lightweight, zero-dependency ES5 script that tested individual CSS and JS capabilities directly on the LED controller and sent a JSON report back to our server. That gave us an exact capability map of the hardware.
Dropping Tailwind for Plain CSS: With
@layeroff the table, we removed Tailwind from this view and wrote clean, standard CSS using flexbox margins, explicit pixel/percentage sizing, and widely supported properties.Targeting Chrome 80 in
browserslist: We lowered the build target to Chrome 80 so polyfills and transpilation matched the actual engine, then audited the production bundle to ensure no unsupported APIs slipped through.Never Trusting the Device Clock: During testing, TLS handshakes failed because the controller’s internal system clock was 1.5 years behind—and the display didn't have reliable internet access to sync NTP. Instead of relying on the board, we moved time, weather, and notice fetching onto our own local server. Now the display only needs a simple LAN connection to stay accurate.
Takeaway
Working on web applications at KMC means writing software for real-world public infrastructure rather than pristine developer laptops. When you are deploying to digital signage or embedded hardware, "supported browsers" has nothing to do with caniuse tables—it means whatever engine is sitting inside that metal box. Always test on the actual hardware first.
Tagged
Written by
Abhishek Ghimire
Writes here about engineering, technology, and the things worth building.