-
Notifications
You must be signed in to change notification settings - Fork 204
Troubleshooting Guide
If you are having problems with the plugin follow the steps before opening an issue or contacting me:
-
Restart the settings: First thing, double check the pins that you configured on the settings page, double check if the pins should be active low or high, and double check if the pin numbers match the settings. By default the plugin uses BCM pin numbers. If everything looks right remove all octoprint-enclosure settings, save it, restart the server, and see if it start working, next step is to check the octoprint log, look for exceptions or any other issue.
-
Check input / output outside enclosure plugin You need to make sure that the problem is isolated to the plugin, so whatever you have configured inside of the plugin needs to be tested with simple python scripts. For example, if you have simple outputs configured, create the following script:
import RPi.GPIO as GPIO
from time import sleep
import signal
import sys
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
PIN_NUMBER = 24
GPIO.setup(PIN_NUMBER, GPIO.OUT)
def signal_handler(signal, frame):
GPIO.output(PIN_NUMBER, True)
print 'Exiting...'
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
while True:
print 'Setting low...'
GPIO.output(PIN_NUMBER, False)
sleep(5)
print 'Setting high'
GPIO.output(PIN_NUMBER, True)
sleep(5)