Giter Site home page Giter Site logo

Comments (5)

fieldOfView avatar fieldOfView commented on June 21, 2024

Adding a check for HTTPS to the "Manually added OctoPrint instance" dialog should be fairly straightforward. I'll see if I can add that somewhere this week.

The camera url is currently hardcoded, and would take more work to fix. I would like to fix that as part of #12, and get the URL from OctoPrint so you don't have to configure it twice.

About the plugin documentation... There is very little. I learned by example, and the OctoPrintPlugin is a fork of the UM3NetworkPlugin. But I was also contracted by Ultimaker to work on Cura for a year, so I am partly to blame for the lack of plugin documentation.

from cura-octoprintplugin.

computergeek125 avatar computergeek125 commented on June 21, 2024

Fair enough. I just found Ultimaker/Uranium so I have more to go off of to reverse engineer things now.

I'm currently working to see if I can get it working with text-based configuration in Cura.cfg.

from cura-octoprintplugin.

fieldOfView avatar fieldOfView commented on June 21, 2024

If you want to hack in the use of HTTPS, see https://github.com/fieldOfView/OctoPrintPlugin/blob/2.3/OctoPrintOutputDevice.py#L44. The hardcoded camera url is a couple of lines down

from cura-octoprintplugin.

computergeek125 avatar computergeek125 commented on June 21, 2024

The hack sort of worked. I found a few of errant byte arrays in OctoPrintOutputDevicePlugin.py#L63, plus another a few lines down (see #17). This was causing the system to automatically set the path of the OctoPrint server to "/", the default value, since it couldn't find the key (b'path' != 'path').

screenshot 2016-12-06 03 47 30

That's with hardcoding the https:// and fixing the bytearrays. I can press a few of the buttons and read the extruder temp, but I see a lot of spam on the log file for CRITICAL - /.../CrashHandler.py (show [24]): File "/.../cura/plugins/OctoPrintPlugin/OctoPrintOutputDevice.py", line 491, in _onRequestFinished I looked up that line number, and it referrs to acquiring the heated bed temperature of the printer (of which this printer has none). Not sure if that's interfering with anything yet.

Also, with relation to the "print to octoprint" button: it says that it uploaded and is ready to print, but the web interface of OctoPrint disagrees, and indicates that no new files were uploaded.

from cura-octoprintplugin.

fieldOfView avatar fieldOfView commented on June 21, 2024

@computergeek125, could you test this branch/pr:
#19
It adds a checkbox to use https instead of http to the manual instance dialog.

from cura-octoprintplugin.

Related Issues (20)

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.