Closed J0han3s closed 2 years ago
How is the nodered installation running? within a docker instance or as process?
hI,
within docker as a container, behind NginX reverse Proxy
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Martin Buchleitner @.> Sent: Friday, October 1, 2021 6:19:14 AM To: mabunixda/node-red-contrib-alexa-home @.> Cc: gkchim @.>; Author @.> Subject: Re: [mabunixda/node-red-contrib-alexa-home] Alexa devices not found (#104)
How is the nodered installation running? within a docker instance or as process?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mabunixda/node-red-contrib-alexa-home/issues/104#issuecomment-931907162, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK3CPFCXQOLIY43SYJUAUVLUEVAFFANCNFSM5FDMVTUA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You must run the container with --network host
because docker cannot handle the ssdp/udp broadcast element. This is also valid for all the runtimes, so also for orchestrators likes kubernetes or nomad :(
that is also the reason I ended up running my installation on a raspi and just proxy the access via traefik load balancer.
thank you. I use portainer to manage my docker instances. do you know how I do this through portainer ?
can you point me to a link with instructions/a tutorial please.
thank you
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Martin Buchleitner @.> Sent: Friday, October 1, 2021 8:30:25 AM To: mabunixda/node-red-contrib-alexa-home @.> Cc: gkchim @.>; Author @.> Subject: Re: [mabunixda/node-red-contrib-alexa-home] Alexa devices not found (#104)
You must run the container with --network host because docker cannot handle the ssdp/udp broadcast element. This is also valid for all the runtimes, so also for orchestrators likes kubernetes or nomad :(
that is also the reason I ended up running my installation on a raspi and just proxy the access via traefik load balancer.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mabunixda/node-red-contrib-alexa-home/issues/104#issuecomment-931980393, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK3CPFAOV72CY7OPZQ2COHDUEVPRDANCNFSM5FDMVTUA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I assume you have to edit the advanced settings of portainer. there should be an entry: host on the networks tab/view
I have just moved it to the host network. and now the 'Amazon Echo Hub' in Node Red says underneath ' Unable to start on port 80'
Port 80 is my Nginx reverse proxy
in my Node Red Docker logs i see the below error:
,
node-red-docker@2.0.6 start /usr/src/node-red, node $NODE_OPTIONS node_modules/node-red/red.js $FLOWS "--userDir" "/data", , 1 Oct 09:45:12 - [info] , , Welcome to Node-RED, ===================, , 1 Oct 09:45:13 - [info] Node-RED version: v2.0.6, 1 Oct 09:45:13 - [info] Node.js version: v14.17.6, 1 Oct 09:45:13 - [info] Linux 5.10.0-0.bpo.8-amd64 x64 LE, 1 Oct 09:45:13 - [info] Loading palette nodes, 1 Oct 09:45:18 - [info] Settings file : /data/settings.js, 1 Oct 09:45:18 - [info] Context store : 'default' [module=memory], 1 Oct 09:45:18 - [info] User directory : /data, 1 Oct 09:45:18 - [warn] Projects disabled : editorTheme.projects.enabled=false, 1 Oct 09:45:18 - [info] Flows file : /data/flows.json, 1 Oct 09:45:18 - [warn] , , ---------------------------------------------------------------------, Your flow credentials file is encrypted using a system-generated key., , If the system-generated key is lost for any reason, your credentials, file will not be recoverable, you will have to delete it and re-enter, your credentials., , You should set your own key using the 'credentialSecret' option in, your settings file. Node-RED will then re-encrypt your credentials, file using your chosen key the next time you deploy a change., ---------------------------------------------------------------------, , 1 Oct 09:45:18 - [info] Server now running at http://127.0.0.1:1880/, 1 Oct 09:45:18 - [info] Starting flows, 1 Oct 09:45:18 - [info] Started flows, 1 Oct 09:45:18 - [error] Error: listen EACCES: permission denied 0.0.0.0:80, 1 Oct 09:46:59 - [error] Error: listen EACCES: permission denied 0.0.0.0:80,
try to set an environment variable ALEXA_PORT or change the configuration of the controller node settings.
Should i set this to ALEXA_PORT = 80?
configuration of the controller node settings. to a different port? that's not 80?
i changed the configuration of the controller node settings to another number, now it says Alexa Hub is online. i will try and discover divies on Alexa now
little luck yet.
I see in your doc for latest gen of alexa devices port has to be 80. I have an old gen echo and a new gen Echo. in the same house. should the discover still work
No luck discovering yet. this is my flow. Anything i have done wrong you can see?L
[ { "id": "373e0bcd.625e24", "type": "tab", "label": "Flow 1", "disabled": false, "info": "" }, { "id": "245783cc.6e10fc", "type": "debug", "z": "373e0bcd.625e24", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1290, "y": 640, "wires": [] }, { "id": "d73212da891aa831", "type": "amazon-echo-device", "z": "373e0bcd.625e24", "name": "Chair", "topic": "", "x": 1130, "y": 640, "wires": [ [ "245783cc.6e10fc" ] ] }, { "id": "60e5d97e9c244c0b", "type": "amazon-echo-hub", "z": "373e0bcd.625e24", "port": "9084", "processinput": 0, "discovery": true, "x": 310, "y": 520, "wires": [ [ "1c5b693a9a6b412a", "009cdf100288bbc9" ] ] }, { "id": "1c5b693a9a6b412a", "type": "link out", "z": "373e0bcd.625e24", "name": "Alexa Out", "links": [ "985d7c76540cf8ad" ], "x": 950, "y": 440, "wires": [], "l": true }, { "id": "985d7c76540cf8ad", "type": "link in", "z": "373e0bcd.625e24", "name": "Alexa in", "links": [ "1c5b693a9a6b412a" ], "x": 1210, "y": 420, "wires": [ [ "d73212da891aa831" ] ], "l": true }, { "id": "009cdf100288bbc9", "type": "debug", "z": "373e0bcd.625e24", "name": "firststep", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 520, "y": 340, "wires": [] } ]
Same Code but better formatting here:
[ { "id": "373e0bcd.625e24", "type": "tab", "label": "Flow 1", "disabled": false, "info": "" }, { "id": "245783cc.6e10fc", "type": "debug", "z": "373e0bcd.625e24", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 1290, "y": 640, "wires": [] }, { "id": "d73212da891aa831", "type": "amazon-echo-device", "z": "373e0bcd.625e24", "name": "Chair", "topic": "", "x": 1130, "y": 640, "wires": [ [ "245783cc.6e10fc" ] ] }, { "id": "60e5d97e9c244c0b", "type": "amazon-echo-hub", "z": "373e0bcd.625e24", "port": "9084", "processinput": 0, "discovery": true, "x": 310, "y": 520, "wires": [ [ "1c5b693a9a6b412a", "009cdf100288bbc9" ] ] }, { "id": "1c5b693a9a6b412a", "type": "link out", "z": "373e0bcd.625e24", "name": "Alexa Out", "links": [ "985d7c76540cf8ad" ], "x": 950, "y": 440, "wires": [], "l": true }, { "id": "985d7c76540cf8ad", "type": "link in", "z": "373e0bcd.625e24", "name": "Alexa in", "links": [ "1c5b693a9a6b412a" ], "x": 1210, "y": 420, "wires": [ [ "d73212da891aa831" ] ], "l": true }, { "id": "009cdf100288bbc9", "type": "debug", "z": "373e0bcd.625e24", "name": "firststep", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 520, "y": 340, "wires": [] } ]
,
node-red-docker@2.0.6 start /usr/src/node-red, node $NODE_OPTIONS node_modules/node-red/red.js $FLOWS "--userDir" "/data",
1 Oct 10:02:26 - [info] , , Welcome to Node-RED, ===================, , 1 Oct 10:02:26 - [info] Node-RED version: v2.0.6, 1 Oct 10:02:26 - [info] Node.js version: v14.17.6, 1 Oct 10:02:26 - [info] Linux 5.10.0-0.bpo.8-amd64 x64 LE, 1 Oct 10:02:27 - [info] Loading palette nodes, 1 Oct 10:02:31 - [info] Settings file : /data/settings.js, 1 Oct 10:02:31 - [info] Context store : 'default' [module=memory], 1 Oct 10:02:31 - [info] User directory : /data, 1 Oct 10:02:31 - [warn] Projects disabled : editorTheme.projects.enabled=false, 1 Oct 10:02:31 - [info] Flows file : /data/flows.json, 1 Oct 10:02:31 - [info] Server now running at http://127.0.0.1:1880/, 1 Oct 10:02:31 - [warn] , , ---------------------------------------------------------------------, Your flow credentials file is encrypted using a system-generated key., , If the system-generated key is lost for any reason, your credentials, file will not be recoverable, you will have to delete it and re-enter, your credentials., , You should set your own key using the 'credentialSecret' option in, your settings file. Node-RED will then re-encrypt your credentials, file using your chosen key the next time you deploy a change., ---------------------------------------------------------------------, , 1 Oct 10:02:31 - [info] Starting flows, 1 Oct 10:02:32 - [info] Started flows, 1 Oct 10:02:32 - [info] [server:Home Assistant] Connecting to http://192.168.1.42:8123, 1 Oct 10:02:32 - [info] [server:Home Assistant] Connected to http://192.168.1.42:8123
Can you use nginx to forward requests to the allocated port?
Hopefully the new implementation from #108 and #111 solve these problems
Hi I am trying to set this up, but having little luck.
My nodered installation sits behind an NGINX reverse proxy. does that effect anything.
on node red, it shows as the hub is online, but Alexa will not discover the new devicesi am creating on Node .
Home Assistant and Node Red are installed using docker