diff --git a/.travis.yml b/.travis.yml index f87f339..8989459 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,8 +5,6 @@ node_js: - "10" - "9" - "8" - - "7" - - "6" cache: directories: diff --git a/Dockerfile b/Dockerfile index 783ef03..70e6f95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,5 +11,5 @@ RUN npm install ## link dev code RUN npm link /usr/src/alexa-node/ -USER node-red +# USER node-red diff --git a/alexa/alexa-helper.js b/alexa/alexa-helper.js index f29a522..ecb1f39 100644 --- a/alexa/alexa-helper.js +++ b/alexa/alexa-helper.js @@ -1,18 +1,15 @@ 'use strict'; module.exports = { - hubPort: ( process.env.ALEXA_PORT != undefined - && + hubPort: ( process.env.ALEXA_PORT != undefined && parseInt(process.env.ALEXA_PORT) - ) - || 60000, + ) || + 60000, controllerNode: undefined, - isDebug: ( process.env.DEBUG - && + isDebug: ( process.env.DEBUG && process.env.DEBUG.indexOf('node-red-contrib-alexa-home') > 0 - ) - || false, + ) || + false, bri_default: process.env.BRI_DEFAULT || 254, - maxItemCount: 20, prefixUUID: 'f6543a06-da50-11ba-8d8f-', }; diff --git a/alexa/alexa-home-controller.html b/alexa/alexa-home-controller.html index a54a62e..37ed9fc 100644 --- a/alexa/alexa-home-controller.html +++ b/alexa/alexa-home-controller.html @@ -9,6 +9,11 @@ Port +