How do I turn off the printer after printing?

Hi i use ender 3 pro 3d printer and raspberry pi3 pc with octoprint and printdroid app, i use role and it turn off or turn on with my pc or my phone, but i want turn off the printer when my project is finished. i install octoprint of plugin PSU Control but it not install give me error that

Installing plugin...
Installing plugin "PSU Control" from
/home/pi/OctoPrint/venv/bin/python -m pip --disable-pip-version-check install --no-cache-dir
Downloading (122kB)
Requirement already satisfied: OctoPrint in /home/pi/OctoPrint/venv/lib/python2.7/site-packages (from OctoPrint-PSUControl==0.1.8)
Collecting RPi.GPIO>=0.6.3 (from OctoPrint-PSUControl==0.1.8)
Could not find a version that satisfies the requirement RPi.GPIO>=0.6.3 (from OctoPrint-PSUControl==0.1.8) (from versions: )
No matching distribution found for RPi.GPIO>=0.6.3 (from OctoPrint-PSUControl==0.1.8)
Could not parse output from pip, see plugin_pluginmanager_console.log for generated output

please help me how solve this problem or how solve another method. sorry not know enough english.

I don't know if the Ender 3's wiring is configured in such a way or if the firmware supports it, but the default Marlin firmware has M80 and M81 commands that will control a PSU. Otherwise you'll have to use one of the many power related plugins here and a smartplug.

But looking at the error, it seems that you might need to find and install RPi.GPIO. Maybe ssh to the pi and run the following.

cd ~/oprint/bin
pip install RPi.GPIO

Not sure if it's necessary but you might also have to add pi to the gpio group.

i solved this problem with repeat install octoprint my raspberry :slight_smile:

1 Like