Giter Site home page Giter Site logo

pedroelbanquero / dln-ble-scanner-for-room-utilization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jutnhbr/dln-ble-scanner-for-room-utilization

0.0 0.0 0.0 370 KB

ESP32 MicroPython Project to scan for nearby Bluetooth Low Energy Devices to determine the room utilization.

JavaScript 37.90% Python 57.48% CSS 3.70% HTML 0.92%

dln-ble-scanner-for-room-utilization's Introduction

DLN Bluetooth Low Energy Scanner

ESP32 MicroPython Project to scan for nearby Bluetooth Low Energy Devices to determine the room utilization. Also contains a Webinterface that features:

  • MQTT Client Integration to receive data from ESP32 MicroController
  • InfluxDB Integration to write data to database
  • Responsive Nivo Charts Implementation to visualize data
  • Filter by Time Range and Time Window
  • ExpressJS Endpoints to retrieve data from InfluxDB

BLE Scanner Dependencies

  • Aioble - High Level Bluetooth Low Energy MicroPython Library
  • umqttsimple - MicroPython MQTT Client Library
  • uasyncio - MicroPython Library for asynchronous programming

BLE Scanner Features

  • Completly configurable via global config file
    • Scan Type (Active / Passive)
    • Scan Duration
    • Delay between scans results
    • Interval between scans
    • Filter (Address Type, RSSI, Connectable Status, Duplicates)
    • Optional Logging
  • After the ESP is started, it automatically establishes a WIFI and MQTT connection (if configured properly)
  • Automatically scans every X (configurable) minutes and publishes results via MQTT

BLE Scanner Prerequisites

  • ESP32 flashed with MicroPython
  • Local MQTT Broker running listening on TCP (for data transfer. The scanner still works without MQTT)
  • Access to WIFI
    ...... WIP

How to set up the ESP32

  1. Clone the Repo and copy all files except the webinterface directory to the Device
  2. Make sure to change the WIFI and MQTT constants references. Either use your own data (SSID, WIFI Key, MQTT Broker Address) directly in the variables or enter the corresponding values in constants.py (recommended) and insert them into the config.py.
  3. Check the config/config.py file and configure the scanner (Default Config works as well)
  4. Restart or Soft-Reboot the ESP32 (Ctrl+D)
    ... WIP

How to setup and use the Webinterface

  • Check the readme.md inside the Webinterface Directory

dln-ble-scanner-for-room-utilization's People

Contributors

jutnhbr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.