Hey there,
I just read your project description and it sounds like interesting task. I think this can be achieved with a short PHP scrip and possibly a few bash lines of code. If you're interested feel free to reach me via chat.
Thank you and best regards, Albin.