Read the statement by Michael Teeuw here.
[MMM-Remote-Control] Can not access remote control module
-
@Mykle1 amazing, thanks!
-
@cruunnerr Thank you…it works now.
-
hmmm stuck. I get the create a config screen Heres what I have
var config = { address: "0.0.0.0", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "", "0.0.0.0", "::" to listen on any interface // Default, when address config is left out, is "localhost" port: 8080, ipWhitelist: [], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
then on my config
{ module: 'MMM-Remote-Control' // uncomment the following line to show the URL of the remote control on the mirror // , position: 'bottom_left' // you can hide this module afterwards from the remote control itself config: { apiKey: '' } },
thanks for helping the clueless rookie
-
you have mm listening on all adapters 0.0.0.0 which correct but the 2[] brackets of your ip whitelist the other side is completely empty.
What is your routers address? Usually its something like 192.168.1.1 if it was that then 192.168.1.0/24 would allow any local ip to access connected internally on your network
-
@stuartiannaylor tried adding my router info but not successful
-
yeah but you have wiped what there before have a look at :-
```
(3) For security reasons, the MagicMirror (and therefore the Remote Control) is not reachable externally. To change this, configure address, and ipWhitelist in your config.js (see these lines in the sample config). For example change address to 0.0.0.0 and add two allowed devices with IP-Adresses 192.168.0.42 and 192.168.0.50:address : '0.0.0.0', port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.0.42", "::ffff:192.168.0.50"],"
You can also add multiple devices in an IP range (e.g. all devices with 192.168.0.X):
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.0.1/120", "192.168.0.1/24"],
Have a look at config.js.sample to get the originals back. Then as it is above your router ip address might be 192.168.1.1 so it would be the above but with ::ffff:192.168.1.42, ::ffff:192.168.1.50 you can also put your router address in there but make the last octal 0/24 and you can then access from your desktop. Then the next big thing you are missing is apiKey: "", // Optional, See API/README.md for details
-
@cruunnerr said in [MMM-Remote-Control] Can not access remote control module:
do it like Mykle said
I think I have yet I still am getting config screen.
var config = { address: "0.0.0.0", ipWhitelist: [], language: "en", timeFormat: 12, units: "imperial",
{ module: 'MMM-Remote-Control' // uncomment the following line to show the URL of the remote control on the mirror , position: 'bottom_left' // you can hide this module afterwards from the remote control itself config: { customCommand: {}, // Optional, See "Using Custom Commands" below customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below showModuleApiMenu: true, // Optional, Enable the Module Controls menu apiKey: "", // Optional, See API/README.md for details } },
I also watched this and at 4:41 seem to have exactly the same thing.
-
Your config entry for MMM-Remote-Control is missing a comma after
position: 'bottom_left'
. It’s not your fault as I see you copied it directly from the readme. I removed the comments. Try this entry below;{ module: 'MMM-Remote-Control', position: 'bottom_left', config: { customCommand: {}, customMenu: "custom_menu.json", showModuleApiMenu: true, apiKey: "", } },
I have not tested this as I do not use this module. However, it should work for you unless something else is amiss in your config
-
@Mykle1 its weird. I have a working config. I add the module exactly as you have it, I follow the directions and it doesn’t work. I have tried adding my phone IP into the whitelist area, doesn’t work. I followed the directions from the video which match your suggestion of
var config = { address: "0.0.0.0", port: 8080, ipWhitelist: [],
and still nothing. The crazy thing is I somehow got it working once before. then i had to rebuild my config and here I am.
-
@motdog said in [MMM-Remote-Control] Can not access remote control module:
then i had to rebuild my config and here I am.
Ok, just to be sure. You rebuilt your config and now MM errors at startup, telling you to create a config? Perhaps the error is generated by something else in your config. Please post your entire config.js file here, in a code block, so that all can see it. This way, any errors will be noticed more quickly.
Or, make a copy of the config.js.sample and rename the copy to config.js. This will get you up and running again. Then you can add one module entry at a time, saving each time you are successful. When an addition fails, you know where the problem is.