So I built something like this using NodeJS, look at UDev rules for the ability to "autoplay"