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.

    MMM-Admin-Interface

    Scheduled Pinned Locked Moved System
    29 Posts 12 Posters 29.9k Views 11 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.
    • I Offline
      ItayXD
      last edited by ItayXD

      Hey everyone
      I created a new module, to be able to edit the MM configuration from the browser
      [card:ItayXD/MMM-Admin-Interface]
      Would appreciate any input, hope you’ll enjoy it!

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

        Hey, that’s great.I like it.

        No need to start a ssh session.0_1483136812850_Admin_Interface.jpg

        1 Reply Last reply Reply Quote 0
        • W Offline
          wrumble
          last edited by

          Hi, after i install and run i get a blank white screen, if i install it and run on my macbook i get the following:

          Error: Cannot find module ‘body-parser’
          at Module._resolveFilename (module.js:455:15)
          at Function.Module._resolveFilename (/Users/wayne.rumble/Desktop/MagicMirror/node_modules/electron-prebuilt/dist/Electron.app/Contents/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. (/Users/wayne.rumble/Desktop/MagicMirror/modules/MMM-Admin-Interface/node_helper.js:5:20)
          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)
          Whoops! There was an uncaught exception…
          { Error: Cannot find module ‘body-parser’
          at Module._resolveFilename (module.js:455:15)
          at Function.Module._resolveFilename (/Users/wayne.rumble/Desktop/MagicMirror/node_modules/electron-prebuilt/dist/Electron.app/Contents/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. (/Users/wayne.rumble/Desktop/MagicMirror/modules/MMM-Admin-Interface/node_helper.js:5:20)
          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) code: ‘MODULE_NOT_FOUND’ }
          MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
          If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
          Launching application.

          Running on an RPI 3 model B, when i comment out:
          ,
          {
          module: “MMM-Admin-Interface”,
          }

          from my config it works fine. Am i missing something?

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

            @wrumble

            Hi, same problem like on my system.

            log in with ssh to yur raspberry pi.

            cd ~/MagicMirror/

            npm install body-parser

            If you have an grunt error, then just install

            npm install grunt@(your version) --save-dev

            in my case it was ~0.4.0
            npm install grunt@~0.4.0 --save-dev

            make a

            sudo reboot

            after that and see if your MacicMirror works again without un commented

            { “module”: “MMM-Admin-Interface” },

            Be aware!

            the developer made a little mistake. He wrote…

            Usage

            Go to :8181/MMM-Admin-Interface/
            Edit away!

            You must use the port 8080

            Go to :8080/MMM-Admin-Interface/

            I 1 Reply Last reply Reply Quote 0
            • I Offline
              ItayXD
              last edited by ItayXD

              it seems body-parser is not installed.
              Do you have node_modules dir inside MagicMirror/modules/MMM-Admin-Interface/?
              Do you have body-parser dir inside MagicMirror/modules/MMM-Admin-Interface/node_modules/?
              -----------EDIT-----------
              please run cd ~/Desktop/MagicMirror/modules/MMM-Admin-Interface && git pull && npm install --only=production

              1 Reply Last reply Reply Quote 0
              • I Offline
                ItayXD @lolobyte
                last edited by

                @lolobyte Thanks for your note on the port I’ll fix it.
                Do you have any idea why body-parser isn’t installed automatically? I thought it should be…

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

                  @ItayXD

                  No, sorry.
                  I’m only a small and unknown user.

                  1 Reply Last reply Reply Quote 0
                  • I Offline
                    ItayXD
                    last edited by ItayXD

                    Hi sorry I forgot to add install dependencies part to the readme.
                    @wrumble please run cd ~/Desktop/MagicMirror/modules/MMM-Admin-Interface && git pull && npm install --only=production
                    It should work

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

                      @ItayXD

                      i do that step, but it doesn’t work.

                      i mean the npm install in the Admin folder.

                      Only after i install the missing files manually.

                      1 Reply Last reply Reply Quote 0
                      • I Offline
                        ItayXD
                        last edited by

                        @lolobyte it seems my package.json is invalid will fix that

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • 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