Closed AndyShap2020 closed 1 year ago
Do you mind enabling logs for SmartABL (DEBUG) and sharing octoprint_SmartABL.logs? Also, are you using marlin? Do you have eeprom enabled?
octoprint-logs.zip Yes, I am using Marlin. I am using MRiscoc's firmware. I am pretty sure eeprom is enabled. How do I know for sure?
Is the behavior I am describing normal?
I am just looking at the log. It is empty. Hang tight, I will verify logging is enabled and post back.
Sorry about that. I have enabled logging and will let it run for a day or two and get back to you.
You can verify that eeprom is enabled by doing a G29 (note the values) and then M500 manually, then query the eeprom information sendi M503, that command should report the same mesh points returned by G29. Or reboot and send M503 and check the values of the mesh.
Thank you for your patience (I've had some big print jobs running). Here are the results of my eeprom commands as well as the SmartABL logs: eeprom results.txt plugin_SmartABL.log
Do you mind sharing your start gcode?
Wow! Thank you for the quick response! G-Code attached Start G-Code.txt
Can you share the output from M420 V1? The pluging isn't recognizing the output, it states that you have an invalid mesh.
Also, enable custom
under Leveling command in SmartABL settings. Currently, the plugin is sending "M420 S1 Z2, M500", which is recovering the mesh from eeprom, not triggering ABL. I don't find any G29 in the logs.
In the logs, it seems that you have enabled failed prints in the counter.
Thank you again for your patience. I'm running some 24 hour jobs, so I need to wait for the jobs to finish.
Attached are results from G29 command and M420 V1. G29.txt M420 V1.txt
I was thinking CUSTOM meant "don't do the default action, do this instead". And I thought the default WAS G29. I have enabled custom now. Also, what I want is for failed prints to NOT be taken into account in my "every 5 prints do an ABL" request. Would I UNCHECK the failed prints option to achieve this?
Yes, checked means take into account failed prints. The default action is "use my gcode instead (because someone was using g29 with a lot of arguments, however that doesn't take into account M420 which means "load mesh instead ")
OK. I have the M420 command in there because I DO NOT want to run an ABL every time I print. So, the m420 says use the stored mesh level info (I'm talking out loud here, not trying to teach you something!). Are you saying I should remove the M420 command from my start Gcode and let SmartABL handle it? And if so, where is it getting the mesh level info in between fresh ABL's triggered by SmartABL?
Nono, it's just a bug in my code. I didn't even think about that case. But you can use custom gcode while I add that fix and some other functions pending. Without the custom gcode, the plugin monitors G29* and M420, if it detects any of these, it sents it back to the printer if ABL conditions are met (which is incorrect in the case of M420, it should sent at least G29, sending M420 back does nothing), otherwise M420 is sent instead. I'm not in home now. I'll check the logs later. But when I checked them, (I think) the ABL wasn't from me, because the plugin was sending M420, not G29
Sorry, a little confusing... I think you are telling me to just leave it all as is for now?
P.S. I'm happy to do some beta testing for you if you would like. You certainly have been more then helpful and responsive!
That would be helpful, I've switched to Klipper few weeks ago and I need to go back and forth to test marlin. For now, uncheck failedPrints and check custom (with G29 in the box). The plugin will manage your bed leveling according to the conditions.
FYI, I've followed directions per your most recent comment. It still does an ABL Every time I turn on the printer.
I needs the logs. Disabling the plugin doesn't trigger ABL?
Hi, sorry for the delay, I've been pretty busy.
I've added a prerelease for 0.1.4, do you mind checking it? I've fixed the bug with M420 not triggering ABL when required.
Should I leave CUSTOM,DAYS, # Prints and FAILED all checked in SmartABL? Should I leave M420 enabled in g-code?
Not sure how to install from a zip file into Octoprint., I'll figure that out.
Configure it as you want, you don't need to check FAILED in settings. Leave M420 in gcode, yes, the plugin should use g29 instead.
Did you manage to install it? Is it working now?
If you still don't know how to install, go to settings, plugin manager, get more, and paste this link under the box "... from url" https://github.com/scmanjarrez/OctoPrint-SmartABL/archive/refs/tags/0.1.4rc0.zip
and click install
Hi Sergio, Yes, I got it installed. I am not sure how it is working (thus I haven't responded yet). I have it set for 10 days or 5 prints. I had a 21 hour print and maybe 1 or two others. It did an ABL on the next print. So, not 10 days (1 day) and not 5 prints (about 3 prints). I really want to do a few more prints before I say anything.
P.S. Does the failed prints option include stopped prints? I pretty much never have a failed print where the printer stops. I have MANY prints that aren't going well, so I stop the print. Hopefully, stopped prints are included in failed prints.
Yes, cancelled and stopped prints count if enabled (checked). Only successful prints count if disabled (unchecked). Ok, also, do you have the button under print information pressed on restricted?
I still don't understand why it's triggering the ABL, clearly the logs show ABL skip (no G29 sent to printer), so there is something else I'm missing, maybe is incompatible with another plugin? 🤔
P.S. As noted on the screen print you just loaded, my Octoprint DOES NOT show a Green ABL restricted. It is a blank square box. It DOES show ABL Always. I can't tell if ABL always is selected though. Does it change color or anything when selected?
lol, yes, it was supposed to be green, and blue when abl always is pressed. Like this in v0.1.4
Do you have any theme related plugin?
I have "Themeify" plugin enabled. I'd hate to lose it. I have disabled it and the SmartABL portion looks correct. I assume the middle portion tells me how many prints since last ABL? Is there any way to incorporate SmartABL to be used alongside Themeify?
I'll keep an eye out to see if the issues I have been having are resolved by disabling Themeify.
I have enabled themeify as well, and it works for me. Do you have custom css? What is your themeify configuration? I don't think themeify is the one triggering ABL. The middle part is the current_prints/prints_set_for_abl, when the first part is the same as the second, ABL is triggered (or by date, but that information isn't shown)
Sorry. I found the problem, it seems like the culprit is the Material Light UI theme. Using the others kinda work. I think you can "disable" the theme but still being able to use custom css (that's what I do, because Material UI lose lot of button colors).
I'll take a look. I was doing testing of the new release, I got to 4/5 prints and then, 20 hours into a 22 hour print, our power shut off. Octoprint reset the print count back to 0. :-(
I'll keep testing.
Yes, that's an intended behavior, when you start a print, the counter is set to 0, then on completion it's increased.
I don't know if we are there yet. I started a print and it did an ABL. The print failed, and I started a new print. It did an ABL again. That second print failed and I started a third ABL again. I don't think it should have been doing an ABL each time (The count DID remain at 0/5, as it should since I never got a successful print.
Also, Can I get a screen print of your CSS entries, I'd like to get themify back if I can.
Thanks!
It's really difficult to debug a problem without a log file... I don't use custom CSS, just the default one (and discoranged theme)
Ok, I think I have detected the problem. I'll release a hotfix. Also, take into account that you have PrintFailed checked, that means that every stopped/cancelled print is increasing the counter.
A little confusing... I DO have PrintFailed checked. I thought that means DO NOT use failed prints in the count. But you are saying that when checked it means DO count failed prints in the count?
P.S. I can't believe how responsive you are! I am still more than happy to continue beta testing with you.
From the README:
Take into account failed prints in the counter. Default: disabled (only successful prints increase the counter).
Checked -> stopped/cancelled prints increase the counter Unchecked -> only successful prints increase the counter
It used to have other description in old versions, but I reworded it to be more clear, sorry for the confusion
I've released a new version, it should pop up in the following hours in your octoprint instance.
hi, have you encountered the same error after last update (ABL still triggering)? Also, I'll try to add custom CSS rules at least for my buttons so it works even with themeify material design.
It’s been a bit of a crazy week. I have not yet had a chance to install the new update. I will do it today and run several small jobs and get back to you.
Andy Shapiro, Owner AS Consulting (Networking, Hardware, Software & Training) P.O. Box 1728, Goleta, CA. 93116-1728 Voice: (805) 968-6366 email: @.*** Web: www.asconsulting.comhttp://www.asconsulting.com/
From: Sergio C @.> Sent: Monday, March 13, 2023 9:31 AM To: scmanjarrez/OctoPrint-SmartABL @.> Cc: AS Consulting @.>; Author @.> Subject: Re: [scmanjarrez/OctoPrint-SmartABL] ABL every time you start printer? (Issue #9)
hi, have you encountered the same error after last update (ABL still triggering)? Also, I'll try to add custom CSS rules at least for my buttons so it works even with themeify material design.
— Reply to this email directly, view it on GitHubhttps://github.com/scmanjarrez/OctoPrint-SmartABL/issues/9#issuecomment-1466481093, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ6Q2HZUCTNDBTO7WKAEMU3W35DVJANCNFSM6AAAAAAT75DQXI. You are receiving this because you authored the thread.Message ID: @.***>
Same, don't worry, when you have time. Thanks!
I’m just getting started on testing. Octoprint is coming up saying 0.5.0 is ready to install. Is this the latest release I should be testing?
Andy Shapiro, Owner AS Consulting (Networking, Hardware, Software & Training) P.O. Box 1728, Goleta, CA. 93116-1728 Voice: (805) 968-6366 email: @.*** Web: www.asconsulting.comhttp://www.asconsulting.com/
From: Sergio C @.> Sent: Monday, March 13, 2023 11:53 AM To: scmanjarrez/OctoPrint-SmartABL @.> Cc: AS Consulting @.>; Author @.> Subject: Re: [scmanjarrez/OctoPrint-SmartABL] ABL every time you start printer? (Issue #9)
Same, don't worry, when you have time. Thanks!
— Reply to this email directly, view it on GitHubhttps://github.com/scmanjarrez/OctoPrint-SmartABL/issues/9#issuecomment-1466752613, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ6Q2H6MZ5Z6JQEUMBE7VVLW35UHBANCNFSM6AAAAAAT75DQXI. You are receiving this because you authored the thread.Message ID: @.***>
Yes, that's the latest version
I think you know this: As of 0.5.0 Themify still needs to be disabled to see color and counter of SmartABL.
Andy Shapiro, Owner AS Consulting (Networking, Hardware, Software & Training) P.O. Box 1728, Goleta, CA. 93116-1728 Voice: (805) 968-6366 email: @.*** Web: www.asconsulting.comhttp://www.asconsulting.com/
From: Sergio C @.> Sent: Monday, March 13, 2023 5:34 PM To: scmanjarrez/OctoPrint-SmartABL @.> Cc: AS Consulting @.>; Author @.> Subject: Re: [scmanjarrez/OctoPrint-SmartABL] ABL every time you start printer? (Issue #9)
Yes, that's the latest version
— Reply to this email directly, view it on GitHubhttps://github.com/scmanjarrez/OctoPrint-SmartABL/issues/9#issuecomment-1467168742, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ6Q2H6MC6LKP2WUZGY4NZTW364IDANCNFSM6AAAAAAT75DQXI. You are receiving this because you authored the thread.Message ID: @.***>
Yes, I'm planning to create a custom "theme" for these buttons (instead of using bootstrap btn colors) in order to fix that, but I've been very busy lately, sorry.
Don’t apologize, I’m just making sure I understood what you said previously.
Andy Shapiro, Owner AS Consulting (Networking, Hardware, Software & Training) P.O. Box 1728, Goleta, CA. 93116-1728 Voice: (805) 968-6366 email: @.*** Web: www.asconsulting.comhttp://www.asconsulting.com/
From: Sergio C @.> Sent: Monday, March 13, 2023 5:37 PM To: scmanjarrez/OctoPrint-SmartABL @.> Cc: AS Consulting @.>; Author @.> Subject: Re: [scmanjarrez/OctoPrint-SmartABL] ABL every time you start printer? (Issue #9)
Yes, I'm planning to create a custom "theme" for these buttons in order to fix that, but I've been very busy lately, sorry.
— Reply to this email directly, view it on GitHubhttps://github.com/scmanjarrez/OctoPrint-SmartABL/issues/9#issuecomment-1467170633, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ6Q2HZRGMMOQHOZB62VA6LW364TVANCNFSM6AAAAAAT75DQXI. You are receiving this because you authored the thread.Message ID: @.***>
Should open this request in a new thread?: As of now, SmartABL only heats the bed, then when up to temp, it does an ABL. I’d like it to heat the head at the same time, so I don’t need to wait after an ABL. Can I just add this in the custom GCODE?
Andy Shapiro, Owner AS Consulting (Networking, Hardware, Software & Training) P.O. Box 1728, Goleta, CA. 93116-1728 Voice: (805) 968-6366 email: @.*** Web: www.asconsulting.comhttp://www.asconsulting.com/
From: Sergio C @.> Sent: Monday, March 13, 2023 5:34 PM To: scmanjarrez/OctoPrint-SmartABL @.> Cc: AS Consulting @.>; Author @.> Subject: Re: [scmanjarrez/OctoPrint-SmartABL] ABL every time you start printer? (Issue #9)
Yes, that's the latest version
— Reply to this email directly, view it on GitHubhttps://github.com/scmanjarrez/OctoPrint-SmartABL/issues/9#issuecomment-1467168742, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ6Q2H6MC6LKP2WUZGY4NZTW364IDANCNFSM6AAAAAAT75DQXI. You are receiving this because you authored the thread.Message ID: @.***>
Yes, you can add several gcodes, just separate them with a comma. Btw, SmartABL has nothing to do with hotend/bed, it only cares about bed leveling commands. If the bed/hotend isn't heating, it should be in your start gcode.
This is a start gcode to achieve something like that (cura, but it should be similar with PrusaSlicer/SuperSlicer, just check the variables):
; start of custom start-gcode
; start preheating
M140 S{material_bed_temperature_layer_0}; start preheating bed
M104 S{material_print_temperature_layer_0} ; start preheating hotend
G90 ; absolute positioning
M82 ; set extruder in relative mode
G28 ; move X/Y/Z to min endstops
M190 S{material_bed_temperature_layer_0} ; heat to Cura Bed setting
M109 S{material_print_temperature_layer_0} ; heat to Cura Hotend setting
G29 ; autobed leveling
G1 X5 Y0 Z0.2 F2000 ; go to purge area
G92 E0 ; reset extruded lenght
G1 Y100 E15 F500 ; purge first line
G92 E0 ; reset extruded lenght
G1 Z2 ; raise 2mm z axis to prevent scratches
No, it does heat up the bed before abl, but I'd like it to heat up the hotend as well. I'll add gcode in smartabl.
First print started, did an abl as expected.
Andy Shapiro, Owner AS Consulting (Networking, Hardware, Software & Training) P.O. Box 1728, Goleta, CA. 93116-1728 Voice: (805) 968-6366 email: @.**@.> Web: www.asconsulting.comhttp://www.asconsulting.com/
From: Sergio C @.***> Sent: Monday, March 13, 2023 5:49 PM To: scmanjarrez/OctoPrint-SmartABL Cc: AS Consulting; Author Subject: Re: [scmanjarrez/OctoPrint-SmartABL] ABL every time you start printer? (Issue #9)
Yes, you can add several gcodes, just separate them with a comma. Btw, SmartABL has nothing to do with hotend/bed, it only cares about bed leveling commands. If the bed/hotend isn't heating, it should be in your start gcode.
— Reply to this email directly, view it on GitHubhttps://github.com/scmanjarrez/OctoPrint-SmartABL/issues/9#issuecomment-1467178597, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ6Q2HZ6FOCSKHACT6H553DW366BVANCNFSM6AAAAAAT75DQXI. You are receiving this because you authored the thread.Message ID: @.***>
Is your feature request related to a problem? Please describe.
I have my gcode set to default. I am forcing an ABL after 10days. I am forcing an ABL after 5 prints. I am set to ignore failed prints.
All seems to work fine, but I turn my printer off if I am not immediately doing another print. Is it normal that is does an ABL at the first print, EVERY time I power on? If I power off and on 4 times in the same day, it will do an ABL at the start of each of those 4 prints.
Describe the solution you'd like
I'd like it to ignore power on/off and follow the rules set in the options.
Describe alternatives you've considered
No response
Additional context
No response