Monitors a folder for .stl files and uses Prusa Slicer to create .gcode files to send to the printer.
This is a docker image on Ubuntu with Python and Prusa Slicer, and uses watchdog
to monitor the directory.
- The container exposes two mount points
/configs/
and/prints/
. Use/configs
to place.ini
files exported from Prusa Slicer GUI. The container will monitor/prints
as the folder for inputs (and generating .gcode files from the .stls) - In the
/prints
folder create a subfolder with the.stl
files you want to slice (ex:/prints/project1/
) - To get the slicer to merge all the
.stl
files and create a.gcode
: create a empty file with the name of the config you want to use (from the/configs/
folder) and ending in/slice
(ex:touch /prints/project1/pla-supports.slice
) - A new
.gcode
file is created based on the config specified and can be sent to the printer
Code and Pipline is on GitHub:
Docker container images are published on Docker Hub.
Images are tagged using latest
Sample usage with ephemeral container:
Interactive:
docker run --name="docker-slicer-inst" -v /home/vivek/code/tmp/slicer-tst/configs/:/configs -v /home/vivek/code/tmp/slicer-tst/prints/:/prints -it --rm docker-slicer
Detached:
docker run --name="docker-slicer-inst" -v /home/vivek/code/tmp/slicer-tst/configs/:/configs -v /home/vivek/code/tmp/slicer-tst/prints/:/prints -d --rm docker-slicer
docker build -t docker-slicer .
This is a stateless container.
- Runs on
Python 3
- Pulls
Pusa Slicer
from Github andOpenScad
from APT