I am trying to upload Gcode to the server with a python script/websocket but I can't seem to get it to work.
I have sucessfully logged into the server via websocket and I can ping the server, move the printer etc. Uploading the file through the GUI also works.
The Websocket command that I am using is:
{"action":"importURL","data":{"folder":"visitenkarten","files":{"name":"newfiletoprint","url":'+Folderstring+',"job":true} },"printer":"testdrucker","callback_id":548}
where Folderstring is the Folderpath. I have tried to use / instead of \ but wasn't sucessful.
Folderstring='"folder://I:\Uni\Hochschule\PA_Visitenkarten\CFFFP_Visitenkarte_duenn.gcode"'
The server gives the following response:
{"callback_id":548,"data":{"msgId":"5f02f5e8-c801-4b1a-ad99-16831c1dc45c","ok":true},"session":"86!i%U6509!CIDPeLF44w!wI1o4Lmj7e"}
and then sends
{"callback_id":-1,"data":[{"data":{"finished":true,"msgId":"5f02f5e8-c801-4b1a-ad99-16831c1dc45c","ok":false,"progress":0.0},"event":"progressUpdate"}],"eventList":true}
Can anyone help with this?