Loading

Report as inappropriate

Thanks for fast replay! I think you misunderstood me, I meant these section:

"GPIO Scripts
octopi comes with the gpio stuff installed, so just running "gpio" on the command line gives me several options. I made 4 scripts to control the relays. They were all in "/usr/local/bin/". I had to make them as root, and I had to add permissions "sudo chmod a+rx .sh" so that the pi user could execute them.

printer_on.sh:

!/bin/bash

gpio export 23 out
gpio -g write 23 0
printer_off.sh:

!/bin/bash

gpio export 23 out
gpio -g write 23 1
light_on.sh:

!/bin/bash

gpio export 18 out
gpio -g write 18 0
light_off.sh:"

!/bin/bash

gpio export 18 out
gpio -g write 18 1

Thanks again!