Adding new model to storage list from LCD app

Hi.
I'd like to realize adding new file (model) to Repetier-Server storaged models list.
I've not found API smth like
addNewModelToGroup( string modelPath, string groupName )
Is it possible to do this in a simple way from LCD application?

Comments


  • Currently you can only change the group in the info dialog of the web frontend.

    Moving would use this:

    moveModelFileToGroup(

    Parameter: groupName (string) = Group name to delete, id = file id to move.

    Response

    { "ok": true }

    Moves a g-code model file with given id to a existing group groupName. Returns ok = true/false depending on success. Triggers "jobsChanged" event to notify all connected clients about the change.

    While uploading you do it like this:

    model

    This group handles g-code files stored in the model list (in contrast to print list). The following url shows how to upload it. The file should be in parameter filename. Format is multipart/form-data.

    http://localhost:3344/printer/model/<slug>?a=upload&sess=<session key>&name=<file name>&group=<groupname>



  • Nice, thanx.
    Now all is fine.
    Maybe some will need it (just chande your printer name and apikey value):
    <form enctype="multipart/form-data" method="post" action="/printer/model/Printer_Name"> 
    <input type="hidden" name="a" value="upload" />
    <input type="hidden" name="apikey" value="da5b3116-f21b-421d-a450-785cf11a27eb" />                         
    <input type="file" name="name" /> 
    <input type="hidden" name="group" value="default"> 
    <input type="submit" value="SEND" />
    </form>


  • The new model working very well on LCD app. Get Latest version of LCD app from Vshare store.
Sign In or Register to comment.