- Use this plugin to automatically turn on and off leds. (At the start of a timelapse for example)
- Read the temperature of the enclosure.
- Turn on and off leds by using a button.
Install via the bundled Plugin Manager or manually using this URL:
https://github.com/wouterbruggeman/EnclosurePlugin/archive/master.zip
After downloading the plugin, execute the following steps:
- Login to your Raspberry pi using ssh.
- Enter
sudo raspi-config
and go to Advanced Options -> 1-Wire -> Yes. To enable 1-Wire. - Reboot the device and check if the module is started with
lsmod | grep w1
. If the module is started, skip to 5. - Mount the device with
sudo modprobe w1_gpio && sudo modprobe w1_therm
- Configure the device name in the plugin settings in Octoprint. The name of the device can
be found with
ls /sys/bus/w1/devices/
and should be starting with '28'. - Restart the Octoprint server and everything should be working at this point.
The following circuit has to be build:
This program may contain bugs. I (Wouter Bruggeman) am not responsible for anything that happens to you, your printer or anything else. Use this program at your own risk!
- After starting octoprint with
octoprint serve
the user is unable to exit the program by using CTRL+C