Coder Social home page Coder Social logo

pyprusalink's People

Contributors

agners avatar balloob avatar dependabot[bot] avatar martinhjelmare avatar skaronator avatar the-ress avatar tjni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyprusalink's Issues

Nonstandard digest auth implementation causes issues with MK3

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.

Only works with Prusa Mini and SLS, not MKx models

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:

  • https://github.com/prusa3d/Prusa-Link PrusaLink is a compatibility layer between 8-bit Prusa 3D printers (MK2.5, MK2.5S, MK3, MK3S and MK3S+) and PrusaConnect, which lets you control and monitor your 3D printer from anywhere.
  • https://github.com/prusa3d/Prusa-Firmware-Buddy This repository includes source code and firmware releases for the Original Prusa 3D printers based on the 32-bit ARM microcontrollers like Prusa Mini.

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.

no connection

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.