Skip to content

Failure Detection and Notifications

YwVeEiS edited this page Nov 30, 2026 · 1 revision

Failure Detection and Notifications

Failure detection

During a print, Plateful looks at the camera image every 20 s and lets the self-hosted Obico ML API grade it. Nothing goes to the internet. If it looks like spaghetti, you get a notification, and if you want, the print is paused. The first three minutes don't count.

  • Server: the Obico ML API as a container on port 3333, built from ml_api/Containerfile.cpu in the obico-server repository (the Docker Hub image is from 2019). Set ML_API_TOKEN. The docker-compose.yml in the repository has a ready-made service you can uncomment, see Installation.
  • Plateful: More → Plateful settings → Failure detection: the address (for example http://192.168.1.10:3333) and the token. "Test" grades a camera image.
  • Per printer: printer page → Failure detection: "Just tell me" or "Pause", sensitivity relaxed, normal or strict.

The ML API fetches each image from Plateful itself (port 8321 on your LAN). The image is available for 60 seconds at most, under a random address.

Notifications

More → Notifications turns on push notifications per device: print finished, problem, and pauses that didn't come from Plateful. On iPhone and iPad they only work from the web app on the home screen, and only over HTTPS. The Mac app and the Android app can't receive web push notifications.

Access keys

More → Access keys: keys (plf_…) for other programs, for example home automation or the MCP server. A key is shown only once and has the rights of your account. Up to 20 per account. Programs send it as Authorization: Bearer plf_….

Useful endpoints: GET /api/printers (printers with their state), /api/printers/<id>/cameras/main/snapshot.jpg and /api/printers/<id>/thumbnail.png.

Programs in a Docker network reach Plateful most easily at its LAN address (http://<your-server>:8320), not through a reverse proxy with an access list.

MCP server (AI assistants)

mcp/plateful_mcp.py lets AI assistants view printers and the queue, upload models, slice, print, pause and cancel. Starting and cancelling a print need a confirmation. It is best to use a separate account (user role) with its own access key:

claude mcp add plateful -e PLATEFUL_URL=https://plateful.example.com -e PLATEFUL_TOKEN=plf_… -- python3 /path/to/Plateful/mcp/plateful_mcp.py

Instead of PLATEFUL_TOKEN you can use PLATEFUL_USER and PLATEFUL_PASSWORD.

Clone this wiki locally