I’ve been using Cura as a slicer for my Anycubic Kobra since I got it a few months ago. After a few weeks I discovered octoprint which was amazing as it let me start and monitor print jobs whilst out and about.

Cura has been great for me but I’m growing tired of needing to copy my print profiles from machine to machine on different OSes to slice my STL files. Is anyone aware of any self hosted web based slicers I could use to sidestep this problem?

I would be willing to live without an octoprint plugin and manually download and upload the gcode files to my printer if needed, I just want to be able to slice from wherever I am and kick off the print from wherever I am.

Any advice would be greatly appreciated.

  • thomasloven@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago
    version: "3.0"
    
    networks:
      web:
        external: true
    
    services:
      prusaslicer:
        image: keyglitch/prusaslicer
        volumes:
          - share:/home/slic3r/share:z
          - ./slic3r:/home/slic3r
        depends_on:
          - novnc
        environment:
          DISPLAY: novnc:0.0
          WIDTH: 1920
          HEIGHT: 1080
        entrypoint: ""
        command: 
          - /bin/sh
          - -c
          - /bin/sleep 3 && /Slic3r/slic3r-dist/prusa-slicer
    
      novnc:
        image: theasp/novnc:latest
        networks:
          web:
          default:
        environment:
          RUN_XTERM: "yes"
          RUN_FLUXBOX: "yes"
          DISPLAY_WIDTH: 1920
          DISPLAY_HEIGHT: 1080
        labels:
          traefik.enable: true
          traefik.docker.network: web
          traefik.http.routers.slicer.rule: Host(`slicer.myurl.com`)
          traefik.http.routers.slicer.tls.certResolver: le
          traefik.http.routers.slicer.middlewares: auth@file
    
    

    You’ll have to add something to be able to transfer files to the share volume separately. I use machines/filestash and dperson/samba.

    • Nimmo@lem.nimmog.ukOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Thanks for that, I’ll give it a tweak and a bash as I don’t use traefik, but that’s a great starting point that gets me a chunk of the way there

      • thomasloven@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 year ago

        You should be able to just expose port 8080 from novnc and be good to go, I guess. And then you don’t need the networks stuff either.