This is a small python command line interface to make the creation of Octoprint instances using Docker and udev rules easier. It is specifically made to support udev rules that can start and stop the Docker container. This helps to avoid problems when the 3d printer is not connected, since Docker does not deal well with dynamically plugged USB devices (also it saves resources while the printer is unplugged). Currently, setups including webcams are not possible, but I plan on implementing support in the future.
For further details regarding Octoprint visit their Website or GitHub(Docker Container).
- Install Docker and Docker Compose
- Install Python3 3.6 or newer
- Install pyudev
pip install pyudev
- Download and extract the latest release
To use the command line interface, execute the 'octodocker.py' in the extracted folder.
python3 octodocker.py
The script provides a help page to get you started.
The available options are:
- devices: Shows all currently connected devices and their attributes
- rules: Shows all your current udev rules
- add: adds a new rule
- remove: removes a rule