mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-23 05:10:56 +00:00
25 lines
563 B
JavaScript
25 lines
563 B
JavaScript
import request from 'request';
|
|
|
|
// Demonstrate that we were loaded
|
|
console.log("Lockitron provider loaded!");
|
|
|
|
module.exports = {
|
|
|
|
config: {
|
|
accessToken: {
|
|
type: 'string',
|
|
description: "You can find your personal Access Token at: https://api.lockitron.com",
|
|
required: true
|
|
}
|
|
},
|
|
|
|
validateConfig: function(callback) {
|
|
|
|
// validate the accessToken
|
|
let accessToken = homebridge.config.get('homebridge-lockitron.accessToken');
|
|
|
|
// prove that we got a value
|
|
console.log(`Access Token: ${accessToken}`);
|
|
}
|
|
}
|