Adding HTML Dashboard Support

A project log for TallyPi

Build network controlled tally lights for live cameras, intended for control by OBS but extensible enough to use for whatever you like.

DeckerEgoDeckerEgo 05/09/2021 at 23:010 Comments

Having HTTP-controlled lights are great, but finding a headless Raspberry Pi on your network can be a pain if your gateway doesn't support proxied DNS resolution based on DHCP hostnames. Even if you grant your Pi a name like "tallypi01," it may not resolve that as a hostname on your network.

To help roll with that, TallyPi's HTTP server now supports Cross-Origin Resource Sharing, so you can execute JavaScript within your browser of choice to quickly crawl your subnet and find each light's current status. And example ships within scripts/dashboard.html - demonstrating how an HTML page served locally can find lights on your network.