Rytterfalk
Plate C · CodeInternal data platformPython · Raspberry Pi 5

Lager

From scheduled data collection to answers an AI can use. I built the pipeline, the database, the dashboard and the tools that connect them.

Illustration with made-up values · rows are stores, columns are products

From source
to answer.

The dashboard is the visible part. Most of the work sits underneath: collecting consistent data, keeping its history and making it useful.

  1. Collect

    Scheduled Python jobs read retail stock four times a day, starting with broad availability and then collecting exact counts.

  2. Store

    A database keeps the observations and daily snapshots, so the system can compare stock over time.

  3. Prepare

    Expensive calculations run ahead of the request. Cached results serve trends, rankings and summaries.

  4. Explore

    A JavaScript dashboard brings together stores, products, outlet items and changes in availability.

  5. Ask

    A unified API and an MCP server expose the same data to AI assistants, including Hubben.

The system
behind the screen.

Lager architecture: Python collection, snapshot history, cached queries and a unified API serving the web dashboard and MCP tools
Architecture illustrationCollection → history → API → dashboard & AI

What I built

Scheduled collection

Separate collection of general stock, exact quantities, outlet items and newly discovered products.

Historical comparisons

Snapshots make changes visible across products and stores, instead of showing only the latest number.

Prepared queries

Precomputed aggregates keep the dashboard responsive while collection and processing happen in the background.

One API

The front end and AI tools use a shared interface to the data, rather than maintaining separate collection pipelines.

MCP for assistants

A Python implementation built with the standard library lets assistants query stock in ordinary language.

A complete working system

Collection, storage, processing and presentation run together on a Raspberry Pi 5 that I maintain at home.

Under the hood