Skip to content
Snippets Groups Projects
Verified Commit ee1655e2 authored by Erick Hitter's avatar Erick Hitter
Browse files

Begin converting to Flic API

parent 016c7766
No related branches found
No related tags found
No related merge requests found
{ {
"arp_interface": null, "flicd_ip": "127.0.0.1",
"flicd_port": 5551,
"home_assistant_host": "localhost", "home_assistant_host": "localhost",
"home_assistant_port": 8123, "home_assistant_port": 8123,
"home_assistant_proto": "http", "home_assistant_proto": "http",
......
...@@ -4,15 +4,23 @@ ...@@ -4,15 +4,23 @@
* LIBRARIES * LIBRARIES
*/ */
var fliclib = require( './vendor/fliclib-linux-hci/clientlib/nodejs/fliclibNodeJs' );
var request = require( 'request' ); var FlicClient = fliclib.FlicClient;
var FlicConnectionChannel = fliclib.FlicConnectionChannel;
var FlicScanner = fliclib.FlicScanner;
var request = require( 'request' );
/** /**
* CONFIGURATION & EVENT BINDING * CONFIGURATION & SETUP
*/ */
var config = require( './config.json' ); var config = require( './config.json' );
var client = new FlicClient( config.flicd_ip, config.flicd_port );
/**
* BUTTON BINDING
*/
Object.keys( config.buttons ).forEach( function( index ) { Object.keys( config.buttons ).forEach( function( index ) {
var buttonConfig = config.buttons[index]; var buttonConfig = config.buttons[index];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment