Skip to content
tushgauravPublic

About

Your printer deserves a better screen.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Layer1

Layer1

A full-screen touch UI for OctoPrint

Layer1 home screen


Layer1 is a full-screen touch interface for OctoPrint. It gives any printer the kind of built-in display you'd expect on a much newer machine. It was made for a 3.5" screen on the Raspberry Pi, and the layout grows to fill whatever it opens on: a 5" or 7" display, a tablet, or a phone turned sideways.

 

 

Features

  • Live camera with tap-to-fullscreen and a 3D G-code viewer
  • Print progress with layer gauge, time remaining, and ETA
  • Temperature control with quick presets (PLA, PETG, TPU, ABS) and a keypad
  • Temperature graphs: a 10-minute sparkline on each heater; tap it for nozzle and bed over 5, 10 or 30 minutes, and drag to read any moment
  • File browser with slicer thumbnails, folders, sort options, and grid/list view
  • Jog controls for XY, Z (bed), and extruder with configurable steps
  • Filament management: load, unload, and purge with Bowden-length support
  • Tune while printing: speed modes, flow rate, and part fan
  • Print history: every print that finished, failed, or was stopped, with totals and Print Again (earlier prints are imported from OctoPrint)
  • Maintenance reminders: tasks like oiling the Z screw or checking belts, each due after so many hours of printing; a dot on More when one is due, and Mark Done to start its count again
  • Lock screen: shows the print big from across the room; hold to unlock, with optional auto-lock after 1, 5, or 15 minutes
  • Print finished card: a camera photo of the part, time taken vs. the estimate, filament used, bed cool-down, and Print Again
  • Screen sleep: goes dark after 2–30 minutes without a touch; a tap wakes it, and so does a print finishing, failing, or pausing
  • Network page: tap the Wi-Fi icon for Wi-Fi (name, signal bars) or Ethernet (link speed) details and the IP, plus QR codes that open OctoPrint and Layer1 on your phone
  • Dark and light themes optimized for small SPI panels
  • Fully offline: fonts, icons, and assets are all bundled

How it works

Raspberry Pi (OctoPi)
├── 3.5" SPI screen ← X11 (no desktop) ← Chromium kiosk
│                       └── http://127.0.0.1/plugin/layer1/
├── OctoPrint + Layer1 plugin (serves the touch UI)
│     └── REST API + push socket, authenticated via app key
└── USB → Your 3D printer

The plugin only serves static files. Every printer action goes through OctoPrint's normal API, so permissions, safety checks, and your existing plugins all still apply.

Quick start

Try it on your PC (no printer needed):

cd octoprint_layer1/static
python -m http.server 8765
# Open http://localhost:8765/index.html?demo=printing

Resize the window to see the layout adapt. At 480×320 you get exactly what the 3.5" screen shows.

Install on the Pi. Install the plugin from OctoPrint's Plugin Manager, then run the one command shown under Settings → Layer1. The full guide is at layer1.nodebench.com/docs.

Project structure

octoprint_layer1/      The OctoPrint plugin; static/ is the touch UI itself, pi_setup/ the
                       Pi installer (screen driver, kiosk service, diagnostics)
pyproject.toml         Plugin packaging (pip installs from the repo root)
tools/                 deploy.ps1 (Windows → Pi over SSH), install-plugin.sh, build-icons.mjs, serve.py
docs/                  Developer notes, screenshots
extras/layer1.md       Draft listing for the OctoPrint Plugin Repository
marketing/             The website and user docs (layer1.nodebench.com)

Development

  • UI: http://<octopi>/plugin/layer1/

  • Config: ~/.octoprint/data/layer1/config.json, created on first load. The keys are listed in the settings docs.

  • History: ~/.octoprint/data/layer1/history.json holds prints that ended. It is seeded once from OctoPrint's per-file print logs and served at /plugin/layer1/history.

  • Maintenance: ~/.octoprint/data/layer1/maintenance.json holds when each task's count started. The hours come from the history; the state is served at /plugin/layer1/maintenance.

  • Dev server: python tools/serve.py [port] (default 8080) serves octoprint_layer1/static/ without caching and with the custom 404 page. Open index.html?demo.

  • Icons: node tools/build-icons.mjs regenerates static/js/icons.js from a pinned Lucide version. To add one, put ourName: 'lucide-name' in that script's ICONS list.

  • Checks: every push and pull request is scanned with the rules of octoscanner, the static checks OctoPrint's plugin reviewers run (.github/workflows/octoscanner.yml). To run the same scan locally, check out octoscanner at the commit pinned there, then:

    pip install semgrep
    semgrep scan --config /path/to/octoscanner/rules --error --metrics=off --no-rewrite-rule-ids .

    A finding that isn't a problem gets # nosemgrep: RULE-ID on its line, with the reason.

License

Layer1 is licensed under the GNU Affero General Public License v3.0 or later, the same license as OctoPrint.

Geist fonts: SIL OFL 1.1 · Lucide icons: ISC

About

Your printer deserves a better screen.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages