teachingtechYT.github.io icon indicating copy to clipboard operation
teachingtechYT.github.io copied to clipboard

Add built-in Octoprint support (v2)

Open ayufan opened this issue 3 years ago • 2 comments

This is based on #343. It removes a lot of limitations of https://github.com/teachingtechYT/teachingtechYT.github.io/pull/344.

This adds a built-in support for Octoprint / Klipper+Moonraker setups allowing to directly upload and start print. It stores data in browser and sends requests directly to the install.

image

Life is great compared to previous take https://github.com/teachingtechYT/teachingtechYT.github.io/pull/344:

  • It uses a POST form, so it does not require CORS
  • It does not show a great info once uploaded, as it shows raw JSON from the other service directly in browser
  • However, it works OOB without significant extra configuration

Test it here:

  • https://ayufan-research.github.io/teachingtechYT.github.io/calibration.html

ayufan avatar Aug 06 '21 17:08 ayufan

(I noticed some problems with this. Will update comment).

It appears that:

  • it works always fine when octoprint/moonraker is on https://
  • when using http:// it works fine on Safari/Firefox which shows dialog box about unsecure connection
  • when using http://it does not send a proper file on Chrome which shows a full page prompt that you need to Send anyway

ayufan avatar Aug 08 '21 09:08 ayufan

Nice! I was just coming to see if anyone had added something like this (though I was checking for raw GCODE over serial).

mikekasprzak avatar Mar 19 '24 23:03 mikekasprzak