Skip to content

Nupke/Person_tracking_system

Repository files navigation

Person tracking system

About system

System that monitors people using ESP32 modules. The created system is able to detect people in real time using Bluetooth low energybased on the mean RSSI value. The system consists of three main blocks: applicationfor ESP32 module, server application, web interface. The created application for ESP32modules collects BLE data. The server application provides communication with the postgreSQL database for personal identification and API provisioning. The web interfaceserves as a tracking system that displays the person’s location in the room and forcommunication with the database

Configuration ESP32

Module building with the help of a smart house system ESP32

esphome:
  name: detection
  platform: ESP32
  board: esp-wrover-kit
wifi:
  ssid: "your wi-fi name"
  password: "password"
  manual_ip:
    static_ip: "static ip address"
    gateway: "###"
    subnet: "###"
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Detectionv2 Fallback Hotspot"
    password: "####"

captive_portal:

esp32_ble_tracker:

text_sensor:
  - platform: ble_scanner
    name: "BLE Devices Scanner"

mqtt:
  broker: "ip address your MQTT broker"
  on_message:
    - topic: detectionv1/sensor/ble_devices_scanner/state # your topic
      then:
      - logger.log: MQTT is connected! 
logger:
  level: VERBOSE
  logs:
    mqtt.component: DEBUG
    mqtt.client: ERROR
api:

ota:

Configuration MQTT BROKER

The project is used MQTT BROKER Mosquitto.

command to run MQTT BROKER in terminal

/usr/local/sbin/mosquitto -c /usr/local/etc/mosquitto/mosquitto.conf

Installation

1 Download repository from github

git clone git@github.com:Nupke/Person_tracking_system.git

2 Сonfigure file "config.py" 3 Configure virtual environment

source/bin/activate

4 Download requirements

pip install requirements.txt

5 Launch the application

flask run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published