MMM-Admin-Interface



  • Hey everyone
    I created a new module, to be able to edit the MM configuration from the browser


    Would appreciate any input, hope you’ll enjoy it!



  • Hey, that’s great.I like it.

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



  • 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?



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



  • 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



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



  • @ItayXD

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



  • 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



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



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


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.