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.

    First start from the mirror does not work

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    36 Posts 6 Posters 29.9k 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.
    • S Offline
      samydp
      last edited by

      Update:
      can you show me how the modules in the config investing so that the screen indicating?:o

      1 Reply Last reply Reply Quote 0
      • mochmanM Offline
        mochman Module Developer
        last edited by

        @samydp, rename your config.js to config.js.old and make this your new config.js. Try running the program with this, if you see compliments on the bottom screen, you know that magicmirror works fine and the problem is in one of the other modules. It’s a place to start. If you’re still getting the electron errors, try rerunning npm install again in your MagicMirror directory.


        var config = {
        	port: 8080,
        
        	language: 'en',
        	timeFormat: 24,
        	units: 'metric',
        
        	modules: [
        		{
        			module: 'alert',
        		},
                       {
        			module: 'compliments',
        			position: 'lower_third'
        		}
        ]
        
        };
        
        /*************** DO NOT EDIT THE LINE BELOW ***************/
        if (typeof module !== 'undefined') {module.exports = config;}
        
        1 Reply Last reply Reply Quote 0
        • S Offline
          samydp
          last edited by KirAsh4

          your config works !!! juhu thx but i have a other wrong :/

          i will the language from the clock in germany

          Module.register("clock",{
          	// Module config defaults.
          	defaults: {
          		timeFormat: config.timeFormat,
          		displaySeconds: true,
          		showPeriod: true,
          		showPeriodUpper: false,
          		clockBold: true
          	},
          	// Define required scripts.
          	getScripts: function() {
          		return ["moment.js"];
          	},
          	// Define start sequence.
          	start: function() {
          		Log.info("Starting module: " + this.name);
          		// Schedule update interval.
          		var self = this;
          		setInterval(function() {
          			self.updateDom();
          		}, 1000);
          		// Set locale.
          		moment.locale(config.language);
          	},
          

          Note from Moderator: Please use proper Markdown on code snippets for easier reading.

          1 Reply Last reply Reply Quote 0
          • mochmanM Offline
            mochman Module Developer
            last edited by

            @samydp all you should have to do is change the language portion of your config.js from
            language: 'en', -> language: 'de',

            As for the rest of your modules, I recommend adding them one by one to your config.js file to make sure they work. If you get that electron.js error, it was on the module you just added.

            -Luke

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

              Many thanks for your help and your tip! but only tow module works =( the clock an the compliments why this ?
              Whenever I will add another module of the screen black!
              i have install the electron.js again but
              the add the module as in the proceeds described readme does not work !

              1 Reply Last reply Reply Quote 0
              • mochmanM Offline
                mochman Module Developer
                last edited by

                Beats me, did you run npm install in the MagicMirror folder?

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

                  yes i have install the npm in the MM Folder , only compliment, clock and news works other moduls come a error ( no config file )

                  1 Reply Last reply Reply Quote 0
                  • EoFE Offline
                    EoF
                    last edited by

                    Hi I am having this same issue. Did you ever get it working?

                    1 Reply Last reply Reply Quote 0
                    • MichMichM Offline
                      MichMich
                      last edited by

                      Maybe I’m missing something here, but it seems you try to run npm start from a remote shell. That does not work since it doesn’t know on which screen to start. Try: DISPLAY=:0 npm start

                      EoFE 1 Reply Last reply Reply Quote 0
                      • EoFE Offline
                        EoF @MichMich
                        last edited by

                        @MichMich Hi! I am running npm start directly on the pi, and I get the same exact error.

                        1 Reply Last reply Reply Quote 0
                        • EoFE Offline
                          EoF
                          last edited by paviro

                          As an update to my situation, I was able to get mine working by installing electron dependencies.

                          sudo apt-get install libgtk2.0-0 libnotify4 libgconf2-4 libnss3

                          I am running a pi 3 with Jessie by the way.

                          FYI @MichMich @paviro

                          1 Reply Last reply Reply Quote 0
                          • KirAsh4K Offline
                            KirAsh4 Moderator
                            last edited by

                            Interesting as I didn’t have to do that as a separate step. However, as I posted in a different thread yesterday, keeping the base software on your Raspberry Pi is important.

                            A Life? Cool! Where can I download one of those from?

                            1 Reply Last reply Reply Quote 0
                            • paviroP Offline
                              paviro
                              last edited by

                              Mhh maybe we should add those dependencies and/or apt-get upgrade to the installer script?

                              We're all stories in the end. Just make it a good one, eh?

                              – The Doctor

                              1 Reply Last reply Reply Quote 0
                              • KirAsh4K Offline
                                KirAsh4 Moderator
                                last edited by

                                I vote no because that’s outside the scope of MM. However, we could adjust the installer to pause and ask the user if they have performed an update/upgrade on their base rpi before continuing on with the MM install. This gives the user an opportunity to exit the installer and do the requires prerequisites before returning to the installer (at which point they can then say ‘yes’ to the question.)

                                A Life? Cool! Where can I download one of those from?

                                EoFE 1 Reply Last reply Reply Quote 0
                                • EoFE Offline
                                  EoF @KirAsh4
                                  last edited by

                                  @KirAsh4 I did the manual install for mine anyways, but I could have sworn I did an update / upgrade but I may be wrong.

                                  Maybe it’s something that can just be added to the install instructions as a small note.

                                  1 Reply Last reply Reply Quote 0
                                  • KirAsh4K Offline
                                    KirAsh4 Moderator
                                    last edited by

                                    You know, I have a spare rpi-3 sitting at home. I’ll wipe it clean and start fresh when I get home later and see if I run into issues. All in the name of science!

                                    A Life? Cool! Where can I download one of those from?

                                    EoFE 1 Reply Last reply Reply Quote 0
                                    • EoFE Offline
                                      EoF @KirAsh4
                                      last edited by

                                      @KirAsh4 haha alright go for it! Let us know what comes of it.

                                      1 Reply Last reply Reply Quote 0
                                      • KirAsh4K Offline
                                        KirAsh4 Moderator
                                        last edited by

                                        Will do. Right after I inspect the 3D print that I left going since last night, and I start the next print. And after I swap a laptop with a friend. And after I have dinner. And after I help another friend with their phone. And after i do some laser cutting of mock up pieces for an art piece. And after I dig up the electronic bits I need for a kid’s costume. And after I … and after … and … oh you’ll hear from me some time in 2036. Really, I promise.

                                        (Is there ever such a thing as having too many projects going at the same time?)

                                        A Life? Cool! Where can I download one of those from?

                                        EoFE 1 Reply Last reply Reply Quote 0
                                        • EoFE Offline
                                          EoF @KirAsh4
                                          last edited by

                                          @KirAsh4 Haha I know that feeling!

                                          1 Reply Last reply Reply Quote 0
                                          • KirAsh4K Offline
                                            KirAsh4 Moderator
                                            last edited by

                                            Ok, I finally had time last night to run through a complete setup and install, from taking the rpi out of its box to having MM up and running. I did not have to manually install any of the aforementioned packages. Which makes me wonder, @EoF, were you running the full Jessie distribution, or Jessie-Lite? If it’s Jessie-Lite, you would’ve had to install a lot more than just those few pieces as it does not come with an X-server.

                                            Anyway, I’ll have a step-by-step tutorial written up soon …hmm, let’s check calendar … oh yeah, some time in 2036.

                                            A Life? Cool! Where can I download one of those from?

                                            EoFE 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
                                            • 2 / 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