On Fri, 15 Jun 2018 11:30:56 +0100, RobH declaimed the
following:
>Now the script runs without error, but, even though there was a 4.8mb
>file created on the PiZero, it was a 0 bytes file copied or moved to to
>NAS box /mnt/CCTV/PiZero.
That I can't really help you with -- it could be a timing problem in
that the camera may still not have flushed the data to the temporary
location by the time the copy to NAS operation is being invoked (though I'd
have hoped a small sleep() would give the process time to complete
flushing).
The only other option is to disable use of RAM to buffer the capture
with a later copy to NAS... Instead, capture directly to the NAS. Possibly
concerns -- network overhead impacting the camera capture process.
You would do this by (at first, for testing) commenting out the shutil
and related commands (unlink(), sleep()) and changing the camera capture
commands from RAMxxx to NASxxx.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|