home-assistant-libs / pyprusalink Goto Github PK
View Code? Open in Web Editor NEWPython library to communicate with PrusaLink
License: Apache License 2.0
Python library to communicate with PrusaLink
License: Apache License 2.0
The library doesn't include the algorithm
and opaque
fields in Authorization
header as required by the spec.
Authorization: Digest username="[redacted]", realm="Administrator", nonce="[redacted]", uri="/api/version", response="[redacted]"
This causes PrusaLink on MK3 return 401 and log poorwsgi[647]: ERROR: Digest: algorithm None not equal to MD5-sess {error():215}
.
I'd suggest replacing the digest auth implementation with a proven existing library.
Edit: httpx
looks like a good candidate. It's being used by the generic camera HA integration for example.
Hi,
I am following up on the comment I created here and creating a ticket in order to have more visibility for other people facing the same problem.
I think it could be nice to specify this library only works with Prusa Mini now.
Currently, I can't connect to my Prusa MK3S and Raspberry Pi Zero because the code of the API is absolutely not the same.
We have:
API for PrusaLink (MKx models) is defined here: https://github.com/prusa3d/Prusa-Link/blob/master/prusa/link/web/main.py
Both have the same name but target completely different machines and architecture, absolutely nothing says that PrusaLink version 2 for MK3S and consort will have the same format, that's why it would be good to indicate additional information about it.
In the end, it would be ideal to support both, having an MK3S, I can give you a hand.
hi i have an mk3s+ , now i have install in my raspi zero 2 this: https://github.com/prusa3d/Prusa-Link
it´s working good but i can not use it with home assistant have anyone an idea? thanks
i have this error in the log: 2022-12-03 11:32:48.048 ERROR (MainThread) [homeassistant.components.prusalink.config_flow] Could not connect to PrusaLink: 403, message='Forbidden', url=URL('http://192.168.178.**/api/version')
{"api": "0.9.0-legacy", "server": "0.7.0rc2", "original": "PrusaLink I3MK3S", "text": "PrusaLink 0.7.0rc2", "firmware": "3.12.0-RC1-5576", "sdk": "0.7.0rc2", "capabilities": {"upload-by-put": true}, "hostname": "prusa"}
is the plugin only comaptible with prusa mini? if so then it was misnamed :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.