Hi r/prusa3d,
I'm the author of Maintenance, one of the most downloaded community extensions for Prusa Connect Local (PCL) atm. I'd like to present you my newest extension:
Autostorager is an open-source file inbox for PCL. It watches up to four folders on your server and/or your local PC/Macs and imports every .gcode and .bgcode it finds into Storage, where it appears with its preview and slicer details exactly like a manual upload.
No cloud, no account, no extra service. It runs as a PCL module and uses the same storage API as the upload button.
What it does
- Watches up to four folders on the server or your PCs/Macs.
- Takes
.gcode and .bgcode files as soon as their size has stopped changing. - Imports them through the Storage API, so preview, slicer data and print time are there.
- Never overwrites a name: if
part.gcode exists, it becomes part-1.gcode. - Moves the source into
successful/ only after the storage has the bytes, so a file is never deleted before the import is safe. - Moves a failed file into
failed/ and writes a small report naming the step, the reason, the time and the path. - Shows the last imports on a dashboard card, with a green dot for success and a red dot for failure.
Where do the files go?
Nothing is deleted. When a file lands in a watched folder, Autostorager copies it into Storage first. Only after that copy is committed does it move the source into successful/ inside the watched folder. If the import fails, the file goes into failed/ with a small report naming the step and the reason.
One of the screenshots in the screenshot-"carussel" here on Reddit shows the root of my G: folder after a batch: it is empty except successful/. Every file that was dropped there was imported and then moved into successful/; the source files are still on the disk. Storage has the imported copies.
Why four folders?
Four is not a random limit. A small farm usually has more than one source:
- one workstation per designer,
- a NAS or a shared
incoming/ folder, - a per-material or per-customer queue,
- a second room or a second network.
Two sources are live in my setup: /app/config/pc-in on the PCL server, and /app/config/autostorager-g, which is the G: folder on my Linux desktop mounted over Samba/CIFS. The page shows both. A file dropped on G: is imported into Storage, and the source is moved into /mnt/g/Autostorager/successful/. The recent-imports list in the screenshot is all from that second source.
For example: four PCs on the LAN, each with its own shared drop folder. Mount the four shares into the PCL container and give Autostorager one path per source. Each folder keeps its own successful/ and failed/, so you can see which source a failure came from, and all files land in the same Storage. The other two slots are free.
The watcher does not recurse. Each top-level folder is a clean queue; a subfolder is ignored. That is deliberate: no surprise imports from a directory tree, and no scanning of a whole share.
Two ways to use it
- One folder on the server, shared with the clients: create the folder on the server, share it with Samba, and let every Windows, Linux or Mac client write into the same queue. Autostorager watches one folder. This is the easiest setup for a farm.
- The folders stay on the clients: share each client folder and mount it on the server with CIFS/NFS. Autostorager watches the mounts. This is more work, but it is how the server watches a folder that physically lives on your desktop. That is the
G: example above.
Safety details
- Only regular files are taken. Symbolic links, directories, devices, pipes and sockets are skipped.
- A symbolic link with a
.gcode name is never followed. - The watched folder is the boundary:
successful/ and failed/ must be real directories inside it, and a link that points outside is refused. - The failure report is created new and is never written through an existing file or link.
- A file is taken only after its size held still across two checks, so a slicer still writing it is left alone.
What it does not do
- It does not start prints. It fills Storage; you print from PCL.
- It does not slice. Use PrusaSlicer or OrcaSlicer as before.
- It does not watch subfolders or SMB paths directly. Mount the share into the server; the folder path is the one the server sees.
- It is not a print queue or scheduler.
Also included
- English, German and Czech UI and manual. If your language is missing, please feel invited to translate the extension. The new
<tag>.json has to land on GitHub; a pull request is how it ships. - A built-in manual with users and rights, file rules, Linux/container setup and per-OS notes.
- Roles: a viewer can see the page, an operator can change the settings, an admin can grant those roles.
- Settings for language, interval, storage, maximum file size and move-on-success.
- MIT licensed, free.
Install
Prusa Connect Local >=0.1.0-beta.1, then:
Marketplace → Extensions → Autostorager → Install.
Add the folder paths as the server sees them. For a folder on another LAN machine, mount its share into the PCL container first.
Marketplace: https://plugin-marketplace.prusa3d.com/connect/extensions/com.github.aux.singlergold2.connect-local-autostorager
Source and issues: https://github.com/SinglerGold2/connect-local-autostorager
Feedback and questions welcome, so ask me anything.
https://imgur.com/IYXPqUm