Martin Hohenberg 17097061c3 Log filament usage to FilamentDB when starting a job
- filamentdb.get_ams_slots(): parses /ams/ HTML to extract slot, material,
  color, weight_remaining_g, roll_id for each loaded AMS slot
- filamentdb.find_matching_ams_roll(): filters by material+color (case-insensitive),
  picks the roll with least filament remaining
- filamentdb.log_print_on_roll(): POSTs to /rolls/{id}/prints
- start_job: after setting job to printing, looks up AMS, computes weight
  (math.ceil of estimate), logs against matching roll, writes result to job log
- Verified parser against live AMS: PLA Black → slot 3 (30g) over slot 1 (1000g)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-18 22:59:33 +02:00
2026-06-18 22:17:55 +02:00

POPS — Printing Operations Production System

A web-based production management system for 3D print farms.

Features

  • Printer overview — see all printers and their current status at a glance
  • Job queue — track what is printing now and what is in the pipeline
  • Status updates & to-do lists — stay on top of ongoing work
  • Filament database — connect to and manage your filament inventory
  • Price calculator — calculate job costs
  • Print log — keep a history of completed print jobs

Stack

  • Backend: FastAPI
  • Frontend: Web UI (served by FastAPI)
  • Database: MySQL (managed via Alembic migrations)
  • Deployment: Docker

Getting Started

Prerequisites

  • Docker & Docker Compose
  • A MySQL database instance

Run

docker compose up

The application will be available at http://localhost:8720.

Database Migrations

alembic upgrade head
Description
No description provided
Readme 419 KiB
Languages
Python 54.1%
HTML 45.3%
Mako 0.4%
Dockerfile 0.2%