• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

True wifi printing

Scheduled Pinned Locked Moved
Hardware wishlist
10
28
5.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    tomasf
    last edited by 4 May 2017, 05:56

    You could automate it by writing a script and run it as a post-processing script in Simplify3D.

    I wrote a Mac app, launched from an S3D post-processing script, that lets me pick a directory on the Duet to upload to, and presents an option to print after upload. 🙂

    1 Reply Last reply Reply Quote 0
    • undefined
      cbusillo
      last edited by 8 Jun 2017, 08:13

      Tomasf… I would love to use that app. I have 3 factory files saved that each represent a printer. The post processing script in each one uploads to the correct queue on Repetier Server and automatically starts the print. I have been looking for a way to duplicate that functionality with the Duet.

      1 Reply Last reply Reply Quote 0
      • undefined
        tomasf
        last edited by 8 Jun 2017, 14:23

        @cbusillo:

        Tomasf… I would love to use that app. I have 3 factory files saved that each represent a printer. The post processing script in each one uploads to the correct queue on Repetier Server and automatically starts the print. I have been looking for a way to duplicate that functionality with the Duet.

        I uploaded it to GitHub: https://github.com/tomasf/DuetUploader

        It's very much unfinished, but it should work. You can use it like this in your post-processing script in Simplify3D:
        [c]open -a "/Applications/Duet Uploader.app" "[output_filepath]"[/c]

        1 Reply Last reply Reply Quote 0
        • undefined
          cbusillo
          last edited by 8 Jun 2017, 15:27

          Super cool. Is there a way via parameters I can tell it which printer to upload to? Maybe I should just open the project 😃

          1 Reply Last reply Reply Quote 0
          • undefined
            Whitewolf
            last edited by 8 Jun 2017, 15:30

            thanks for sharing

            Exploring the universe wherever the tech blows

            1 Reply Last reply Reply Quote 0
            • undefined
              tomasf
              last edited by 8 Jun 2017, 16:03

              @cbusillo:

              Super cool. Is there a way via parameters I can tell it which printer to upload to? Maybe I should just open the project 😃

              Yeah, you set the hostname in Preferences 🙂

              1 Reply Last reply Reply Quote 0
              • undefined
                JohnOCFII
                last edited by 9 Jun 2017, 14:02

                That looks very useful!

                1 Reply Last reply Reply Quote 0
                • undefined
                  tomasf
                  last edited by 9 Jun 2017, 17:32

                  Once we start using firmware 1.19 and get FTP support again, perhaps scripting Transmit or something similar will be a better idea than using a dedicated app for uploading.

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    dc42 administrators
                    last edited by 10 Jun 2017, 07:02

                    Bear in mind that direct wifi printing comes with security implications. What facilities does S3D provide for authenticating access to the printer over WiFi?

                    Duet WiFi hardware designer and firmware engineer
                    Please do not ask me for Duet support via PM or email, use the forum
                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      Crash69
                      last edited by 11 Jun 2017, 04:37

                      I like the idea of some sort of file transfer script to the duet as a S3D post process, mainly to reduce the steps required…

                      I've come from smoothieboard, which at the time had problems with S3D.. so I'm used to annoying steps in the process, the smoothie/s3d issues is now comipletely fixed by the way, but what I used to have to do was:

                      • Slice in S3D, save to temp folder

                      • alt-tab to web site for S3D move cleanup process

                      • upload gcode file from temp folder

                      • Save processed file back to temp folder

                      • alt-tab to octoprint page

                      • upload gcode file from temp folder

                      • Hit print & watch

                      So I'm pretty used to multiple steps. but its better now, with my DUET my process is:

                      • Slice in S3D, save to temp folder

                      • alt-tab to DWC page

                      • upload gcode file from temp folder

                      • Hit print & watch

                      If I could have a S3D post process script that saved the file directly to the DUET, probably via FTP I assume would be easiest.. then it would save having to have a temp folder and the upload step.. it would end up:..

                      • Slice in S3D, (Post process script saves directly to DUET.. with option on what folder it saves to? )

                      • alt-tab to DWC page

                      • Hit print & watch

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        cbusillo
                        last edited by 11 Jun 2017, 19:46

                        DC42… I have in mind more like the Octo/Repetier method. HTTP upload and control. There is an API key generated to keep it secure

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          Jackal
                          last edited by 11 Jun 2017, 21:56

                          @Crash69:

                          I like the idea of some sort of file transfer script to the duet as a S3D post process, mainly to reduce the steps required…

                          I've come from smoothieboard, which at the time had problems with S3D.. so I'm used to annoying steps in the process, the smoothie/s3d issues is now comipletely fixed by the way, but what I used to have to do was:

                          • Slice in S3D, save to temp folder

                          • alt-tab to web site for S3D move cleanup process

                          • upload gcode file from temp folder

                          • Save processed file back to temp folder

                          • alt-tab to octoprint page

                          • upload gcode file from temp folder

                          • Hit print & watch

                          So I'm pretty used to multiple steps. but its better now, with my DUET my process is:

                          • Slice in S3D, save to temp folder

                          • alt-tab to DWC page

                          • upload gcode file from temp folder

                          • Hit print & watch

                          If I could have a S3D post process script that saved the file directly to the DUET, probably via FTP I assume would be easiest.. then it would save having to have a temp folder and the upload step.. it would end up:..

                          • Slice in S3D, (Post process script saves directly to DUET.. with option on what folder it saves to? )

                          • alt-tab to DWC page

                          • Hit print & watch

                          In S3D scripts > Post processing
                          curl -d "@[output_filepath]" -X POST [http://xxx.xxx.xxx.xxx/rr_upload?name=gcodes](http://xxx.xxx.xxx.xxx/rr_upload?name=gcodes)[output_filename].gcode

                          It will upload the file upon saving gcode

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            cbusillo
                            last edited by 11 Jun 2017, 22:18

                            @Jackal:

                            In S3D scripts > Post processing
                            curl -d "@[output_filepath]" -X POST [http://xxx.xxx.xxx.xxx/rr_upload?name=gcodes](http://xxx.xxx.xxx.xxx/rr_upload?name=gcodes)[output_filename].gcode

                            It will upload the file upon saving gcode

                            Is there a way to start it automatically?

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              Jackal
                              last edited by 11 Jun 2017, 23:32

                              @cbusillo:

                              @Jackal:

                              In S3D scripts > Post processing
                              curl -d "@[output_filepath]" -X POST [http://xxx.xxx.xxx.xxx/rr_upload?name=gcodes](http://xxx.xxx.xxx.xxx/rr_upload?name=gcodes)[output_filename].gcode

                              It will upload the file upon saving gcode

                              Is there a way to start it automatically?

                              You mean start printing?
                              I believe it can be done with the same manner. Will try when I get home.

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                robm
                                last edited by 13 Jun 2017, 10:29

                                @cbusillo:

                                DC42… I have in mind more like the Octo/Repetier method. HTTP upload and control. There is an API key generated to keep it secure

                                Upvote. I put a feature request on the Slic3r Github to have a more generic 'send to printer' option like a command line, but emulating OctoPrint to receive gcode for printing might be a faster way to fitting in with more existing systems.

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  cbusillo
                                  last edited by 13 Jun 2017, 16:46

                                  @Jackal:

                                  You mean start printing?
                                  I believe it can be done with the same manner. Will try when I get home.

                                  Looking forward to this!

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    Jackal
                                    last edited by 13 Jun 2017, 17:18

                                    @cbusillo:

                                    @Jackal:

                                    You mean start printing?
                                    I believe it can be done with the same manner. Will try when I get home.

                                    Looking forward to this!

                                    I am using windows, so not sure if this works for Mac or not.
                                    You will need to download curl and have it in your system path
                                    then put these in Post Processing > Additional terminal commands for post processing (Replace the IP with your Duet IP)

                                    [c]curl –data-binary "@[output_filepath]" -X POST http://192.168.1.###/rr_upload?name=gcodes[output_filename].gcode
                                    curl -G http://192.168.1.###/rr_gcode –data-urlencode "gcode=M32 [output_filename].gcode"[/c]

                                    The file will be uploaded and printed upon saving the g-code
                                    If you want to disable it, add 'rem' before each of the line to skip them

                                    edit: use M32 instead of M23 M24

                                    1 Reply Last reply Reply Quote 0
                                    • undefined
                                      tomasf
                                      last edited by 13 Jun 2017, 17:29

                                      It's probably easier to use [c]M32[/c] instead of [c]M23[/c] + [c]M24[/c].

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        Jackal
                                        last edited by 13 Jun 2017, 17:41

                                        @tomasf:

                                        It's probably easier to use [c]M32[/c] instead of [c]M23[/c] + [c]M24[/c].

                                        Thanks for the heads up, I just put in the first one I found on the wiki

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          cbusillo
                                          last edited by 13 Jun 2017, 23:38

                                          You are my hero! Works perfectly. I need to work on my upload speed or at least get it to do the upload in the background. a 30MB files takes a couple minutes to upload.

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA