Hi tinkergnome,
thank you for your help so far. Slowly I am understanding better now (slowly).
So first of all it is not that I am not thinking about programming python. It is just that I haven´t had any experience in it without getting to run a program (timelapse.py) that I found somewhere and it helped alot understanding where a print failed. This I could get to run with some time but I did not programm it. So I litterally have had to look up what "put" or "get" means.
So I used the code that was displayed in your links and tried to start it (adding the correct ip-Adress of my printer).. and probabbly I miss out to change some other syntaxes of the code itself.
With that other program (timelapse.py) I had no big problems to implement that but here I see that I still need some more time with that...
Anyhow I am not giving up! There was another problem.. when I "copy/pasted" the lines for python. The editor did put the programme in only one line, which makes the overwiev very nasty. Is there a better way to copy the lines the way I see them in the link into a pyhton program?
Anyhow, all theses lines lead to beeing able to set the value "print", "pause" or "abort" pyhsically remotedly. Once I have this figured out correctly I still would like to know if there is a way to putting the "pause"-command into a shell that if executed pauses the print with no further personal handling. Because if it isn´ t, the idea to stop any print with the lack of filament would could not be stopped automatically (e.G. if every time the printer would demand an authorisation). So this remains for me the biggest question.
I have added the lines I copied from the remote-access-part an a screenshot of the result of on of the programms...
Greetings
Daniel
PS: Please feel free to help me understand, what changes I have to make to get those programms to work propperly (please leave out bad comments as I know that I don´ t know anything about programming)
PPS: I changed that extensions from .py to .log to be able to upload the files here...
Recommended Posts
tinkergnome 927
It doesn't lead to nowhere, it just needs a proper authorization (like all PUT and POST commands), that's all.
Some explanations about authorization (why and how) from the developer, in the link below.
https://community.ultimaker.com/topic/15604-inside-the-ultimaker-3-day-3-remote-access-part-2/
...and a second link about the correct syntax for the rest of the curl command:
https://community.ultimaker.com/topic/21062-api-print_jobstate-error-code-400/?do=findComment&comment=196861
Once you have an id/key combination, add the digest authorization to the (corrected) curl command line
curl -X PUT --digest --user YOUR_ID:YOUR_KEY ...
...and i guess you want to store id/key somewhere to use it for subsequent calls.
The Python script from the first link does this for you, but it's a bit crumbled since the last forum migration (as well as the links to other parts of the "Inside..." serie). Since you don't want to use Python anyway, i guess this part is not that important for you?
Link to post
Share on other sites