Motion Plugin and an External Storage.
-
After crashing my printer several times in the middle of a print because I ran out of space, I would like to figure out a way to save the images from the Motion plugin to a USB drive. It seems that the Pi automatically mounts the USB drive to /media/pi/[Name of USB Drive]. I can probably change how the device automatically mounts on insert, but I am curious about what user the motion server runs through the plugin. Am I pursuing the correct method to solve this problem?
-
@kiendeleo The main DSF services including user-space plugins run as
dsf
user. If the Motion webcam plugin is installed via DWC, it should already have access to external storage devices provided a recent DuetPi image with auto-mount support is used. It is probably necessary to add thefileSystemAccess
permission to the plugin manifest, though (it'ssbcPermissions
inplugin.json
or once installed/opt/dsf/plugins/MotionWebcamServer.json
AFAIR). If you change the latter file, reboot the SBC when done. -
Hi,
I've recently installed the Motion Plugin and it all went well to start until I ran into the same problem as @kiendeleo . I've plugged in an external USB and restarted after reading this post (running 3.5.2) and for whatever reason it looks like it's using up the SD card space. I've had a look through the .conf file to see if I could get it to not save images and while it looks like all the settings are turned to 'off' I'm still running into the low disk space issue and failing prints. Any advice would be welcome.
Thanks
Nate
-
@madeinta1wan Can you figure out what files are taking up the most space? If you have an old DuetPi version installed, make sure
rsyslog
isn't installed (sudo apt purge rsyslog
), because that used to log a lot of stuff without ever purging the log files, which gradually filled up the SD card.