MoonshineSG / Octoprint-Filament

Pause print on GPIO sensor
26 stars 16 forks source link

Showing 'present' regardless of filament status #14

Open unbwogable opened 7 years ago

unbwogable commented 7 years ago

I've confirmed my switch is normally open, verified it's working, tried a few pins, but I'm consistently getting a response that the filament is preset/1, regardless of if it is or not.

MoonshineSG commented 7 years ago

Post your config and the logs.

MoonshineSG commented 7 years ago

I see that the plugin detects the status at the beginning, but can't see any calls to the api...

2016-10-01 00:19:38,205 - octoprint.plugins.filament - INFO - Filament Sensor Plugin setup indicates '0' when filament is present (setup on GPIO 7).
2016-10-01 00:19:38,207 - octoprint.plugins.filament - INFO - Current status is '1'...

2016-10-01 00:28:38,355 - octoprint.plugins.filament - INFO - Filament Sensor Plugin setup indicates '0' when filament is present (setup on GPIO 7).
2016-10-01 00:28:38,356 - octoprint.plugins.filament - INFO - Current status is '0'...

which version of the plugin are you using ? master or devel ?

unbwogable commented 7 years ago

Should be master, I removed and reinstalled to be sure

MoonshineSG commented 7 years ago

btw, the detection only happens during printing.. :D

if you use the devel, I just updated to it always detects (makes more sense for this version)