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.

    Problems mit config.js

    Scheduled Pinned Locked Moved Troubleshooting
    17 Posts 4 Posters 10.0k Views 4 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.
    • H Offline
      Hakupapa
      last edited by

      Hello,
      at first speciall thx for this project and your great Tutorial, that is also working for noobs like me. But unfortunately I have a problme with the config.js and the mirror ist not really starting. I have a pi 3 Model B.
      I allredy installed raspian freshly on the pi. Then I used your automatic installation with ssh. Installatoin worked completely . Then I installed pm2 - that worked, too. Now I could start the mirror with pm2 start mm . I became a black window with the Information, that the config file ist not there or not configured. But I allready changed the config.js.sample into config.js while doing sudo nano /MagicMirror/config/config.js.sample and saved this into config.js But the pi allready asks me for a working config.js File. Where is my mistake? Thx for support. Greatings from germany ;o) Hakupapa

      1 Reply Last reply Reply Quote 0
      • yawnsY Offline
        yawns Moderator
        last edited by

        Please post your config file here or paste it into jshint.com to find any missing commas, brackets or similar things.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Hakupapa
          last edited by Hakupapa

          Here it is [0_1479420812149_config.js](Uploading 100%)

          I also tryed jshint.com with the script - he wrote me that there is one undefined variable but I don´t know where it is.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Hakupapa
            last edited by

            I just started a new try from the beginning with new raspian and editing the config.js . It worked but now i have a problem with showing calender and rss news. It is just showing load. Here is my code:
            url: ‘https://calendar.google.com/calendar/ical/hXXXXXXXXXXX%40gmail.com/private-XXXXXXXXXXXXXXXXXXXXX/basic.ics’
            url: “http://www.tagesschau.de/xml/rss2”
            What is wrong?

            1 Reply Last reply Reply Quote 0
            • H Offline
              Hakupapa
              last edited by

              so I tested new. It just needed a restart. Know Calender and News are working. But I have one more problem. Maybe here is somebody who can help?
              The MM ist not starting after reboot. I followed the tutorial with pm2 and I can start it with pm2 start mm.sh manually. I also saved the mm.sh like it is written on the tutorial:
              cd ~/MagicMirror
              DISPLAY=:0 npm start
              and I made the:
              chmod +x mm.sh
              and
              pm2 save
              but when I am rebooting I just came to the grafical desktop.

              1 Reply Last reply Reply Quote 0
              • O Offline
                ostfilinchen
                last edited by

                U must start the MM with pm2 start mm and after this u can exec the command pm2 save

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Hakupapa
                  last edited by

                  thx for the fast answer. :)
                  I have done this way (just forgot to write down). I got this information after saving:
                  pi@raspberrypi:~ $ pm2 save
                  [PM2] Saving current process list…
                  [PM2] Successfully saved in /home/pi/.pm2/dump.pm2
                  but after reeboting I just see the desktop

                  1 Reply Last reply Reply Quote 0
                  • O Offline
                    ostfilinchen
                    last edited by

                    do u run the commands with sudo? if not, can you test it?

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      Hakupapa
                      last edited by

                      I tested all commands with sudo at the beginning. The same problem. Is it maybe because of the command for reebot (sudo shutdown -h 0)?

                      1 Reply Last reply Reply Quote 0
                      • O Offline
                        ostfilinchen
                        last edited by

                        i don’t think so.

                        please do this: pm2 start mm -> pm2 save -> pm2 Status -> pm2 save -> sudo reboot

                        1 Reply Last reply Reply Quote 0
                        • H Offline
                          Hakupapa
                          last edited by

                          Thx for helping. I have done this in this way (but with pm2 start mm.sh) and I allready became the Raspian Desktop :(

                          1 Reply Last reply Reply Quote 0
                          • O Offline
                            ostfilinchen
                            last edited by

                            do you do this via ssh or directly on the raspi?

                            1 Reply Last reply Reply Quote 0
                            • O Offline
                              ostfilinchen
                              last edited by

                              i have testet is myself via ssh.

                              pm2 stop mm -> pm2 delete mm -> pm2 save

                              then

                              sudo reboot

                              After the reboot there is no mm in the processlist. Now i do pm2 start mm.sh and pm2 status. At the End sudo reboot. When the raspi is up, the mirror starts without any Problems via pm2.

                              Is it possible, that anything goes wrong during the Installation of pm2?

                              1 Reply Last reply Reply Quote 0
                              • H Offline
                                Hakupapa
                                last edited by

                                Ich have tested directly and with ssh. Ich will try to install pm one more time.

                                1 Reply Last reply Reply Quote 0
                                • H Offline
                                  Hakupapa
                                  last edited by

                                  I allready tried your way step by step. Everything worked but not the autostart of the mm. I just can start it manually with pm2 start mm.sh
                                  Don´t know how to get a autostart for the mm.
                                  Here is the information from the pm2 status:
                                  ┌──────────┬────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────────┐
                                  │ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ watching │
                                  ├──────────┼────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────────┤
                                  │ mm │ 0 │ fork │ 1123 │ online │ 0 │ 6s │ 0% │ 2.3 MB │ disabled │
                                  └──────────┴────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────────┘
                                  Use pm2 show <id|name> to get more details about an app

                                  J 1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    Jopyth Moderator @Hakupapa
                                    last edited by Jopyth

                                    @Hakupapa The autostart should happen automatically. Once you start the mirror with pm2 restart and it is running, and then do pm2 save, pm2 should save the current status (which is, your mirror application is running), and try to restore it after a reboot, or even after the program crashes.

                                    If it really does not do this, maybe try updating as described here?

                                    Helpful sticky: How to troubleshoot

                                    1 Reply Last reply Reply Quote 0
                                    • H Offline
                                      Hakupapa
                                      last edited by

                                      speciall thx my dear. I have reached the problem in another way. I wrote this command into the rc.local:
                                      su pi -c ‘/home/pi/mm.sh &’
                                      And now I have the MM after reboot. I am so happy :)

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