Commit 0418d651 authored by Administrator's avatar Administrator 👑

init index.js

parent 190bc20f
Pipeline #5 failed with stages
var Accessory, hap, UUIDGen;
module.exports = function (homebridge) {
Accessory = homebridge.platformAccessory;
hap = homebridge.hap;
UUIDGen = homebridge.hap.uuid;
homebridge.registerPlatform("homebridge-slide-bridge", "slide-bridge", SlideBridge, true);
}
function SlideBridge(log, config, api) {
var self = this;
self.log = log;
self.config = config || {};
}
SlideBridge.prototype.configureAccessory = function (accessory) {
// Won't be invoked
}
SlideBridge.prototype.didFinishLaunching = function () {
self.log("Hello I am a running app");
}
{
"name": "slide-bridge",
"version": "0.0.1",
"name": "homebridge-slide-bridge",
"version": "0.0.2",
"description": "Slide bridge plugin for Homebridge : http://gitstash.nl/homebridge/homebridge-slide-bridge",
"license": "ISC",
"keywords": [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment