Jump to content

analyst developer


zaaf77

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
    • Our picks

      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
      • Ultimaker Cura 5.6 stable released
        Cura now supports Method series printers!
         
        A year after the merger of Ultimaker and MakerBotQQ, we have unlocked the ability for users of our Method series printers to slice files using UltiMaker Cura. As of this release, users can find profiles for our Method and Method XL printers, as well as material profiles for ABS-R, ABS-CF, and RapidRinse. Meaning it’s now possible to use either Cura or the existing cloud-slicing software CloudPrint when printing with these printers or materials
        • 48 replies
    ×
    ×
    • Create New...