Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Motion Plugin and an External Storage.

    Scheduled Pinned Locked Moved
    Plugins for DWC and DSF
    3
    4
    411
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • kiendeleoundefined
      kiendeleo
      last edited by

      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?

      chrishammundefined 1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators @kiendeleo
        last edited by

        @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 the fileSystemAccess permission to the plugin manifest, though (it's sbcPermissions in plugin.json or once installed /opt/dsf/plugins/MotionWebcamServer.json AFAIR). If you change the latter file, reboot the SBC when done.

        Duet software engineer

        madeinta1wanundefined 1 Reply Last reply Reply Quote 0
        • madeinta1wanundefined
          madeinta1wan @chrishamm
          last edited by

          @chrishamm

          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

          chrishammundefined 1 Reply Last reply Reply Quote 0
          • chrishammundefined
            chrishamm administrators @madeinta1wan
            last edited by

            @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.

            Duet software engineer

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA