|
|
|
|
|
by kgtm
3688 days ago
|
|
First of all, is a web interface absolutely required? It adds a lot of complexity to something that is no more than a couple of lines of Bash glue. For monitoring, you can just keep an SSH session to the Pi. How i would do it, requiring no user input: * Designate a hot folder on the NAS, where i put all the videos to be uploaded. * Establish a list of what has been transferred (nothing initially). * From the Pi, poll the NAS folder for files that haven't been transferred yet. * If a file is found, cat file | curl --data-binary @- POST it to YT. * On success, record the transferred filename. * Continue polling. Of course, you can quite easily bolt-on a web interface to this, by exposing some of the steps as API endpoints. |
|