Octoprint-Filament-Reloaded icon indicating copy to clipboard operation
Octoprint-Filament-Reloaded copied to clipboard

Bug fix and feature to prevent resuming with no filament

Open draagc opened this issue 5 years ago • 5 comments

These modifications solve issue #46 and add the feature to prevent resuming the printer when no filament is present (#33). I have also added an option in settings to enable/disable this functionality.

draagc avatar May 20 '19 21:05 draagc

Thanks for the fix. will check it but who will create a new Version for the Octoprint Plugin Manager? I installed it only over Plugintool via Octoprint. The last version what i see over the octoprint tool is the old version Filament Sensor Reloaded: 1.1.0 (Bugfix).

Who will do a new Version for Octoprint Pluginmanager? If it is ready i can test your fix.

raindancer2204 avatar May 21 '19 08:05 raindancer2204

@raindancer2204 If you want to test the fix you can do so by cloning my fork and adding everything to a .zip file, and install it using the "from uploaded archive" option in OctoPrint plugin manager.

draagc avatar May 21 '19 10:05 draagc

@draagc should i remove the old filament sensor reloaded plugin and than install your zip file? Or install it over the existing version. On with Octoprint Version do you made your tests?

raindancer2204 avatar May 21 '19 13:05 raindancer2204

@raindancer2204 The zip file should replace the already installed plug-in, so you can just install it over it. However, if you encounter issues you can always uninstall the plug-in an re-install it using the zip file.

It has been tested on both 1.3.11 and 1.3.10.

draagc avatar May 21 '19 13:05 draagc

Hi draggc,

Hello

I checked your build and I noticed the following.

Important the structure of the hardware and the wiring is the same for all 3 printers. I use Octoprint 1.3.11 and ask each of the PIN 7 from. The wiring was also checked clean. It is identical.

Test with 2 i3 Mega with Octoprint Version 1.3.11 was successful.

Test with the Anycubic Chiron here it comes to a strange mistake.

The test GCODE I printed on the Chiron with the SD card here he ran through clean.

The following error about Octoprint the pressure goes unexpectedly after about 1.5 hours in break. The filament is full and the gpio read did not say anything else. I can rule it out mechanically.

Can it be that it is queried too often? Would not it last every second? I have more Retract here.

Enclosed the octoprint.log:

2019-07-12 16:55:21,988 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:55:23,374 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:55:24,743 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:55:25,623 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:55:26,022 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:55:35,442 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:55:37,323 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:55:38,382 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:56:15,400 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:56:16,079 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:56:29,191 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:56:33,169 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:56:33,442 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:56:37,723 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:56:38,002 - octoprint.plugins.filamentreload - INFO - Out of filament! 2019-07-12 16:56:38,005 - octoprint.plugins.filamentreload - INFO - Pausing print. 2019-07-12 16:56:38,007 - octoprint.util.comm - INFO - Changing monitoring state from "Printing" to "Pausing" 2019-07-12 16:56:38,555 - octoprint.printer.standard.job - INFO - Print job paused - origin: local, path: AC_owl_female_small.gcode, owner: admin, user: None 2019-07-12 16:56:38,606 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:56:38,654 - octoprint.util.comm - INFO - Changing monitoring state from "Pausing" to "Paused" 2019-07-12 16:56:44,919 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:56:45,169 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:56:45,523 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:56:45,779 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:56:46,035 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:56:47,232 - octoprint.plugins.filamentreload - INFO - Filament detected! 2019-07-12 16:58:39,735 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-07-12 16:58:50,094 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 5404} 2019-07-12 17:11:02,579 - octoprint.server.util.flask - INFO - Passively logging in user admin from ::ffff:192.168.4.100 2019-07-12 17:11:03,875 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.4.100 2019-07-12 17:11:03,998 - octoprint.server.util.flask - INFO - Passively logging in user admin from ::ffff:192.168.4.100 2019-07-12 17:11:06,555 - octoprint.server.util.sockjs - INFO - User admin logged in on the socket from client ::ffff:192.168.4.100 2019-07-12 17:11:10,526 - octoprint.util.comm - INFO - Changing monitoring state from "Paused" to "Resuming" 2019-07-12 17:11:10,544 - octoprint.printer.standard.job - INFO - Print job resumed - origin: local, path: AC_owl_female_small.gcode, owner: admin, user: admin 2019-07-12 17:11:10,552 - octoprint.plugins.filamentreload - INFO - PrintResumed: Enabling filament sensor. 2019-07-12 17:11:10,717 - octoprint.util.comm - INFO - Changing monitoring state from "Resuming" to "Printing" 2019-07-12 17:11:41,801 - octoprint.server.api.system - INFO - Performing command for custom:streamon 2019-07-12 17:11:42,183 - octoprint.plugins.filamentreload - INFO - Filament detected!

raindancer2204 avatar Jul 12 '19 15:07 raindancer2204