Giter Club home page Giter Club logo

node-red-contrib-flic-buttons's Introduction

##node-red-contrib-flic-buttons

A Node-RED node to interact with the flic.io BLE buttons.

Based on the node-flic-buttons npm. This node requires the fliclib-linux-dist daemon to handle the low level comunication with the buttons. You will need to install this (and the correct version of bluez) before you start.

Buttons need to be paired before you can use this node at the moment. The best way to do this at the moment is to use the flic command that ships with the fliclib-linux package. The steps are as follows:

  • Ensure that bluetoothd and the daemon are running
  • run flic
  • type the command startScan
  • press the flic button (you may have to press and hold for 7 seconds to unlock if it has been previously paired)
  • type the command stopScan
  • type the command list, this will show all known flic.io buttons
80:E4:DA:70:XX:XX [Disconnected]
  • type connect [80:E4:DA:70:XX:XX] where [mac address is the button you want to pair]
  • you should now see something that looks like
Connected to: 80:E4:DA:70:XX:XX
Verified: 80:E4:DA:70:XX:XX
  • the button should now be paired

The node takes 2 config parameters

  • Host - this is the host running the flic.io daemon process, defaults to localhost
  • Port - the port for the daemon process, defaults to 5000

You shouldn't need to change these defaults unless you are doing something strange

The node emits a msg.payload that looks like this

{
  "deviceId":"80:E4:DA:70:XX:XX",
  "queued":false,
  "timeDiff":0,
  "isSingleClick":true,
  "isDoubleClick":false,
  "isHold":false
}

msg.topic is set to flic/ with the deviceId of the button appended to the end

node-red-contrib-flic-buttons's People

Contributors

hardillb avatar

Watchers

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