GithubHelp home page GithubHelp logo

germanbluefox / iobroker.ble Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alcalzone/iobroker.ble

1.0 2.0 0.0 2.68 MB

Monitor Bluetooth Low Energy beacons

License: MIT License

HTML 3.66% TypeScript 48.54% CSS 0.28% JavaScript 47.51%

iobroker.ble's Introduction

ioBroker.ble

Tests: Build Status

================

Monitor Bluetooth Low Energy (BLE) beacons and record their information. Currently, only recording advertised service data is supported. You can monitor which services are advertised by using the nRF Connect app (service data UUIDs). Connecting and reading/writing service chararcteristics will be supported in a future version.

Installation

Number of Installations Number of Installations This adapter needs additional libraries to compile. See https://github.com/sandeepmistry/noble#prerequisites for detailed instructions. On Raspberry Pi and similar, this should do it: sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin

If the adapter starts but won't connect to your bluetooth hardware, please check the info.driverState state in ioBroker. If it is unauthorized, you need to give node additional permissions. For Linux, this is as simple as

sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)

which requires libcap2-bin to be installed.

Configuration

If you have multiple bluetooth devices on your system, select the one to use from the dropdown. In the textbox below, enter all UUIDs of the advertised services you want to record (as found in the nRF Connect app).

Plugin system

The adapter supports extension via plugins. Those define which advertised services should be listened to and how to translate the data. The plugin structure is defined in https://github.com/AlCalzone/ioBroker.ble/blob/master/src/plugins/plugin.ts and an example of a working plugin is defined here https://github.com/AlCalzone/ioBroker.ble/blob/master/src/plugins/_default.ts

If you have any device transmitting specially encoded information via advertisements, feel free to create a PR with a new plugin for that.

Supported plugins

Changelog

0.7.3 (2019-04-05)

  • (AlCalzone) Add MiTemperature watch with E-Ink display

0.7.2 (2019-04-05)

  • (AlCalzone) Add 58:2d:34 as an alternative mac prefix for MiTemperature

0.7.0 (2019-02-05)

  • (AlCalzone) Support MaterializeCSS (Admin v3)
  • (AlCalzone) Support compact mode
  • (AlCalzone) Use @iobroker/testing for tests

0.6.0 (2018-12-23)

  • (AlCalzone) Add NodeJS 10 support
  • (AlCalzone) Add an option to disallow new devices

0.5.5 (2018-11-29)

  • (AlCalzone) Bugfix: Preserving object properties works again

0.5.3 (2018-11-23)

  • (AlCalzone) Cache objects for a short while instead of retrieving them from ioBroker all the time
  • (AlCalzone) Support negative temperatures from Xiaomi devices

0.5.2 (2018-03-28)

  • (AlCalzone) Fixed isHandling for the ruuvi-tag plugin

0.5.1 (2018-03-28)

  • (AlCalzone) Restored accidentally deleted mi-flora plugin.

0.5.0 (2018-03-27)

  • (JonasR & AlCalzone) Added support for the Ruuvi Tag with the ruuvi-tag plugin

0.4.2 (2018-03-27)

  • (AlCalzone) Fixed the parsing of temperature+humidity packets from the Xiaomi temperature sensor

0.4.1 (2018-03-24)

  • (AlCalzone) Forgot to load legacy mi-flora plugin
  • (AlCalzone) Fixed an error when a plugin defines no objects

0.4.0 (2018-03-24)

  • (zuvielx9 & AlCalzone) Support for all Xiaomi bluetooth sensors using the xiaomi plugin
  • (AlCalzone) reworked plugin system slightly

0.3.5 (2018-03-18)

  • (AlCalzone) Bugfix: Next attempt at preserving object properties like history and name

0.3.4 (2018-01-01)

  • (AlCalzone) Bugfix: Keep history settings by not overriding existing objects
  • (AlCalzone) Bugfix: When plugins return undefined, ignore the packet

0.3.3 (2017-11-24)

  • (AlCalzone) Enable logging of RSSI

0.3.2 (2017-09-27)

  • (AlCalzone) Add * wildcard for "all services"

0.3.1 (2017-09-27)

  • (AlCalzone) Bugfix: don't throw error when RSSI state doens't exist

0.3.0 (2017-09-27)

  • (AlCalzone) Support throttling of RSSI updates

0.2.2 (2017-09-27)

  • (AlCalzone) Bugfix: Only monitor services from enabled plugins

0.2.1 (2017-09-27)

  • (AlCalzone) Bugfix: last patch broke the service filtering

0.2.0 (2017-09-26)

  • (AlCalzone) Modularized the adapter code into a plugin system
  • (AlCalzone) Added Mi-Flora plugin

0.1.0 (2017-09-06)

  • (AlCalzone) Support selection of bluetooth devices

0.0.2 (2017-09-06)

  • (AlCalzone) Store more information, improved object structure.

0.0.1

  • (AlCalzone) initial release

License

The MIT License (MIT)

Copyright (c) 2017-2019 AlCalzone [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.ble's People

Contributors

alcalzone avatar apollon77 avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar zuvielx9 avatar

Stargazers

 avatar

Watchers

 avatar  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.