Skip to content

J0nnyBr4v0/Octoprint-PSU-Control-Hardware-Switch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Octoprint-PSU-Control-Hardware-Switch

I wanted a way to turn my printer on while I was at the printer in a manner that the PSU Control plugin would still function normally. These are some simple scripts I created that take input from a pushbutton switch connected to the Raspberry Pi GPIO pins.

Operation is simple. The main script listener.py is run from rc.local. When the button is pressed listener.py calls PSUOn.sh which uses curl to send a command to PSUControl. As I have PSUControl setup to automatically turn off after 10 minutes that the printer is idle, PSUOff is not currently called from listener.py but it's a simple edit to implement power off. I'll implement this when I have more time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 60.0%
  • Python 40.0%