Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.
/ ble-bridge Public archive

Bluetooh Low Energy to MQTT bridge for Raspberry Pi3

License

Notifications You must be signed in to change notification settings

ciotlosm/ble-bridge

Repository files navigation

BLE to MQTT

Bluetooh Low Energy to MQTT bridge for Raspberry Pi3

Setup

Get the project and install required dependencies

git clone [email protected]:ciotlosm/ble-bridge.git
cd ble-bridge
npm install

Install some pre-required packages

sudo apt-get update
sudo apt-get install -y libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev

Update your configuration by using the example

cp ble-bridge.json.example ble-bridge.json

Update ble-bridge.json to fit your mqtt settings

"mqtt": {
    "host": "mqtts:https://example.duckdns.org",
    "options": {
        "username": "example_user",
        "password": "example_pass"
    }
}

Manual startup

./index.js

Autostart

Copy ble-bridge.service file to /etc/systemd/system/ble-bridge.service and then:

sudo systemctl enable ble-bridge.service
sudo systemctl start ble-bridge.service

Notes

This project was inspired by two other projects:

About

Bluetooh Low Energy to MQTT bridge for Raspberry Pi3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published