Skip to content
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

Automated tasks #275

Closed
ModMike opened this issue Nov 21, 2018 · 9 comments
Closed

Automated tasks #275

ModMike opened this issue Nov 21, 2018 · 9 comments

Comments

@ModMike
Copy link

ModMike commented Nov 21, 2018

Hi Luc,

I have been away from my printer for a few months and have just started printing again using the Azteeg X5 mini WiFi via the WEB UI running on Marlin 2.0.x.

It is frankly amazing and I haven't felt the need to hook up Octoprint for anything whatsoever. The only niggle I have is the the workflow is a little tedious and I was wondering if you would consider some minor changes:

  1. It would be great if WEB UI would send an automatic SD card initialize command to Marlin a few seconds after startup to avoid having to do it on the printer. WEB UI will not see the card contents until that is done.

  2. It would be equally great if WEB UI would send a card refresh every time it finishes uploading or deleting a file to sync what Marlin and WEB UI see.

  3. Uploading files can become tedious when each fie name needs to fit 8.3. Is there anyway that you can auto truncate filenames? Ex: When selecting THE123456789.gcode for upload it would be automatically renamed 2345678.GCO before uploading.

  4. I know we discussed this before but I would also like to be able to add a post printing script to simplify3Ds post processing to automatically upload a file to WEB UI when I save tool paths to disk, like I used to do for Octoprint.

I know I am asking fro a lot but it would sure make life easier when printing in Marlin.

Merci!

@luc-github
Copy link
Owner

luc-github commented Nov 21, 2018

1 - as said this should be done by Printer not webUI - but this could be done of course when checking if SDcard is present - this is because no SD Detect Pin ?

2 - the issue is same as 1 - so same solution init SD card M21

3 - It is not so simple - truncate follow rule ( in theory ): XXXX~000.XXX so when truncating, need to check there is no already same filename, and if any, increase 000 until there is a free slot -
But doing this : how user know THE123456789.gcode is actually 2345678.GCO ? it can be confusing
That is why I ask user to change name itself. 8.3 filename is a Marlin feature that seems not willing to change.

4 - That should be already possible in theory using curl, something like :
curl -i -X POST -H "Content-Type: multipart/form-data" -F "data=@test.gco" http://mysuperserver/upload
Address change according Direct upload or Serial Upload - this is direct upload.
There is also WebDav support in plan that should help also
But did not have time yet to test/ check both

@luc-github luc-github changed the title Automated card refresh Automated tasks Nov 21, 2018
@ModMike
Copy link
Author

ModMike commented Nov 21, 2018

I understand the "should" be part but Marlin will not do it because their position is that is what the SD detect pin is for. Unfortunately there is none on the Azteeg X5 Mini Wifi.

Wouldn't the curl thing run into file name convention issue?

@ModMike
Copy link
Author

ModMike commented Nov 21, 2018

Do you have an updated version of the Azteeg firmware that includes the automator function that you could send me?

Also can I add M21 to the commands myself? They seem to work like the macros, correct?

@luc-github
Copy link
Owner

I won't comment Marlin decisions as I do not use Marlin on my printers but for what I remember SD init is also added in LCD part so I am guessing you do not have LCD neither, is that correct ?

And it seems common to have printer without SD Detect, at least Robo3D R1 was reported here(#251).

About adding M21, I will add it as option in WebUI and in ESP3D FW

  • for SD refresh
  • Before upload
    At the end of upload there is a refresh so this case should be cover also

The curl should run to 8.3 for safety, originaly 8.3 is for M23/M29 protocol not direct SD upload - as Marlin was not the target for this FW so I did not tested long name for Marlin, so you can give a try the 8.3 restriction is defined in Web-UI not in ESP3D

I did not worked on it since I sent you the test version 2.0 and as you can see Autostart macro is planned for 2.1 but I did not worked on it yet - because busy with others projects - hope to work on it begining of december. It is not key feature until now

You can create a M21 in macro yes - you still need to press the button in WebUI to send it

@ModMike
Copy link
Author

ModMike commented Nov 26, 2018

When using curl, how do i trigger the upload? I imagine I put it in post processing and then do save to desktop in s3d to trigger upload?

@ModMike
Copy link
Author

ModMike commented Nov 26, 2018

I won't comment Marlin decisions as I do not use Marlin on my printers but for what I remember SD init is also added in LCD part so I am guessing you do not have LCD neither, is that correct ?

I have an LCD, i'm just trying to streamline the workflow.. Every print needs so many clicks I feell like I'm launching the space shuttle..

Works super nice though.

@luc-github
Copy link
Owner

luc-github commented Nov 27, 2018

I never used post processing script, and it looks like documentation is hard to find (did not find), but when you press 'prepare to print' the gcode file is generated in temporary location (I do not know where) and next step is stream the file or save is specific location
so in theory as the post processing is a copy of the file to SD, I think no other action is necessary , but you may want to save the file on your PC also
Slic3r allow such post processing script also, and I did not test neither.

@luc-github
Copy link
Owner

Because on topic is already addressed here #270
and another is now here #279

I close this as duplicate

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants