mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
Initialize HAP storage
This commit is contained in:
5
app.js
5
app.js
@@ -1,6 +1,7 @@
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var storage = require('node-persist');
|
||||
var hap = require('HAP-NodeJS');
|
||||
var uuid = require('HAP-NodeJS').uuid;
|
||||
var Bridge = require('HAP-NodeJS').Bridge;
|
||||
var Accessory = require('HAP-NodeJS').Accessory;
|
||||
@@ -17,8 +18,8 @@ if (!fs.existsSync(configPath)) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// Initialize persistent storage
|
||||
storage.initSync();
|
||||
// Initialize HAP-NodeJS
|
||||
hap.init();
|
||||
|
||||
// Start by creating our Bridge which will host all loaded Accessories
|
||||
var bridge = new Bridge('HomeBridge', uuid.generate("HomeBridge"));
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"ad2usb": "git+https://github.com/alistairg/node-ad2usb.git#local",
|
||||
"carwingsjs": "0.0.x",
|
||||
"elkington": "kevinohara80/elkington",
|
||||
"hap-nodejs": "git+https://github.com/nfarina/HAP-NodeJS#b1d5257",
|
||||
"hap-nodejs": "git+https://github.com/nfarina/HAP-NodeJS#96414ff",
|
||||
"harmonyhubjs-client": "^1.1.4",
|
||||
"harmonyhubjs-discover": "git+https://github.com/swissmanu/harmonyhubjs-discover.git",
|
||||
"mdns": "^2.2.4",
|
||||
|
||||
Reference in New Issue
Block a user