• 0 Posts
  • 20 Comments
Joined 1 year ago
cake
Cake day: June 13th, 2023

help-circle





  • I feel attacked by this post. I self host Home Assistant, recursive proxy servers, RSS readers, photo managers, vscode, media servers, download managers, backup solutions, git, password databases, economy trackers… And if I need to print from my macbook I have to email the file to myself because in twenty years I haven’t ONCE been able to host my printer on the network in a way that works for more than three days before randomly breaking.












  • 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.




  • There was a really cool blueprint released which uses this. Basically, it asks for your calendar entries for the day, include those and weather info etc. in a prompt to e.g. chatGPT, asking for a summary, and then sends this reply as a notification to your phone.

    Scripts can also return information now, allowing for cleaner scripts and automations theough Separation of Concern. For example; I sometimes want to turn on lights to a set brightness depending on the time of day, and now I can make a script to calculate the correct level that I then use in all automations. This eliminates the slight delay you get with e.g. f.lux or Adaptive Lighting.