MaxVRAM / Bluetooth-Activity-Scanner

Reports surrounding Bluetooth device activity from a RPi4 as metrics to a local Prometheus server via push gateway, allowing remote aggregation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bluetooth Activity Scanner with Prometheus Node

Hardware: Raspberry Pi 4

Reports surrounding Bluetooth devices and aggregated change of individual BLE device signal each scan. It then sends the values to a local Prometheus server via push gateway.

  1. Clone the Repo:
git clone https://github.com/MaxVRAM/Bluetooth-Activity-Scanner.git && cd Bluetooth-Activity-Scanner
  1. Install the Python modules:
pip3 install -r requirements.txt
  1. Open ports:
sudo ufw allow 9090, 9091, 9100 proto tcp
  1. Deploy the Promethus stack:
docker-compose up -d
  1. Run the Python script:
python3 ble_activity.py

The server can be accessed via web brower, or as a datasource in Grafana: http://localhost:9090

About

Reports surrounding Bluetooth device activity from a RPi4 as metrics to a local Prometheus server via push gateway, allowing remote aggregation.


Languages

Language:Python 100.0%