Get gcode render image via API

edited December 2016 in Questions & Answers
Hi Roland,

I created a java library that handles the communications server via websocket.
I can get all the information of the printer via web socket , excellent API access, work well :)

Only missing information in my library is gcode render images, how to get it?

PS: report a little mistake in the documentation API : the command setLogLevel has an incorrect upper case character, I investigated long before finding out :)


Thank
Marco


Comments

  • There is no api call for images. They are used as images with a simple url, so all you need is calling the proper url whcih will only work when it is a pro/oem version. Link is build like that:

    "/dyn/render_image?q=" + queue + "&id=" + id + "&slug=" + slug + "&t=" + sz; // + "&tm=" + new Date().getTime();

    queue is "jobs" or "models" depending on the storage you view.
    id is id of model in job or model storage.
    sz = "l" for large, "m" for medium and "s" for small image.
    tm is for fixing cache issues but might not be necessary in java.

    Thanks for the setLogLevel bug. It is now fixed.
  • Work! Thanks !
Sign In or Register to comment.