From 4dc33d352b801342b0f8b86543b2bae1d2de60ae Mon Sep 17 00:00:00 2001 From: Soler91 Date: Sun, 4 Jan 2026 20:09:02 -0400 Subject: [PATCH] add bens claude mesh visualizer (https://github.com/suchmememanyskill/bens-claude-cc-mesh-visualiser) and autoload mesh from symlink --- oc-patches/add-mesh-visualizer/mesh.html | 602 ++++++++++++++++++++++ oc-patches/add-mesh-visualizer/patch.sh | 10 + oc-patches/add-mesh-visualizer/patch.toml | 4 + oc-patches/add-mesh-visualizer/rc.local | 3 + 4 files changed, 619 insertions(+) create mode 100644 oc-patches/add-mesh-visualizer/mesh.html create mode 100644 oc-patches/add-mesh-visualizer/patch.sh create mode 100644 oc-patches/add-mesh-visualizer/patch.toml create mode 100644 oc-patches/add-mesh-visualizer/rc.local diff --git a/oc-patches/add-mesh-visualizer/mesh.html b/oc-patches/add-mesh-visualizer/mesh.html new file mode 100644 index 0000000..f09ed00 --- /dev/null +++ b/oc-patches/add-mesh-visualizer/mesh.html @@ -0,0 +1,602 @@ + + + + + + + Centauri Carbon Bed Mesh Visualizer + + + + + +
+

Centauri Carbon Bed Mesh Visualizer

+ +
+
+

Instructions:

+
    +
  1. Plug a USB drive into your PC
  2. +
  3. Copy M8803.gcode to your USB drive
  4. +
  5. Eject the USB drive from your PC
  6. +
  7. Plug the same USB drive into your Centauri Carbon
  8. +
  9. Go to the files menu and print M8803.gcode
  10. +
  11. Unplug the USB drive after clicking finish
  12. +
  13. Plug the same USB drive back into your computer
  14. +
  15. Upload printer.cfg from the USB drive to the website
  16. +
+
+
+ + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/oc-patches/add-mesh-visualizer/patch.sh b/oc-patches/add-mesh-visualizer/patch.sh new file mode 100644 index 0000000..8211166 --- /dev/null +++ b/oc-patches/add-mesh-visualizer/patch.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ $UID -ne 0 ]; then + echo "Error: Please run as root." + exit 1 +fi + +set -e + +cp "$CURRENT_PATCH_PATH/mesh.html" "$SQUASHFS_ROOT/app/resources/www/mesh.html" \ No newline at end of file diff --git a/oc-patches/add-mesh-visualizer/patch.toml b/oc-patches/add-mesh-visualizer/patch.toml new file mode 100644 index 0000000..af509fd --- /dev/null +++ b/oc-patches/add-mesh-visualizer/patch.toml @@ -0,0 +1,4 @@ +id = "add-mesh-visualizer" +name = "Add Mesh Visualizer" +after = ["base"] +compatible_versions = ["*"] \ No newline at end of file diff --git a/oc-patches/add-mesh-visualizer/rc.local b/oc-patches/add-mesh-visualizer/rc.local new file mode 100644 index 0000000..6021a18 --- /dev/null +++ b/oc-patches/add-mesh-visualizer/rc.local @@ -0,0 +1,3 @@ +if [ ! -e /app/resources/www/printer.cfg ]; then + ln -s /board-resource/printer.cfg /app/resources/www/printer.cfg +fi \ No newline at end of file