-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: fix limitation of about 33 devices...
Signed-off-by: Martin Buchleitner <[email protected]>
- Loading branch information
Showing
9 changed files
with
977 additions
and
505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
FROM nodered/node-red-docker:slim-v8 | ||
FROM nodered/node-red-docker:slim-v10 | ||
|
||
COPY docker-package.json /usr/src/node-red/package.json | ||
COPY ./ /usr/src/alexa-node | ||
|
||
USER root | ||
|
||
RUN npm install \ | ||
&& npm link /usr/src/alexa-node/ | ||
## install custom deps | ||
RUN npm install | ||
|
||
## link dev code | ||
RUN npm link /usr/src/alexa-node/ | ||
|
||
USER node-red | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,8 @@ | ||
"use strict"; | ||
|
||
const alexa_controller = require('./alexa-home-controller'); | ||
|
||
module.exports = { | ||
hubPort: process.env.ALEXA_PORT != undefined && parseInt(process.env.ALEXA_PORT) || 60000, | ||
controllerNode: undefined, | ||
controllerDynamic: true, | ||
isDebug: process.env.DEBUG && process.env.DEBUG.indexOf("node-red-contrib-alexa-home") > 0 || false, | ||
bri_default: process.env.BRI_DEFAULT || 126, | ||
prefixUUID: "f6543a06-da50-11ba-8d8f-", | ||
HUE_USERNAME: "1028d66426293e821ecfd9ef1a0731df", | ||
nodeSubPath : "" | ||
} | ||
|
||
module.exports.formatUUID = function (lightId) { | ||
if (lightId === null || lightId === undefined) | ||
return ""; | ||
|
||
var string = ("" + lightId); | ||
return string.replace(".", "").trim(); | ||
bri_default: process.env.BRI_DEFAULT || 126, | ||
} | ||
|
||
module.exports.formatHueBridgeUUID = function (lightId) { | ||
if (lightId === null || lightId === undefined) | ||
return ""; | ||
var uuid = module.exports.prefixUUID; | ||
uuid += module.exports.formatUUID(lightId); | ||
return uuid; | ||
} | ||
|
||
|
Oops, something went wrong.