Read the statement by Michael Teeuw here.
Are you tired of editing config.js, or have trouble doing it, see my new module
-
@anima only needed the line with address:“0.0.0.0”
ok, so we need to find out the ip address of the MM container
docker ps
will give u a line like this
11e836525b8d xxxyyyzzz "/usr/bin/supervisord" 4 months ago Up 3 weeks 0.0.0.0:82->81/tcp, :::82->81/tcp, 0.0.0.0:5901->5900/tcp, :::5901->5900/tcp, 0.0.0.0:8280->8080/tcp, :::8280->8080/tcp
the 1st token is the container id
then do this
docker inspect 11e836525b8d
and in the stream of info is
"IPAddress": "172.17.0.2",
then use that from the system running the docker container
to get that as one line of output, u can create this one line bash script
docker inspect $(docker ps -q | awk '{print $1}') | grep -m 1 '"IPAddress"' | awk -F\" '{print $4}'
you can’t use it from another system as there is no path to the container from outside
now, you could fix the startup of the MM container by adding
-p 8300:8300
to the docker run command
this map the container port 8300 to the host port 8300then from your pc or non-docker-host machine
http://docker_host_ip:8300
should bring up the form
-
@sdetweil ok thx, but then it should be better to run it from a pi (i have a spare one) because the container port is used by another service which i need.
-
@anima well, each container has its own set…
the code looks for a free port from 8300 - 8500… but in a container it will be fresh, so 8300
the code hard codes 8300, so you can’t map it to anything else
-
Hi. I am trying to implement it on my MM and get only get below header in the browser. I am trying to open it with this address http://raspberrypi:8080/modules/MMM-Config/review
The same happens if I open MM via IP address.Did I miss something? I saw on page6 of this thread someone else had same problem but that solution didn’t help me.
Doing ctrl+shift+I and looking at console output I get this error:
-
@uros76 can u show me the config.js for the module?
does it show on the MM screen?
is your config.js address:“localhost”
if so, you can only access from the PI system itself (localhost means only apps INSIDE the pi can access that app)
-
@uros76 ok, can u send me config.js and the defaults.js from the MMM-Config folder…
have to rename them to .txt to add as attachments
via email…to my same userid at gmail…
-
@sdetweil yes the module shows on screen in form of QR code. That part works.
My basics from config file:address: "0.0.0.0", useHttps: false, port: 8080, ipWhitelist: [],
-
@sdetweil ok will send you now…
-
@uros76 thanks… there was probably an error reported in the console where u do npm start (or pm2 logs if using pm2)
-
@uros76 posted a fix, sent email back