Page 1 of 1

Machine control panel issues

Posted: Tue Jul 18, 2023 5:07 am
by hdlbq
Hi,
I tried to use this interesting tool for the first time with version 5.1.
Previously, I used to save the gcode file, then upload it to the octoprint, and launch the print into it.
Unfortunately, I'm facing many issues:
- it seems to be impossible to save the API key, which is rather long and impossible to memorize,
- when I tried to add my printer as a new one, it is not found, even after I gave all the information: the control panel reaches on a 404 error, even if it is able to connect to the printer with the existing configuration,
Thanks for any help

Re: Machine control panel issues

Posted: Tue Jul 18, 2023 2:23 pm
by S3D-Jason
We have a whole collection of OctoPrint machines here, and we've had no problems connecting to each of them and saving the API key so that you only need to enter it once. I know many other customers are already using the feature as well without any issues.

What version of OctoPrint are you using?
What version of S3D are you using?
Is the printer available at the same IP address each time or does it keep changing?

Re: Machine control panel issues

Posted: Tue Jul 18, 2023 3:43 pm
by hdlbq
Hi,
Octoprint version : Version 1.3.6, and I can't change it, since it's a customized version made by Makergear.
Simplify3D version 5.1.1
The Ip address of the printer is always the same.
Actually, the problem disappears if I started by connecting the printer in a first step, and try to send the gcode file directly from S3D in a second step.
If I tried to print directly to my (disconnected) printer from S3D, the Machine control Panel asks me for the API Key.

Re: Machine control panel issues

Posted: Wed Jul 19, 2023 12:57 pm
by S3D-Jason
That OctoPrint version is about 6 years old, so it would certainly help to move to a new version. However, we have tested with old OctoPrint versions as well which worked fine so there might be something else wrong.

Can you post the full output from the communication log when you connect to the printer and try to send some commands?

Re: Machine control panel issues

Posted: Mon Jul 24, 2023 3:37 pm
by hdlbq
Hi,
since the log of the communication displayed in the Machine Control Panel window is rather long (5000 lines), I compressed it.
It is joined to this reply

Re: Machine control panel issues

Posted: Tue Jul 25, 2023 2:38 am
by hdlbq
Hi,
I join the log of the connection, to help you.

Re: Machine control panel issues

Posted: Tue Jul 25, 2023 2:32 pm
by S3D-Jason
That looks like the OctoPrint HTML page. I'm asking for the Communication log from within Simplify3D. Go to Tools > Machine Control Panel, click on the Communication tab, and then copy and paste the entire contents of that window after you try to connect to the printer.

Re: Machine control panel issues

Posted: Wed Jul 26, 2023 4:01 am
by hdlbq
Hi,
That's exactly what I have done.
I joined the end of the log, that shows clearly the missing API.
I attached a screen copy showing that
________________________________________________________________
Connection successful!
File upload started...
SENT: GET http://192.168.0.24:80/api/version
READ: No API key provided
SENT: GET http://192.168.0.24:80/api/version
READ: {
"api": "0.1",
"server": "1.3.6"
}
SENT: GET http://192.168.0.24:80/api/printer
READ: {
"sd": {
"ready": false
},
"state": {
"flags": {
"closedOrError": false,
"error": false,
"operational": true,
"paused": false,
"printing": false,
"ready": true,
"sdReady": false
},
"text": "Operational"
},
"temperature": {
"bed": {
"actual": 26.82,
"offset": 0,
"target": 0.0
},
"tool0": {
"actual": 26.82,
"offset": 0,
"target": 0.0
},
"tool1": {
"actual": 26.56,
"offset": 0,
"target": 0.0
}
}
}
SENT: POST http://192.168.0.24:80/api/files/local {"path": "", "print": "true", "file": 179461 bytes}
READ: No API key provided

Re: Machine control panel issues

Posted: Wed Jul 26, 2023 7:19 am
by S3D-Jason
OctoPrint keeps responding and saying "No API key provided". Did you provide the correct API key when the popup was displayed in S3D?

Re: Machine control panel issues

Posted: Wed Jul 26, 2023 7:52 am
by hdlbq
Yes.
And I don't provide any API key when I connect without lauching any printing.