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.

    MagicMirror v2.1.0 Update error

    Scheduled Pinned Locked Moved Solved Troubleshooting
    31 Posts 12 Posters 27.1k Views 12 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.
    • lolobyteL Offline
      lolobyte @PindaPower
      last edited by lolobyte

      @PindaPower

      Hi,

      at this position i must insert my ip from the notebook?

      ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “XXX.XXX.XXX.XXX”, “192.168.250.250”],

      And how to declare a range?

      1 Reply Last reply Reply Quote 0
      • lolobyteL Offline
        lolobyte
        last edited by

        nobody can help.

        I going to be crazy soon with this damn IP’s

        ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”],

        Can somebody put a example of a running ip address with a virtual IP like 192.168.123.123 to give access to remote control module ?

        1 Reply Last reply Reply Quote 0
        • SnilleS Offline
          Snille Module Developer
          last edited by

          This should do it. :)

          For a B-network (192.168.x.x)
          The last two “x”:es change.

          ipWhitelist: [
          	"127.0.0.1",
          	"::ffff:127.0.0.1",
          	"::1",
          	"::ffff:192.168.0.1/16" 
          ],
          

          Or for a C-network (192.168.123.x)
          Only the last “x” change.

          ipWhitelist: [
          	"127.0.0.1",
          	"::ffff:127.0.0.1",
          	"::1",
          	"::ffff:192.168.123.1/24" 
          ],
          

          Good luck. :)

          If you cant find it, make it and share it!
          Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

          1 Reply Last reply Reply Quote 0
          • SteffS Offline
            Steff
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • schlachtkreuzer6S Offline
              schlachtkreuzer6 @yawns
              last edited by

              @yawns so how do i change the comments if i should´t change the comments.js ? ^^

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

                @schlachtkreuzer6 said in MagicMirror v2.1.0 Update error:

                @yawns so how do i change the comments if i should´t change the comments.js ? ^^

                I guess you are talking about compliments.js ?
                The readme clearly states how to add own compliments: https://github.com/MichMich/MagicMirror/blob/master/modules/default/compliments/README.md

                schlachtkreuzer6S 1 Reply Last reply Reply Quote 0
                • schlachtkreuzer6S Offline
                  schlachtkreuzer6 @yawns
                  last edited by

                  @yawns oh sorry i mean the compliments… i don´t know why i wrote comments (maybe i need more coffee!)

                  but if i want the default compliments to be in german, what do i need to change? That the git pull is working?

                  yawnsY SteffS 2 Replies Last reply Reply Quote 0
                  • yawnsY Offline
                    yawns Moderator @schlachtkreuzer6
                    last edited by

                    @schlachtkreuzer6
                    The same approach. Add whatever you want to add, but do not modify the JavaScript module files.
                    Create a compliments file or add them to your config file.

                    1 Reply Last reply Reply Quote 0
                    • SteffS Offline
                      Steff @schlachtkreuzer6
                      last edited by

                      @schlachtkreuzer6
                      After your question I understood what I personally had done wrong, so I lost my German compliments, still have to confess this to my 8 year old boy who wrote them. Please find here an example with German text how you could modify your local config.js to show German comments:

                                  {
                                          module: 'compliments',
                                          position: 'lower_third',
                      
                                          config:
                                          {
                                          compliments:
                                             {
                                             "morning" : [
                                                  "Du siehst aber gut aus heute !",
                                                  "Gut geschlafen ?",
                                                  "Moin, Moin...."
                                                  ],
                                              "afternoon" : [
                                                  "Ab Fussball spielen !",
                                                  "Lass uns auf den Abend vorbereiten....",
                                                  "Musik hören ?"
                                                  ],
                                              "evening" : [
                                                  "Einen Cocktail ?",
                                                  "Wow, Du bist aber heiss heute...",
                                                  "Wollen wir heute abend weggehen ?"
                                                  ]
                                             }
                                          }
                                  },
                      
                      bheplerB 1 Reply Last reply Reply Quote 0
                      • bheplerB Offline
                        bhepler Module Developer @Steff
                        last edited by

                        @Steff Remove the " from around the array names (morning, afternoon, evening).

                        compliments:
                                     {
                                     morning : [
                                          "Du siehst aber gut aus heute !",
                                          "Gut geschlafen ?",
                                          "Moin, Moin...."
                                           ],
                                      afternoon : [
                                         "Ab Fussball spielen !",
                                         "Lass uns auf den Abend vorbereiten....",
                                          "Musik hören ?"
                                          ],
                                      evening : [
                                          "Einen Cocktail ?",
                                          "Wow, Du bist aber heiss heute...",
                                          "Wollen wir heute abend weggehen ?"
                                          ]
                                     }
                                  }
                        
                        1 Reply Last reply Reply Quote 0
                        • SteffS Offline
                          Steff
                          last edited by

                          @bhepler
                          Thanks for your hint.
                          I know the doc does not show them. However I understood the documentation that I will need them for an external file. So I wanted to be prepared for the move to an external file. I tested it with them inside the config.js file and it worked. Do you see any specific reason to remove them ?

                          bheplerB 1 Reply Last reply Reply Quote 0
                          • SteffS Offline
                            Steff
                            last edited by Steff

                            I did try to configure an external compliments.json file, however it seems that it is not interpreted, since I do get again the default compliments.
                            The file is located within the config directory.
                            My configuration:

                            { module: 'compliments', position: 'lower_third', config: { remoteFile: 'compliments.json' } },

                            Do you have a hint what might be wrong ?

                            1 Reply Last reply Reply Quote 0
                            • bheplerB Offline
                              bhepler Module Developer @Steff
                              last edited by

                              @Steff Due to my own incompetence when dealing with javascript, the external file needs to have quotes around the array names. If you are expanding the arrays within the config.js file, then you must remove the quotes from around the names.
                              So this would work in the config.js file:

                              evening : [
                                      "Einen Cocktail ?",
                                      "Wow, Du bist aber heiss heute...",
                                      "Wollen wir heute abend weggehen ?"
                                      ]
                              

                              and this should work in the external compliments file:

                              "evening" : [
                                      "Einen Cocktail ?",
                                      "Wow, Du bist aber heiss heute...",
                                      "Wollen wir heute abend weggehen ?"
                                       ]
                              

                              It’s a bug. But I’m a Java programmer, not a Javascript programmer. I don’t know how to fix it.

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

                                Hi all,

                                After update my MM and want to open the mm via http://ip:8080 i get a blank Black screen. It comes on Win10 and also Android with Chrome.

                                The Majorfailure is, the rpi stop working. So i can only disconnect the power and connect again.

                                Has anybody else this issue?

                                Regals
                                Daniel

                                lolobyteL 1 Reply Last reply Reply Quote 0
                                • lolobyteL Offline
                                  lolobyte @ostfilinchen
                                  last edited by

                                  @ostfilinchen

                                  No, not such a major issue with the pi.

                                  Can you access your pi with ssh?

                                  Take a look at

                                  https://forum.magicmirror.builders/topic/1326/ipwhitelist-howto/

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

                                    At the Moment it works. I have update and dist-upgrade the rpi. Thanks for helping.

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      teandryk
                                      last edited by teandryk

                                      Hi, after update

                                      pi@raspberrypi:~ sudo git pull
                                      …

                                      my MM does not start anymore, so i tried from terminal and getting this error:

                                      *pi@raspberrypi:~ $ ./mm.sh

                                      >magicmirror@2.1.0 start /home/pi/MagicMirror
                                      >electron js/electron.js

                                      App threw an error during load
                                      Error: Cannot find module ‘express-ipfilter’
                                      at Module._resolveFilename (module.js:455:15)
                                      at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron-prebuilt/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                                      at Function.Module._load (module.js:403:25)
                                      at Module.require (module.js:483:17)
                                      at require (internal/module.js:20:19)
                                      at Object. (/home/pi/MagicMirror/js/server.js:13:16)
                                      at Module._compile (module.js:556:32)
                                      at Object.Module._extensions…js (module.js:565:10)
                                      at Module.load (module.js:473:32)
                                      at tryModuleLoad (module.js:432:12)
                                      A JavaScript error occurred in the main process
                                      Uncaught Exception:
                                      Error: Cannot find module ‘express-ipfilter’
                                      at Module._resolveFilename (module.js:455:15)
                                      at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron-prebuilt/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                                      at Function.Module._load (module.js:403:25)
                                      at Module.require (module.js:483:17)
                                      at require (internal/module.js:20:19)
                                      at Object. (/home/pi/MagicMirror/js/server.js:13:16)
                                      at Module._compile (module.js:556:32)
                                      at Object.Module._extensions…js (module.js:565:10)
                                      at Module.load (module.js:473:32)
                                      at tryModuleLoad (module.js:432:12)
                                      *

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

                                        @teandryk
                                        Please run npm install in the main MagicMirror folder

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

                                          I think, i Set up a New raspian with New Installation of mm. This update was Not a good idea…

                                          1 Reply Last reply Reply Quote 0
                                          • T Offline
                                            teandryk @yawns
                                            last edited by Jopyth

                                            @yawns I did and thats what i got now :)

                                            pi@raspberrypi:~/MagicMirror $ npm install
                                            \
                                            \> electron@1.4.13 postinstall /home/pi/MagicMirror/node_modules/electron
                                            \> node install.js
                                            
                                            
                                            \> electron-prebuilt@1.4.13 postinstall /home/pi/MagicMirror/node_modules/electron-prebuilt
                                            \> node install.js
                                            
                                            npm WARN unmet dependency /home/pi/MagicMirror/node_modules/grunt-eslint/node_modules/eslint/node_modules/escope/node_modules/esrecurse requires estraverse@'~4.1.0' but will load
                                            npm WARN unmet dependency /home/pi/MagicMirror/node_modules/grunt-eslint/node_modules/eslint/node_modules/estraverse,
                                            npm WARN unmet dependency which is version 4.2.0
                                            npm ERR! Linux 4.4.21-v7+
                                            npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
                                            npm ERR! node v4.3.2
                                            npm ERR! npm  v2.14.12
                                            npm ERR! code EPEERINVALID
                                            
                                            npm ERR! peerinvalid The package grunt@1.0.1 does not satisfy its siblings' peerDependencies requirements!
                                            npm ERR! peerinvalid Peer grunt-yamllint@0.2.0 wants grunt@~0.4.0
                                            npm ERR! peerinvalid Peer grunt-eslint@19.0.0 wants grunt@>=0.4.0
                                            
                                            npm ERR! Please include the following file with any support request:
                                            npm ERR!     /home/pi/MagicMirror/npm-debug.log
                                            
                                            A 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