MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Are you tired of editing config.js, or have trouble doing it, see my new module

    Scheduled Pinned Locked Moved Utilities
    293 Posts 28 Posters 400.9k Views 31 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @anima
      last edited by

      @anima what is your config.js setting for address:

      you would have to use the container IP address and port on the form url. because it it not mapped to the docker host port

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        anima @sdetweil
        last edited by

        @sdetweil do you mean this https://imgur.com/a/jzi0Idj ?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @anima
          last edited by sdetweil

          @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

          http://172.17.0.2:8300

          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 8300

          then from your pc or non-docker-host machine

          http://docker_host_ip:8300 
          

          should bring up the form

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            anima @sdetweil
            last edited by

            @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.

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @anima
              last edited by

              @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

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              uros76U 1 Reply Last reply Reply Quote 0
              • uros76U Offline
                uros76 @sdetweil
                last edited by uros76

                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.

                0c30df56-bb0c-414b-b15a-bbe6438eab34-image.png

                Doing ctrl+shift+I and looking at console output I get this error:

                837393e3-26af-4fa8-9434-b1259a0b1dd0-image.png

                My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

                S 2 Replies Last reply Reply Quote 0
                • S Offline
                  sdetweil @uros76
                  last edited by

                  @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)

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  uros76U 1 Reply Last reply Reply Quote 1
                  • S Offline
                    sdetweil @uros76
                    last edited by

                    @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…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    uros76U 1 Reply Last reply Reply Quote 0
                    • uros76U Offline
                      uros76 @sdetweil
                      last edited by

                      @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: [],
                      

                      My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

                      S 1 Reply Last reply Reply Quote 0
                      • uros76U Offline
                        uros76 @sdetweil
                        last edited by

                        @sdetweil ok will send you now…

                        My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @uros76
                          last edited by

                          @uros76 thanks… there was probably an error reported in the console where u do npm start (or pm2 logs if using pm2)

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @uros76
                            last edited by

                            @uros76 posted a fix, sent email back

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            uros76U 1 Reply Last reply Reply Quote 1
                            • uros76U Offline
                              uros76 @sdetweil
                              last edited by

                              @sdetweil it works! Mega quick assistance. Tnx

                              My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

                              1 Reply Last reply Reply Quote 0
                              • F Offline
                                Fonzi03
                                last edited by

                                i too am getting the blank homescreen which only shows
                                “configure magic mirror and modules”

                                it wont let me upload the jsconfig or default config here how can i send them?

                                S 2 Replies Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @Fonzi03
                                  last edited by

                                  @fonzi03 send to my same userid at gmail. have to rename them to .txt instead of .js to attach to email

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 1
                                  • S Offline
                                    sdetweil @Fonzi03
                                    last edited by

                                    @fonzi03 i sent email back

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      Dinschal
                                      last edited by

                                      Hi,

                                      I’m not able to pull your module from github. I got this error.

                                      fa01d665-17c4-45ae-85dd-cf6aabc43176-image.png

                                      Greetings

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @Dinschal
                                        last edited by

                                        @dinschal hm… I don’t see that

                                        rename the module folder and and git clone again
                                        then delete the old folder

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          Dinschal
                                          last edited by Dinschal

                                          There is no module folder…

                                          8c936800-bdb7-4385-9685-8b8d794c2c68-image.png

                                          Okay everything fine… i have to go to bed :D my fault sry :D

                                          Change pull to clone and it works ;) too much code today.

                                          I’m really sorry :(

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @Dinschal
                                            last edited by sdetweil

                                            @dinschal huh?

                                            ah, I see… to get the 1ST copy you use

                                            git clone

                                            to UPDATE later you do

                                            git pull

                                            with no extra parms…

                                            see the two topics in my signature… I didn’t write em, but they are helpful

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            D 1 Reply Last reply Reply Quote 1

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 14
                                            • 15
                                            • 5 / 15
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy