Skip to content

Conversation

ayufan
Copy link
Contributor

@ayufan ayufan commented Aug 6, 2021

This is based on #343.
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.

Screen Shot 2021-08-06 at 16 51 06

Life is not that great though:

  • It requires configuring Octoprint or Moonraker by enabling CORS
  • It requires API key for Octoprint
  • If installation runs over http:// (which is majority of users) it requires running the website from http:// instead of https://
  • The above creates a complication as GitHub.io requires to always use https://. Usage of http:// is in general quite discouraged...
  • The custom domain can be configured which does allow usage of http://

Screen Shot 2021-08-06 at 16 45 54

You can see how it works here (deployed over GitHub Pages):

ayufan added 3 commits August 6, 2021 14:02
- Allow to specify used filename
- Output all settings as a comment on top of gcode
- Unify download buttons
- Allow to specify URL/API key
- Upload&Print directly
- Document what needs to be configured
This allows to send files without having
to configure CORS.
@ayufan
Copy link
Contributor Author

ayufan commented Aug 6, 2021

This is closed, as the solution was changed to use a hidden POST form.

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

Successfully merging this pull request may close these issues.

1 participant