-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while calling plugin filament #8
Comments
what pin number are you using ? |
2016-09-01 15:53:57,605 - octoprint.plugins.filament - INFO - Filament Sensor Plugin setup on GPIO [2]... |
That is odd.... |
OS Version 7 (wheezy) |
can you run a "sudo chmod a+rw /dev/gpiomem" from terminal ? just run it once and restart OctoPrint . do a I don't think you need that to be in the startup script... |
Then again... if you said the request via API works it has nothing to do with permissions... |
yes.. |
I which I can say I know how to help... Not much help from google when searching for "Failed to add edge detection"... |
ok, many thanks for your help. |
Please do. It might help in the future. |
I have the same exact issue as the OP. so the RPI and octoprint see's the change in filament state. but it never pauses. |
The "RuntimeError: Failed to add edge detection" seams to be a problem with the underlying OS. |
i was using the octopi image, today i went ahead and started fresh with raspbian and installed octoprint manually. i was able to get the plugin working correctly. |
@ghvader if you install the devel branch, the plugin will fire A temporary solution, is to write the M commands to turn off the heater and bed in the OctoPrint Settings "GCODE Scripts" / "After print job is paused" (just don't forget to turn it off otherwise ANY pause will stop your heaters!!!) Btw, you should never leave the house with the printer running. |
I saw those options just after i posted my comment.. so i came back for an edit. yeah yeah :) |
@ghvader Wait a couple of minutes and I'm updating the devel. I'm changing "pause" to "gcode" and you can write whatever you want there... This should work for you |
from octoprint Log:
2016-09-01 15:53:54,607 - octoprint.plugins.filament - INFO - Running RPi.GPIO version '0.6.2'...
2016-09-01 15:53:54,610 - octoprint.plugins.filament - INFO - Filament Sensor Plugin [filament] initialized...
...
2016-09-01 15:53:57,605 - octoprint.plugins.filament - INFO - Filament Sensor Plugin setup on GPIO [2]...
...
2016-09-01 16:36:19,306 - octoprint.plugin - ERROR - Error while calling plugin filament
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.2.15-py2.7.egg/octoprint/plugin/init.py", line 204, in call_plugin
result = getattr(plugin, method)(_args, *_kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_filament/init.py", line 56, in on_event
self.setup_gpio()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_filament/init.py", line 70, in setup_gpio
GPIO.add_event_detect(self.PIN_FILAMENT, GPIO.FALLING, callback=self.check_gpio, bouncetime=self.BOUNCE)
RuntimeError: Failed to add edge detection
The text was updated successfully, but these errors were encountered: