skip to content
alanvdev
built
PYTHONFASTAPI

occupancy monitor

a sensor reports busy or free, a FastAPI service stores the history, and a desktop client charts it by day and by interval.

A three-piece system for telling whether a space is occupied. A sensor on the local network reports its state, a FastAPI service stores every change with its timestamp, and a desktop client reads the history and charts it.

It is a 2023 school project and the size shows: the API is two endpoints over one table. It is here because it is the only thing of mine that touches hardware.

The interesting part is not the state, it is the history

Whether it is busy right now is what the sensor says. What the system adds is the reading over time: occupancy per day, how long each interval lasted, and how many people walked in while it was occupied, which are, in fact, the lock's failures.