BLE and Slack Notification


How it works

HandsFree, Send message “in home” or “leaving” on slack.

obniz is monitoring BLE advertisements.
When people who has BLE ad App, obniz found it and notify it to program.
Then program calls SlackAPI.


<!DOCTYPE html>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
<script src="//"></script>
<script src=""></script>

<div id="obniz-debug"></div>

<button id=startbutton >start</button>
<button id=stopbutton >stop</button>
<h1><div id=results >Leaving</div></h1>

var status = "undefined";
var scanTime = 1;

var obniz = new Obniz("OBNIZ ID HERE");
 obniz.onconnect = async function () {
    obniz.ble.scan.onfinish = ((results) => {
        var find = "Leaving";
        for (key in results){
          var beacon = results[key].iBeacon();
          if (beacon){
            if (beacon.uuid === "10f86430-1346-11e4-9191-0800200c9a66"){
              find = "In home now";
     if(status === "undefined" || status !== find){
        var t = new Date();
        sendToSlack("" +  t.getHours() + ":" +( "00" + t.getMinutes()).slice(-2) + ":" + ("00"+t.getSeconds()).slice(-2) + "  " + find);
     status = find;
  function sendToSlack(msg){
    var url = ''; ;
    var data = {
      token: 'SLACK TOKEN HERE',
      channel: '#general',
      username: 'bot',
      text: msg

      type: 'GET',
      url: url,
      data: data,
      success: function (data) {

You will Get in Few Days

Circuit for Starter “obniz Board” is available on Amazon and other online stores.
You can get it at below

Our products and resellers


Visit our developer’s forum to discuss and discover technologies.



Feel free to contact out support and technical team.

Contact us