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.