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.

    some modules are not showing on screen

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    23 Posts 5 Posters 8.0k Views 5 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.
    • ? Offline
      A Former User
      last edited by

      Hey there.

      I didnt find a post with a solution for me. I’ve installed MM well and it displays the default stuff. I’ve added some modules, always like written at its description with git clone etc. Sometimes it was necassary to npm install

      Now, when I restart using npm start MM starts well. No “config-errors”. I can see in the console the modules loaded well, but… they are not at the monitor. I’ve played with the regions without success.
      I’ve already updated everything. Senseless because everything was brand new installed 2 days ago. But anyway, I tried it.

      I cant belive all these modules are broken or outdated etc. May someone has an idea. I am also using the MMM-Admin-Interface for an easier handling.

      I’ll give you my config.js…
      The following modules are NOT showing: email, fuel (throws error in cli with “no data”, verified key on webpage etc), internet-monitor, email, MMM-Census.

      Just to be clear: MM is running fine, no errors, showing the screen with SOME modules.

      {
        "port": 8080,
        "language": "de",
        "timeFormat": 24,
        "units": "metric",
        "modules": [
          {
            "module": "alert"
          },
          {
            "module": "MMM-News",
            "position": "bottom_bar",
            "config": {
              "apiKey": "MYSECRET",
              "type": "horizontal",
              "query": [
                {
                  "sources": "hacker-news, national-geographic, bild, cnn, focus, reddit-r-all"
                },
                {
                  "country": "de",
                  "className": "redTitle"
                }
              ],
              "items": 1,
              "touchable": false,
              "autoscroll": true,
              "drawInterval": 10000
            }
          },
          {
            "module": "MMM-Admin-Interface"
          },
          {
            "module": "updatenotification",
            "position": "top_bar"
          },
          {
            "module": "clock",
            "position": "top_left"
          },
          {
            "module": "compliments",
            "position": "top_bar"
          },
          {
            "module": "currentweather",
            "position": "top_center",
            "config": {
              "location": "Lohr am Main",
              "locationID": "2876147",
              "appid": "MYSECRET"
            }
          },
          {
            "module": "weatherforecast",
            "position": "top_right",
            "config": {
              "location": "Lohr am Main",
              "locationID": "2876147",
              "appid": "MYSECRET"
            },
            "header": "Wetter die Tage in "
          },
          {
            "module": "MMM-Fuel",
            "position": "top_right",
            "lat": 50.036101,
            "lng": 9.642108,
            "types": "diesel",
            "api-key": "MYSECRET",
            "provider": "tankkoenig",
            "rad": 10,
            "sort": "dist"
          },
          {
            "module": "internet-monitor",
            "position": "top_center",
            "header": "Internet",
            "config": {
              "maxTime": 20000,
              "updateInterval": 100,
              "verbose": true,
              "displayStrength": true,
              "displaySpeed": false,
              "strengthIconSize": 80,
              "maxGaugeScale": 100
            }
          },
          {
            "module": "email",
            "position": "top_left",
            "header": "Emails",
            "config": {
              "accounts": [
                {
                  "user": "info@survive-yourself.de",
                  "password": "MYSECRET",
                  "host": "MYSECRET",
                  "port": 993,
                  "tls": true,
                  "numberofEmails": 3,
                  "authTimeout": 10000
                }
              ]
            },
            "fade": true,
            "maxCharacters": 30
          },
          {
            "module": "MMM-Census",
            "header": "Population",
            "position": "middle_center",
            "config": {
              "country": "World",
              "popYear": 2018,
              "useHeader": true,
              "header": "Popo",
              "maxWidth": "300px",
              "animationSpeed": 3000,
              "rotateInterval": 60000
            }
          }
        ],
        "address": "0.0.0.0",
        "ipWhitelist": [
          "127.0.0.1",
          "::ffff:127.0.0.1",
          "::1",
          "192.168.178.1/24",
          "::ffff:192.168.178.1/24"
        ]
      }
      
      justjim1220J 1 Reply Last reply Reply Quote 0
      • justjim1220J Offline
        justjim1220 Module Developer @Guest
        last edited by

        @stephen

        try rebooting your system

        "Life's Too Short To Dance With Ugly People"
        Jim Hallock - 1995

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by

          Thanks for your answer, but of cause (didnt say - I know) - already rebooted .(

          Anyway, rebooted again - no effect.

          I also stopped the autostart with pm2 stop mm before to prevent a double runnig MM o.O.

          No effects anyway.

          1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil
            last edited by

            try

            npm start dev
            

            select the console tab of the developers window
            scroll to find any red text, which are errors…

            another user just had a similar problem, which turned out to be some file system problem on his memory card.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User
              last edited by

              hm ok. I am on console (ssh).
              So I have to work on the Pi directly with GUI to check that, right?

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Guest
                last edited by

                @stephen yes

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User
                  last edited by

                  Sorry, but, dont know how to do that o.O feel like a noob

                  I’ve used VNC to get the GUI, but where to find the dev window? I’ll started from the terminal/console.

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @Guest
                    last edited by

                    @stephen no idea over vnc…

                    attach a mouse to the pi…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by

                      Its the same like a mouse connected. Sure I can connect a monitor and mouse+keyboard, but I dont know how to get to the dev window. I dont coded anything on the pi directly (like I am using visual code at windows for example). So how to get the dev-output?

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @Guest
                        last edited by sdetweil

                        @stephen on your remote console, do

                        ssh to the pi, no gui

                        cd MagicMirror
                        export DISPLAY=:0
                        npm start dev  
                        

                        and, of course, you need a monitor on the PI

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • ? Offline
                          A Former User
                          last edited by

                          Thanks!
                          I’ve connected a monitor and keyboard. Connected via ssh and started like you’ve posted.

                          Uh great output. Never seen :) … but I am not a node-nerd yet. Anyway…

                          There are errors to the modules I’ve missing.

                          In every case there is an error loading the skripts. In the log I saw there is a “/” too much while executing. For example:
                          GET http://0.0.0.0:8080/modules/internet-monitor//internet-monitor.js

                          Same at the other modules. But why? Where to correct this?

                          1 Reply Last reply Reply Quote 0
                          • ? Offline
                            A Former User
                            last edited by A Former User

                            Oh I saw its on all the paths (the running also).
                            But the error at all the modules are

                            ERROR on loading script XYZ
                            

                            The scripts are in the given folder.

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @Guest
                              last edited by

                              @stephen a file system problem again.

                              U need to run fsck , the Unix chkdsk.
                              But u can’t run on the boot drive while system is running …

                              Google search ‘fsck raspberry pi’

                              I have another Linux system i can use.

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • ? Offline
                                A Former User
                                last edited by

                                oh lord… I quess I have something…
                                WTF.

                                I quess it was my mistake… Was it?

                                Some modules are in /MagicMirror/node_modules/
                                and some are in /MagicMirror/modules

                                S 1 Reply Last reply Reply Quote 0
                                • S Do not disturb
                                  sdetweil @Guest
                                  last edited by sdetweil

                                  @stephen node_modules are the ones download by install in support of the mirror… all good

                                  modules are the add ons to the MagicMirror

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • ? Offline
                                    A Former User
                                    last edited by

                                    Maybe it has something to do with the

                                    npm install

                                    sometimes I had to run (as discribed at the mod-pages)?

                                    I’ll try to pull the modules in the right folder and give it a try

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil @Guest
                                      last edited by

                                      @stephen no… don’t change anything… npm install built the node_modules folder… it is ok…

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0
                                      • ? Offline
                                        A Former User
                                        last edited by

                                        Hell…thats it!

                                        I’ve reinstalled the “not-working” / not showing modules INTO the /modules folder and it simply works!

                                        Have a big thanks @sdetweil !

                                        Its not always a filesystem-problem, sometimes the problem is right in front of the keyboard :D

                                        S 2 Replies Last reply Reply Quote 0
                                        • S Do not disturb
                                          sdetweil @Guest
                                          last edited by

                                          @stephen cool

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          1 Reply Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @Guest
                                            last edited by

                                            @stephen sorry, I misread your 1st post… I took it to mean it HAD been working and all of a sudden it was not…

                                            got to learn to read more carefully!

                                            can u mark your problem resolved?

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            1 Reply Last reply Reply Quote 0

                                            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
                                            • 1 / 2
                                            • 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