Prusa-Connect-SDK-Printer icon indicating copy to clipboard operation
Prusa-Connect-SDK-Printer copied to clipboard

Docs return 403 Forbidden

Open CommanderRedYT opened this issue 2 years ago • 17 comments
trafficstars

When trying to access the docs (https://connect.prusa3d.com/docs/), the server returns with 403 Forbidden.

CommanderRedYT avatar Jul 22 '23 15:07 CommanderRedYT

It's still not working @ondratu / @uzak / @TojikCZ / @josefprusa.

It would be great to have documentation available. I might be interested in implementing this in Home Assistant.

Skaronator avatar Oct 21 '23 08:10 Skaronator

Sorry, it has been decided that the Connect docs will remain closed

Also, please refrain from tagging absolutely everyone

TojikCZ avatar Oct 21 '23 09:10 TojikCZ

Sorry, it has been decided that the Connect docs will remain closed

So basically, happy reverse engineering!

CommanderRedYT avatar Oct 21 '23 11:10 CommanderRedYT

So, you provide an open source SDK but the API documentation remains closed? You know how stupid that is, right? You even write that it's a requirement to know the docs...

SchallerJe avatar Nov 17 '23 10:11 SchallerJe

I would love to see this reconsidered. I am looking at developing a PrusaConnect integration for HomeAssistant (I know there is a PrusaLink integration, but that does not allow controlling the printer), and having up to date docs and an SDK would be very helpful.

DiederikvandenB avatar Jan 04 '24 11:01 DiederikvandenB

Imo best thing to do is creating it ourselves by looking at requests being made by prusas software.

CommanderRedYT avatar Jan 04 '24 18:01 CommanderRedYT

I'm sorry, documentation is still not opened. We are working on, but i can't tell you when will be published, but will be.

ondratu avatar Jan 05 '24 07:01 ondratu

Having gone through the code for a bit, I don't think this SDK does what I would've hoped it'd do.

The printer sends a request to Prusa Connect every second, and if the response contains a command, the printer executes it. For instance, if you set the nozzle temperature in Connect, the Connect API sends a request to their server. The next time the printer sends a request to Connect, the response would be M104 S100 (setting the temperature to 100 celcius).

So currently I don't see a way to control the printer other than sending requests directly to Prusa Connect (other than running custom firmware on the printer). Authenticating with Connect currently is not really possible, as we cannot customize the OAuth2 settings, like a callback URL.

I would love to see a local-only way to control the printer, without having to go through the cloud. Any plans to implement this?

DiederikvandenB avatar Jan 13 '24 15:01 DiederikvandenB

Isn't PrusaLink the local only way of controlling printer?

PatrykDampc avatar Jan 15 '24 12:01 PatrykDampc

API specification for PrusaLink is in Prusa-Link-Web repository: https://github.com/prusa3d/Prusa-Link-Web/tree/master/spec

ondratu avatar Jan 15 '24 12:01 ondratu

The only thing PrusaLink is able to control is starting/stopping a print – as far as I can tell. I'd like to be able to do stuff like preheating nozzle/bed.

DiederikvandenB avatar Jan 18 '24 16:01 DiederikvandenB

Oh, didn't know exactly. I'm also waiting for prusa connect doc, so i could develop something myself for it, tried to reverse engineer requests from web but got tired of it quickly :(

PatrykDampc avatar Jan 18 '24 16:01 PatrykDampc

You can set temperature and xyz+e movement with the legacy API endpoints. Not sure why the new v1 API doesn't have that function yet but the legacy endpoints are still available: https://github.com/prusa3d/Prusa-Link-Web/blob/560f0d7da0a1bb7dcf3da1e8b6dd4b6b1fe60d2c/spec/openapi-legacy.yaml#L378

Skaronator avatar Jan 18 '24 19:01 Skaronator

Prusa link supports nearly 1:1 everything that Prusa Connect does. This is a ticket for Prusa Connect, i think Prusa Link related discussions should be moved into https://github.com/prusa3d/Prusa-Link-Web

CommanderRedYT avatar Jan 18 '24 19:01 CommanderRedYT

Never bothered checking the legacy endpoints. Thanks for pointing that out. I'll stop hijacking this thread now then :)

DiederikvandenB avatar Jan 23 '24 11:01 DiederikvandenB

I guess, I'll just bump that issue, so perhaps we can get some update about releasing docs for api?

PatrykDampc avatar Feb 19 '24 10:02 PatrykDampc

any news abbout giving public access to docs?

PatrykDampc avatar Mar 13 '24 12:03 PatrykDampc