OctoPi

Using a relay to control power:
http://www.thingiverse.com/thing:1726120/#comment-1134637

Bought this relay:
http://www.ebay.co.uk/itm/252614067501

Piggypack Pi's power from UM2 PSU:
https://ultimaker.com/en/community/15515-powering-raspberry-pi-from-ultimaker-2-main-board

So made my own mount:
http://www.thingiverse.com/thing:2117493

Camera:
http://www.webhallen.com/se-sv/datorer_och_tillbehor/112615-logitech_hd_webcam_c270&atcl=search:result

Stand for camera:
http://www.thingiverse.com/thing:31171/#files

Finished result, bottom:
Finished

In action:
https://goo.gl/photos/s2cpEuw1YVpdgWJR9

Update 2023

This have been running reliable for some years, but on a new network setup I wanted to install tailscale. After a few attempts to update the underlying debian dist for certification reasons to be able to install tailscale I think I kinda broke the Linux install.

So I felt I'd redo this. Burnt a shiny new octopi with Raspberry Imager.

A few notes:

  • The script for setting pins seem are now:

/home/pi/.octoprint/config.yaml:

system:
  actions:
  - action: printer on
    #command: gpio -g write 18 1
    command: raspi-gpio set 18 op dh
    name: Turn on the printer
  - action: printer off
    #command: gpio -g write 18 0
    command: raspi-gpio set 18 op dl
    confirm: You are about to turn off the printer.
    name: Turn off the printer
  • The camera stopped working.
  • octopi reporting undervoltage: