Read the statement by Michael Teeuw here.
MMM-AlexaControl or MMM-AlexaOn/Off setup
-
This post is deleted! -
@dave_ weird… ok, re-enable AlexaControl (change to disabled: false, ) then restart MM and show me the messages again
-
-
@dave_ and the MM messages? yes, electron should be using 1900 now for alexacontrol
-
-
@dave_ ok, as expected… the extra image u posted this morning was from some other time
now, if you do alexa discover devices (phone app is more (bottom right), other, discover devices)
-
@sdetweil tried that still no luck
-
@dave_ ok, need to edit a file to turn on some debugging
nano ~/MagicMirror/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js
change lines 92-94, the console.log lines below
change fromudpServer.on('message', (msg, rinfo) => { //debug(`<< server got: ${msg} from ${rinfo.address}:${rinfo.port}`); //console.log('Search request from ' + util.inspect(rinfo)); //console.log(getMask(rinfo.address, '255.255.255.0'));
to
udpServer.on('message', (msg, rinfo) => { console.log(`<< server got: ${msg} from ${rinfo.address}:${rinfo.port}`); console.log('Search request from ' + util.inspect(rinfo)); console.log(getMask(rinfo.address, '255.255.255.0'));
-
@sdetweil my internet went of for a bit I’ll do this asap and let you know!
-
@dave_ I also added another line of debug
let response = function(ipaddr) { let deviceresp = []; let responses = []; for(let i = 0; i < = devices.length - 1; i++) { console.log('responding for port='+devices[i].port) // this line
and I see this output from the MM console , from alexa discover devices
[2020-08-05 11:31:33.543] [LOG] << server got: M-SEARCH * HTTP/1.1 HOST: 239.255.255.250:1900 MAN: "ssdp:discover" MX: 1 ST: urn:dial-multiscreen-org:service:dial:1 USER-AGENT: Chromium/78.0.3904.108 Linux from 192.168.2.126:57706 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:93 Socket.<anonymous>) [2020-08-05 11:31:33.545] [LOG] Search request from { address: '192.168.2.126', family: 'IPv4', port: 57706, size: 167 } (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:94 Socket.<anonymous>) [2020-08-05 11:31:33.548] [LOG] 192.168.2.0 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:95 Socket.<anonymous>) [2020-08-05 11:31:33.550] [LOG] responding for port=16000 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response) [2020-08-05 11:31:33.552] [LOG] responding for port=16001 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response) [2020-08-05 11:31:33.553] [LOG] responding for port=16002 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response) [2020-08-05 11:31:33.553] [LOG] responding for port=16003 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response) [2020-08-05 11:31:33.553] [LOG] responding for port=16004 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response) [2020-08-05 11:31:33.553] [LOG] responding for port=16005 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response) (electron:23027): GLib-GIO-CRITICAL **: 11:31:34.172: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed [2020-08-05 11:31:34.549] [LOG] << server got: M-SEARCH * HTTP/1.1 HOST: 239.255.255.250:1900 MAN: "ssdp:discover" MX: 1 ST: urn:dial-multiscreen-org:service:dial:1 USER-AGENT: Chromium/78.0.3904.108 Linux from 192.168.2.126:57706 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:93 Socket.<anonymous>) [2020-08-05 11:31:34.549] [LOG] Search request from { address: '192.168.2.126', family: 'IPv4', port: 57706, size: 167 } (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:94 Socket.<anonymous>) [2020-08-05 11:31:34.549] [LOG] 192.168.2.0 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:95 Socket.<anonymous>) [2020-08-05 11:31:34.550] [LOG] responding for port=16000 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response) [2020-08-05 11:31:34.551] [LOG] responding for port=16001 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response) [2020-08-05 11:31:34.551] [LOG] responding for port=16002 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response) [2020-08-05 11:31:34.551] [LOG] responding for port=16003 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response) [2020-08-05 11:31:34.551] [LOG] responding for port=16004 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response) [2020-08-05 11:31:34.552] [LOG] responding for port=16005 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response)