GithubHelp home page GithubHelp logo

octo-print-docker-config's Introduction

This is a Docker Compose file for setting up OctoPrint, a web interface for 3D printers. OctoPrint allows you to control and monitor your 3D printer from any device that has a web browser.

Code

version: '2'

services:

  octoprint:
    image: octoprint/octoprint:latest

    ports:
      - "5000:5000"

    environment:
      - TZ=America/New_York

    volumes:
      - /path/to/octoprint:/root/.octoprint

    devices:
      - /dev/serial/by-id/<dev_port_id>:/dev/ttyUSB0

    restart: unless-stopped

Changes to the Device Configuration

In version 2 of the code, the devices section has been updated to specify the location of the connected 3D printer.

The line - /dev/serial/by-id/<dev_port_id>:/dev/ttyUSB0 maps the USB device identified by the ID <dev_port_id> to the virtual device /dev/ttyUSB0.

Finding Your Connected Device

To find the ID of your connected 3D printer, you can use the following command:

ls /dev/serial/by-id/

This will display a list of all connected serial devices, along with their IDs. Find the ID of your 3D printer and replace <dev_port_id> with your device's ID in the devices section of the code.

Use

Copy and paste the code into a file named docker-compose.yml and use the following command to bring up the OctoPrint service:

docker-compose up -d

Final Thoughts

With this Docker Compose file and the updated device configuration, you should be able to set up OctoPrint and control your 3D printer from any device with a web browser. If you have any issues or questions, feel free to reach out for support.

octo-print-docker-config's People

Contributors

muditbhargava66 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.