Coder Social home page Coder Social logo

beaconmqtt's Introduction

BeaconAutomation

original code from https://github.com/bjaanes/BeaconMqtt

About

Android app to forward beacon events over MQTT or Webhooks (for home automation scenarios).

The basic idea behind the app is to allow you to integrate beacons into your home automation systems using MQTT or Webhooks.

In the app you can search for and add beacons. You can then configure an MQTT broker and/or Webhook broker that will be notified each time the beacons enter or exists the range of the phone.

There are a lot of configuration options like:

  • MQTT Authentication
  • MQTT Beacon Enter Topic
  • MQTT Beacon Enter Distance Topic
  • MQTT Beacon Exit Topic
  • MQTT Beacon Exit Distance Topic
  • Webhook URL + Content type + request method (POST/GET/PUT, ...)
  • Webhook Beacon Enter Payload
  • Webhook Beacon Enter Distance Payload
  • Webhook Beacon Exit Payload
  • Webhook Beacon Exit Distance Payload
  • Time between scans
  • Time spent on scans
  • Minimum distance to trigger an event
  • Notifications for debug purposes
  • Log on the app for debug purposes

Libraries used:

  • Eclipse MQTT
  • Android AltBeacon

Payload of MQTT Topics

All topics will have the following payload:

{
	uuid: "String - Beacon UUID",
	mac: "String - Beacon Bluetooth address,
	major: "String - Beacon Major",
	minor: "String - Beacon Minor",
	androidId: "String - Unique Android identification"
}

In addition, distance topics will have one extra property:

{
	distance: Number - current distance between Beacon and device
}

Payload of Webhook calls

You can add your own properties to the payload JSON used by Webhooks. In addition all payload will have the following JSON properties:

{
	uuid: "String - Beacon UUID",
	mac: "String - Beacon Bluetooth address,
	major: "String - Beacon Major",
	minor: "String - Beacon Minor",
	androidId: "String - Unique Android identification"
}

In addition, distance events will have one extra property:

{
	distance: Number - current distance between Beacon and device
}

Screenshots

Overview

Overview

Adding Beacons

Adding Beacons

Settings

Settings

Beacons Settings

Beacon Settings

MQTT Settings

MQTT Settings

Webhook Settings

Webhook Settings

Notifications

Notifications

Logs

Logs

beaconmqtt's People

Contributors

gjermundgaraba avatar ben8p avatar bphermansson avatar

Stargazers

cDR avatar  avatar Frank avatar

Watchers

James Cloos 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.