Jump to content
Ultimaker Community of 3D Printing Experts

analyst developer


zaaf77
 Share

Recommended Posts

Posted · analyst developer

I want to print a GCODE which is on my website directly on S5 without any interface, Is it possible? Do we have any API for this? Could you please help me with this?

  • Link to post
    Share on other sites

    Posted · analyst developer

    You can do it like Cura and send it to the Cura Connect queue with:

    http://<IP_OF_YOUR_PRINTER>/cluster-api/v1/print_jobs/

    (where <IP_OF_YOUR_PRINTER> is the IP address of a Cura Connect group host)

     

    An example with curl for Windows would look like this:

    curl -X POST --header "Content-Type: multipart/form-data" --header "Accept: application/json" {"type":"formData"} -F "file=@%FILENAME%" %URL%

    (with the URL from above)

     

    There's a Swagger documentation on the printer if you call the base url  "/cluster-api/v1"

     

    Good luck!

     

     

    • Like 1
    Link to post
    Share on other sites

    Posted (edited) · analyst developer

    I am sure what you mentioned just above is the perfect answer, but due to lack of my development skills I am unable to implement it. Any chance you can link any tutorial or article or close example of this or this sort of implementation. I am using Laravel and newbie to it as well!

    I tried to find out on youtube or google but couldn't find any example.

    Just can't figure out where I shall be putting this code into my website. Sorry, I know it's bit of far low but that's my start.

    I shall be really thankful to you.

    Edited by zaaf77
  • Link to post
    Share on other sites

    Posted · analyst developer

    I am afraid, but without some development skills you will not be able to achieve it. 

    There is nothing which you can just put on your website, you have at least develop a php (or similar script) which runs on your webserver to upload the gcode file.

     

    But you cannot connect from a public website to your printer, because I guess your printer is on a private network. Therefore you have to create a VPN network between your Webserver and the printer. There are several possibilities and depends on your infrastructure.

     

    So I am sorry, but there is no recipe which you could just follow.

  • Link to post
    Share on other sites

    Posted · analyst developer

    Don't know, if it helps, but once upon a time someone developed a similar thing with PHP, but with the "old" API (that needs authentication).
    It should be rather easier in your case. Here is a link to the topic:

     

     

    • Like 2
    Link to post
    Share on other sites

    Posted · analyst developer
    16 hours ago, Smithy said:

    I am afraid, but without some development skills you will not be able to achieve it. 

    There is nothing which you can just put on your website, you have at least develop a php (or similar script) which runs on your webserver to upload the gcode file.

     

    But you cannot connect from a public website to your printer, because I guess your printer is on a private network. Therefore you have to create a VPN network between your Webserver and the printer. There are several possibilities and depends on your infrastructure.

     

    So I am sorry, but there is no recipe which you could just follow.

    Many thanks for your reply. Yes, I do understand someone should have to have some development background, thanks for your concern. I was looking for something like:

    and 

     

    just in case someone else turn-up like me a newbie. VPN is another good clue, thanks again!

     

  • Link to post
    Share on other sites

    Posted · analyst developer
    16 hours ago, tinkergnome said:

    Don't know, if it helps, but once upon a time someone developed a similar thing with PHP, but with the "old" API (that needs authentication).
    It should be rather easier in your case. Here is a link to the topic:

     

     

    Thanks for your help.

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    • Our picks

      • New here? Get ahead with a free onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 11 replies
    ×
    ×
    • Create New...