-
Notifications
You must be signed in to change notification settings - Fork 41
M117 Snap Not Taking a Snapshot #123
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
Comments
Hi @alsmithson, if possible, please attach your gcode to this issue. Did you try to add a "sleep" to your gcode (e.g. wait 1minute after moving to the end)? Maybe that helps.
Btw. you can test the behaviour without wasting filament, if you use my DryRun-Plugin |
I have the same problem with 1.10 (haven't been able to test with 1.12 given incompatibility with currently released SpoolManager, sticking with 1.10 until then). This is my End G-Code set up on Cura:
|
Hi @alsmithson, @MrSplint3r, Please take a log into the octoprint.log (or attach it here if your unsure). |
Hi, new version 1.3.0 is out and maybe fix the issue. Please test and give feedback. Thx, in advance |
Hi there. I am also having the same issue where the M117 is seemingly ignored and the snapshot is only taken after the bed has moved to present the print. I am new to using gcode so I am not 100% sure whether I entered it correctly in the end gcode in Cura. |
Hi @Boetiebliksem, |
Hi @OllisGit, |
hmmm...please take a look into octoprint.log
When you can see this the image is taken by the expression. The log-entry also include a timestamp, maybe that helps as well. I think the issue is the buffering of the gcode-lines. OP is listen on gcode where already sent to the printer. So did you already play around with the pause values. E.g. increase the pause in front of M117 and then only after M117. |
Hi @OllisGit, I have not tried to change the pause in front or after M117 again. I will give it another go and keep you updated. |
- E #21, #59, #94, #124 reprint feature, if gcode is still available in local file-system - E disabling of filemanttracking is now possible - E grab all informations from SpoolManager-Plugin 1.4+ - E reduce plugin zip-size - B #146, #139 CSV Import fix and ignoring empty lines - B #123 strip M117 camera-expression
Hi @OllisGit |
Is there not perhaps another plugin that could interfere with this one? Or perhaps a setting in Cura which is the slicer I am using. |
@Boetiebliksem playing around with the pause value and positioning the M117 code didn't help, right? |
I only played with the pause value but I did not move it around. I will try it this afternoon, move the command just before the last layer start, and will give feedback. |
Even with 1.14.0, it still is not working. I tried your DryRun plugin to test multiple scenarios, always with the same result, It does not take the picture until the bed and gantry have moved to the final position. I get the proper message in the log (per your example above), I tried putting a G4 P10000 in front of the M117, behind it, and both (per your recommendation above). I have tried M117 Snapshot and M117 Snap in my gcode (per your example in the plugin itself). I disabled every 3rd party plugin except for PrintJobHistory and DryRun. I can't imagine what else I can try. Here are my plugin settings: Here is my gcode: ; Begin SV IdeaMaker —printer— end gcode for Artillery Sidewinder X1 |
I upgraded to the latest OctoPi yesterday (I was already running the latest OctoPrint). The plugin will still not take a snapshot until the print is finished. |
What kind of test feedback are you waiting for? |
Because I have no idea, I raised a question in the OP-Forum: https://community.octoprint.org/t/take-image-via-gcode-command/38882 |
- E #89 support of CostEstimation Plugin - E #154 Report for a printjob - E #160 thumbnail backgroud color is now white - E #162 searching now starts directly after typing(instead of entering 3 letters) - B #165, #158, #156, #155, #149 persist settings of tracking plugin (thx a lot, @ManuelMcLure for the PR) - B #161, #169 statistic popup, double counting (thx a lot, @hvraven for the PR) - B storing note text - #123 changing to octoprint.comm.protocol.gcode.sending for M117 Snapshot trigger
Hi, Please test and give me a feedback. |
fyi: In the next release the ```M118 approach`` from the forum-discussion is implemented. In a virtual-printer it works, but needs to be tested in a real-printer. |
Hi! Well the M118 is implemented in the latest release 1.16.0, but I was not able to test the approach on a real printer. So, please so kind kind, test and give me a feedback... a dry run print. Thx,in advance |
Hi @OllisGit! Please supply sample code for taking the snapshot as I see we should use M118 now? Do we still use "Take Snapshot" in the code? Thanks! |
Hi @OllisGit,
Please supply sample code as I am not sure about M118. Would it look similar to the M117 command previously used? Apologies, but I am not as confide t with the codes as yet.
Thanks!
…Sent from my Galaxy
-------- Original message --------
From: OllisGit ***@***.***>
Date: 2022/01/22 12:21 (GMT+02:00)
To: OllisGit/OctoPrint-PrintJobHistory ***@***.***>
Cc: Johan Rothman ***@***.***>, Mention ***@***.***>
Subject: Re: [OllisGit/OctoPrint-PrintJobHistory] M117 Snap Not Taking a Snapshot (#123)
Hi!
Well the M118 is implemented in the latest release 1.16.0, but I was not able to test the approach on a real printer.
During development with a virtual printer it works like expected.
So, please so kind kind, test and give me a feedback... a dry run print.
Thx,in advance
Olli
—
Reply to this email directly, view it on GitHub<#123 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUEYTIUUMICYNXZ7MDORDV3UXKAKTANCNFSM4Y35OASQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I used the sample code that is farther down in the plugin config. I tossed it in the end gcode in Cura. It has worked for my last 3 prints :) |
Hi @cmlaven thanks a lot for the feedback! What printer and firmware do you use? |
this is my end gcode ... it beeps wait beeps and no foto, prusa on last firmware with last octoprint, what i have wrong? ; Last edited 20200215 //foto M118 //action:pjhTakeSnapshot G4 P5000 ;Waiting for Camera taken the Snapshot G0 X0 Y210 F10200; present bed |
Hi @locki-cz, please take a look into the ocotprint.log (and/or attach to this issue) to see some errors. Sometimes the M118 action-command is not recognized by the printer firmware. fyi: In the latest plugin release V1.17.0 there is a build-in techlogviewer. |
This issue has been automatically marked for closing, because it has not had activity in 30 days. It will be closed if no further activity occurs in 10 days. |
The M118 method does work, though it triggers the camera before the print finishes. Adding G4 S5 before the M118 works so far. By the way, “M118 //action:pjhTakeSnapshot;” and “M118 A1 action:pjhTakeSnapshot;“ both work. |
Possibly user error as the documentation is not very clear. My printer's end gcode includes lifting the nozzle 100mm at the end of the print to make it easier to get to the finished print. When PrintJobHistory takes a picture, the printed object is partly or wholly out of the frame. So I added the line M117 Snapshot to the end gcode right before the G0 Z100 line. Then, in PrintJobHistory, I checked the box "Take camera snapshot if following gcode was sent" and put "M117 Snap" in the text box below it. However, PrintJobHistory still only takes a picture when the print job is completely finished and the gantry has raised up.
I have an Artillery Sidewinder X1 that uses a TFT controller. The printer itself ignores M117 messages, but shouldn't OctoPrint plugins see the code anyway? M117NavBar (0.1.1) works fine, by the way.
The text was updated successfully, but these errors were encountered: