Add OctoPrint/Moonraker remote send to laser export + CNCjs bridge tool#492
Open
clugtu wants to merge 1 commit into
Open
Add OctoPrint/Moonraker remote send to laser export + CNCjs bridge tool#492clugtu wants to merge 1 commit into
clugtu wants to merge 1 commit into
Conversation
Adds a 'send to host' panel in the laser export modal that posts gcode directly to an OctoPrint or Moonraker endpoint. Enabled via the exportOcto controller setting. Host and API key persist in localStorage. Also adds tools/cncjs-bridge — a zero-dependency Node.js shim that accepts OctoPrint-format multipart uploads from Kiri and forwards them to CNCjs's /api/gcode endpoint, bridging the two without modifying either tool's server. Fixes optional chaining on navigator.serviceWorker in boot path. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
exportOctocontroller preference. Host and API key persist in localStorage.tools/cncjs-bridge— a zero-dependency Node.js shim that accepts Kiri's OctoPrint-format multipart upload and forwards gcode to CNCjs's/api/gcodeendpoint, bridging the two tools without modifying either server.docs/kiri-moto/integrations.md.navigator.serviceWorkerin the boot path.Test plan
exportOctoin preferences, open laser export dialog — verify Send to Host panel appearshttp://localhost:5310, export a laser job — verify gcode arrives in CNCjsnode tools/cncjs-bridge/bridge.jsand confirm it starts on port 5310🤖 Generated with Claude Code