Automatically detects when users come and go from an office environment

How It Works

  • A MySQL database on the Pi holds a bluetooth ID and name for each person and indicates whether they are currently present or not.
  • A python 2.7 script loops on the Pi surveying to see if the users from the MySQL database are present, and updates the database when they enter or leave the bluetooth coverage area.
  • A local Apache server runs on the Pi and serves a php based website that reads from the MySQL database to display which users are currently present.


  • Hardware consists of a Raspberry Pi with a USB Bluetooth dongle connected to a local network.
Share this project: