So etwas ähnliches hat schon mal jemand gemacht
https://www.roboternetz.de/phpBB2/viewtopic.php?t=44836