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.

    Are you tired of editing config.js, or have trouble doing it, see my new module

    Scheduled Pinned Locked Moved Utilities
    293 Posts 28 Posters 345.2k Views 31 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.
    • L Offline
      louise @sdetweil
      last edited by

      @sdetweil This is what I get when trying to run Magic Mirror from npm start

      JavaScript error occurred in the main process
      Uncaught Exception:
      Error: Cannot find module ‘/home/pi/MagicMirror/js/…/modules/default/defaultmodules’
      Require stack:

      • /home/pi/MagicMirror/js/app.js
      • /home/pi/MagicMirror/js/electron.js
      • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      • at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
        at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
        at Module._load (internal/modules/cjs/loader.js:732:27)
        at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
        at Module.require (internal/modules/cjs/loader.js:959:19)
        at require (internal/modules/cjs/helpers.js:88:18)
        at Object. (/home/pi/MagicMirror/js/app.js:16:24)
        at Module._compile (internal/modules/cjs/loader.js:1078:30)
        at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10)
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @louise
        last edited by

        @louise so, read the link… it will help A LOT…

        from a command line, (terminal window) you need to change folders

        cd new_folder_name

        just like on windows
        (except here the names are case sensitive)

        when I said in doc

        Clone this repo into ~/MagicMirror/modules directory.
        

        that means change directory (cd command)

        cd ~/MagicMirror/modules
        

        u left off the cd

        but the error implies you have not installed MagicMirror yet…

        I have a script for that
        see
        https://github.com/sdetweil/MagicMirror_scripts

        its just a cut/paste of one line

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @louise
          last edited by

          @louise errors. looks like you didn’t do npm install after git clone of MagicMirror repo …

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @sdetweil
            last edited by

            @sdetweil said in Are you tired of editing config.js, or have trouble doing it, see my new module:

            @josh45631 @mumblebaj

            @josh45631 @mumblebaj i updated the readme to specify MM_IP_Address instead of ‘machine_name’ if you need/want/have to use the manual reivew url instead of the QR

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • B Offline
              brianlove
              last edited by

              Thank you for this! So I’m new to MM (you’ve got to love that phrase, right?) but slowly learning. I’ve got MM-Config running and can access it via a separate laptop on my network. I can see the running modules, and the QR Code, but when I go to turn a module on/off and “save,” it won’t do anything on the MM side. I can see the “config_last_change” file has the date and time, but can’t figure out why nothing is changing or saving.

              Any ideas? Thanks again!

              BKeyportB S 2 Replies Last reply Reply Quote 0
              • BKeyportB Offline
                BKeyport Module Developer @brianlove
                last edited by

                @brianlove Did you restart your Mirror? (Not the whole pi, just the mirror app)

                If so, please elaborate. Which module are you toggling? Can you share the config segment showing the change?

                The "E" in "Javascript" stands for "Easy"

                1 Reply Last reply Reply Quote 0
                • B Offline
                  brianlove
                  last edited by brianlove

                  @bkeyport

                  I did restart the mirror. As for the modules, I’ve tried multiple ones, but specifically currentweather & CalendarWeek.

                  	{
                  	module:"MMM-Config",
                  	position:"top_right",  // the QR code (if requested) will appear here
                  	config:{
                  
                  	}
                  },
                  
                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @brianlove
                    last edited by sdetweil

                    @brianlove I will check when I can.

                    could u enable debug in my module
                    ( if using pm2, do pm2 stop all)
                    then start with

                    npm start > somefile.txt
                    

                    then do the edit and save on the form

                    and then stop mm (ctrl-q) and send me the
                    somefile.txt via email.

                    same userid as here at gmail.
                    thanks

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      doogy_rev
                      last edited by

                      Hi All,

                      I reinstalled my MM this week and decided to use this module to do the configurations. Its all installed and I can see all my modules, however it seems to be hit and miss on enabling and setting the positions. for example,

                      default clock - this would not enable, I manually enabled it in the config and now shows Blue but can not set the position, either from the page or in the config.

                      Default calendar - this enabled ok, shows blue, but can not set the position, does not save

                      MMM-OpenWeatherForecast - works perfectly

                      newsfeed - works perfectly.

                      Any ideas on why some modules seem to be hit or miss?

                      Sorry for the thread resurrection, was not sure where to post.

                      Thanks

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @doogy_rev
                        last edited by sdetweil

                        @doogy_rev set debug in my module config

                        debug:true,

                        then start mm like this

                        cd ~/MagicMirror
                        npm start >somefile.txt
                        

                        if you use pm2 for autostart
                        before the above do

                        pm2 stop all
                        

                        after running and ‘saving’

                        ctrl-c to stop mm

                        send the somefile.txt to my email, or open an issue on the module and attach it there. (warning this log file has full text contents of config.js, so sending as email is better as issues are public). my email is this same userid at gmail

                        also, positions are set down below, not in the config up above… right?

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        D 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 20
                        • 21
                        • 22
                        • 23
                        • 24
                        • 29
                        • 30
                        • 22 / 30
                        • 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