Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs return 403 Forbidden #265

Open
CommanderRedYT opened this issue Jul 22, 2023 · 17 comments
Open

Docs return 403 Forbidden #265

CommanderRedYT opened this issue Jul 22, 2023 · 17 comments

Comments

@CommanderRedYT
Copy link

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

@Skaronator
Copy link

Skaronator commented Oct 21, 2023

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.

@TojikCZ
Copy link
Contributor

TojikCZ commented Oct 21, 2023

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

Also, please refrain from tagging absolutely everyone

@CommanderRedYT
Copy link
Author

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

So basically, happy reverse engineering!

@SchallerJe
Copy link

SchallerJe commented Nov 17, 2023

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...

@DiederikvandenB
Copy link

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.

@CommanderRedYT
Copy link
Author

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

@ondratu
Copy link
Collaborator

ondratu commented Jan 5, 2024

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.

@DiederikvandenB
Copy link

DiederikvandenB commented Jan 13, 2024

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?

@PatrykDampc
Copy link

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

@ondratu
Copy link
Collaborator

ondratu commented Jan 15, 2024

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

@DiederikvandenB
Copy link

DiederikvandenB commented Jan 18, 2024

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.

@PatrykDampc
Copy link

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 :(

@Skaronator
Copy link

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

@CommanderRedYT
Copy link
Author

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

@DiederikvandenB
Copy link

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

@PatrykDampc
Copy link

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

@PatrykDampc
Copy link

any news abbout giving public access to docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants