Regular movement capture causes motion to invoke far too many shells. This causes the raspberrypi to stop responding quickly. Modify the script so that only the first shell invoked uploads files. The rest will exit.
Seperate images by day captured