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.

    Please help

    Scheduled Pinned Locked Moved General Discussion
    29 Posts 6 Posters 22.5k Views 5 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.
    • bheplerB Offline
      bhepler Module Developer @moris
      last edited by bhepler

      @moris said in Please help:

      Pi @ raspberrypi: ~ $ cd MagicMirror
      Pi @ raspberrypi: ~ / MagicMirror $ cp config / config.js.samaple config / config.js
      Cp: ​​target ‘config.js’ is not a directory
      Pi @ raspberrypi: ~ / MagicMirror $

      There’s a problem in your second command. There should be no space between config and the slash. There needs to be a period at the end of sample. It should read like so: cp config/config.js.sample config/config.js

      That line breaks down into command-source-destination. “Copy”-“sample file”-“destination file”. cp config/config.js.sample config/config.js

      1 Reply Last reply Reply Quote 1
      • D Offline
        darrene
        last edited by darrene

        @Moris, when you use the copy (cp) command, I think you have spaces where you shouldn’t.
        if you are in the MagicMirror folder, the command should be;
        cp(space)config/config.js.sample(space)config/config.js

        it is possible to use to auto-complete the text where a file or folder exists if you want to.
        I am not sure why you are getting the Npm ERR! messages. I’m hoping someone else can help here. Are you using npm start on the pi locally or are you SSH’ing into it? I’ve only ever started mine when I am on the Pi itself.

        Edit: @bhepler is a faster typer than me! :)

        your /boot/config.txt should only have =1 and not =:1 for the display_rotate command. Here is an example;

        # For more options and information see
        # http://www.raspberrypi.org/documentation/configuration/config-txt.md
        # Some settings may impact device functionality. See link above for details
        
        # uncomment if you get no picture on HDMI for a default "safe" mode
        #hdmi_safe=1
        
        # uncomment this if your display has a black border of unused pixels visible
        # and your display can output without overscan
        #disable_overscan=1
        # uncomment the following to adjust overscan. Use positive numbers if console
        # goes off screen, and negative if there is too much border
        #overscan_left=16
         #overscan_right=16
        #overscan_top=16
        #overscan_bottom=16
        
        # uncomment to force a console size. By default it will be display's size minus
        # overscan.
        #framebuffer_width=1280
        #framebuffer_height=720
        
        # uncomment if hdmi display is not detected and composite is being output
        #hdmi_force_hotplug=1
        
        # uncomment to force a specific HDMI mode (this will force VGA)
        #hdmi_group=1
        #hdmi_mode=1
        
        # uncomment to force a HDMI mode rather than DVI. This can make audio work in
        # DMT (computer monitor) modes
        #hdmi_drive=2
        
        # uncomment to increase signal to HDMI, if you have interference, blanking, or
        # no display
        #config_hdmi_boost=4
        
        # uncomment for composite PAL
        #sdtv_mode=2
        
        #uncomment to overclock the arm. 700 MHz is the default.
        #arm_freq=800
        
        # Uncomment some or all of these to enable the optional hardware interfaces
        #dtparam=i2c_arm=on
        #dtparam=i2s=on
        #dtparam=spi=on
        
        # Uncomment this to enable the lirc-rpi module
        #dtoverlay=lirc-rpi
        
        # Additional overlays and parameters are documented /boot/overlays/README
        
        # Enable audio (loads snd_bcm2835)
        dtparam=audio=on
        display_rotate=1
        

        Hope that helps!

        1 Reply Last reply Reply Quote 1
        • M Offline
          moris
          last edited by

          This is really fast here with answers. respect. I have no space between config and slash made that is so created when copying from the text. I wrote exactly as you showed it nevertheless, he says there is no folder available. But I see the sample I wrote samaple the whole time maybe this could be the error? Npm start I have with and without ssh tested in the cd MagicMirror and with both the same error. Has what with the config.js to do because it was not?

          1 Reply Last reply Reply Quote 0
          • M Offline
            moris
            last edited by

            Ok the problem with config.js is allright. I have write samaple the wrong. With sample is korrekt. But npm start have the same problem. Display Rotate. Why the error ?

            1 Reply Last reply Reply Quote 0
            • L Offline
              leisi
              last edited by

              Uahahha, i´ve the same or a similar problem:

              Hardware: Pi3 with following error, Please help me, whats the problem with my mirror?
              I can´t open the config/config.js file for editing and add. i get this error while npm start:
              (An answer in german would be nice, thanks)

              pi@magicmirror:~/MagicMirror $ git pull
              Already up-to-date.
              pi@magicmirror:~/MagicMirror $ git status
              Auf Branch master
              Ihr Branch ist auf dem selben Stand wie ‘origin/master’.
              nichts zu committen, Arbeitsverzeichnis unverändert
              pi@magicmirror:~/MagicMirror $ cp config/config.js.sample config/config.js
              pi@magicmirror:~/MagicMirror $ npm start

              magicmirror@2.0.0 start /home/pi/MagicMirror
              electron js/electron.js

              npm ERR! Linux 4.4.26-v7+
              npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “start”
              npm ERR! node v6.9.1
              npm ERR! npm v3.10.8
              npm ERR! code ELIFECYCLE
              npm ERR! magicmirror@2.0.0 start: electron js/electron.js
              npm ERR! Exit status 1
              npm ERR!
              npm ERR! Failed at the magicmirror@2.0.0 start script ‘electron js/electron.js’.
              npm ERR! Make sure you have the latest version of node.js and npm installed.
              npm ERR! If you do, this is most likely a problem with the magicmirror package,
              npm ERR! not with npm itself.
              npm ERR! Tell the author that this fails on your system:
              npm ERR! electron js/electron.js
              npm ERR! You can get information on how to open an issue for this project with:
              npm ERR! npm bugs magicmirror
              npm ERR! Or if that isn’t available, you can get their info via:
              npm ERR! npm owner ls magicmirror
              npm ERR! There is likely additional logging output above.

              npm ERR! Please include the following file with any support request:
              npm ERR! /home/pi/MagicMirror/npm-debug.log

              L 1 Reply Last reply Reply Quote 0
              • L Offline
                leisi @leisi
                last edited by

                @leisi said in Please help:

                Uahahha, i´ve the same or a similar problem:

                Hardware: Pi3 with following error, Please help me, whats the problem with my mirror?
                I can´t open the config/config.js file for editing and add. i get this error while npm start:
                (An answer in german would be nice, thanks)

                pi@magicmirror:~/MagicMirror $ git pull
                Already up-to-date.
                pi@magicmirror:~/MagicMirror $ git status
                Auf Branch master
                Ihr Branch ist auf dem selben Stand wie ‘origin/master’.
                nichts zu committen, Arbeitsverzeichnis unverändert
                pi@magicmirror:~/MagicMirror $ cp config/config.js.sample config/config.js
                pi@magicmirror:~/MagicMirror $ npm start

                magicmirror@2.0.0 start /home/pi/MagicMirror
                electron js/electron.js

                npm ERR! Linux 4.4.26-v7+
                npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “start”
                npm ERR! node v6.9.1
                npm ERR! npm v3.10.8
                npm ERR! code ELIFECYCLE
                npm ERR! magicmirror@2.0.0 start: electron js/electron.js
                npm ERR! Exit status 1
                npm ERR!
                npm ERR! Failed at the magicmirror@2.0.0 start script ‘electron js/electron.js’.
                npm ERR! Make sure you have the latest version of node.js and npm installed.
                npm ERR! If you do, this is most likely a problem with the magicmirror package,
                npm ERR! not with npm itself.
                npm ERR! Tell the author that this fails on your system:
                npm ERR! electron js/electron.js
                npm ERR! You can get information on how to open an issue for this project with:
                npm ERR! npm bugs magicmirror
                npm ERR! Or if that isn’t available, you can get their info via:
                npm ERR! npm owner ls magicmirror
                npm ERR! There is likely additional logging output above.

                npm ERR! Please include the following file with any support request:
                npm ERR! /home/pi/MagicMirror/npm-debug.log

                add. applies my display_rotate file is correct, without the “:”:
                “/boot/config.txt should only have =1 and not =:1 for the display_rotate command.”

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

                  have you tried a sudo apt-get update ?
                  It might be worth giving that a try - afterwards, reboot then try re-running npm start again

                  L 1 Reply Last reply Reply Quote 0
                  • L Offline
                    leisi @darrene
                    last edited by

                    @darrene said in Please help:

                    sudo apt-get update

                    After the sudo apt-get update again i get following error again:
                    (connection via SSH from Mac / my OS is Raspbian Jessie)

                    pi@magicmirror:~ $ cd MagicMirror
                    pi@magicmirror:~/MagicMirror $ npm start

                    magicmirror@2.0.0 start /home/pi/MagicMirror
                    electron js/electron.js

                    npm ERR! Linux 4.4.26-v7+
                    npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “start”
                    npm ERR! node v6.9.1
                    npm ERR! npm v3.10.8
                    npm ERR! code ELIFECYCLE
                    npm ERR! magicmirror@2.0.0 start: electron js/electron.js
                    npm ERR! Exit status 1
                    npm ERR!
                    npm ERR! Failed at the magicmirror@2.0.0 start script ‘electron js/electron.js’.
                    npm ERR! Make sure you have the latest version of node.js and npm installed.
                    npm ERR! If you do, this is most likely a problem with the magicmirror package,
                    npm ERR! not with npm itself.
                    npm ERR! Tell the author that this fails on your system:
                    npm ERR! electron js/electron.js
                    npm ERR! You can get information on how to open an issue for this project with:
                    npm ERR! npm bugs magicmirror
                    npm ERR! Or if that isn’t available, you can get their info via:
                    npm ERR! npm owner ls magicmirror
                    npm ERR! There is likely additional logging output above.

                    npm ERR! Please include the following file with any support request:
                    npm ERR! /home/pi/MagicMirror/npm-debug.log
                    pi@magicmirror:~/MagicMirror $

                    L KirAsh4K 2 Replies Last reply Reply Quote 0
                    • L Offline
                      leisi @leisi
                      last edited by

                      @leisi said in Please help:

                      @darrene said in Please help:

                      sudo apt-get update

                      After the sudo apt-get update again i get following error again:
                      (connection via SSH from Mac / my OS is Raspbian Jessie)

                      pi@magicmirror:~ $ cd MagicMirror
                      pi@magicmirror:~/MagicMirror $ npm start

                      magicmirror@2.0.0 start /home/pi/MagicMirror
                      electron js/electron.js

                      npm ERR! Linux 4.4.26-v7+
                      npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “start”
                      npm ERR! node v6.9.1
                      npm ERR! npm v3.10.8
                      npm ERR! code ELIFECYCLE
                      npm ERR! magicmirror@2.0.0 start: electron js/electron.js
                      npm ERR! Exit status 1
                      npm ERR!
                      npm ERR! Failed at the magicmirror@2.0.0 start script ‘electron js/electron.js’.
                      npm ERR! Make sure you have the latest version of node.js and npm installed.
                      npm ERR! If you do, this is most likely a problem with the magicmirror package,
                      npm ERR! not with npm itself.
                      npm ERR! Tell the author that this fails on your system:
                      npm ERR! electron js/electron.js
                      npm ERR! You can get information on how to open an issue for this project with:
                      npm ERR! npm bugs magicmirror
                      npm ERR! Or if that isn’t available, you can get their info via:
                      npm ERR! npm owner ls magicmirror
                      npm ERR! There is likely additional logging output above.

                      npm ERR! Please include the following file with any support request:
                      npm ERR! /home/pi/MagicMirror/npm-debug.log
                      pi@magicmirror:~/MagicMirror $

                      reboot would naturally also done after the update…

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

                        @leisi said in Please help:

                        @darrene said in Please help:

                        sudo apt-get update

                        After the sudo apt-get update again i get following error again:
                        (connection via SSH from Mac / my OS is Raspbian Jessie)

                        pi@magicmirror:~ $ cd MagicMirror
                        pi@magicmirror:~/MagicMirror $ npm start

                        I lost count on how many times this has come up already. You can not start the mirror using that command when you are remotely SSHd into the rpi. The rpi simply does not know what monitor to use, yours, or the one connected to it. You have to tell it that:

                        DISPLAY=:0 npm start

                        Use the correct command, and then figure out what the problems are.

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

                        L 1 Reply Last reply Reply Quote 1
                        • L Offline
                          leisi @KirAsh4
                          last edited by

                          @KirAsh4 oh fucking, yes, you´re right, thanks very much for your help.

                          cowboysdudeC 1 Reply Last reply Reply Quote 0
                          • cowboysdudeC Offline
                            cowboysdude Module Developer @leisi
                            last edited by

                            @leisi said in Please help:

                            @KirAsh4 oh fucking, yes, you´re right, thanks very much for your help.

                            While I find it humorous please be careful with replies… we don’t know how many youngsters we have roaming around here. Appreciate it! :)

                            L 1 Reply Last reply Reply Quote 0
                            • L Offline
                              leisi @cowboysdude
                              last edited by

                              @cowboysdude ok, pardon, my mistkake, i´ll do it next time, i´m so proud of my new magicmirror…

                              cowboysdudeC 1 Reply Last reply Reply Quote 0
                              • cowboysdudeC Offline
                                cowboysdude Module Developer @leisi
                                last edited by cowboysdude

                                @leisi said in Please help:

                                @cowboysdude ok, pardon, my mistkake, i´ll do it next time, i´m so proud of my new magicmirror…

                                LOL I’m happy you are getting it working!! It’s a pretty awesome feeling, isn’t it? :)

                                Anytime you need help please feel free to ask and there are many people here that love to help!

                                No worries, no harm done, you made no mistake it happens and it’s okay!

                                Glad you’re here!

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  moris
                                  last edited by

                                  With me still the same error synonymous with the command DISPLAY =: 0 npm start but the same error

                                  L 1 Reply Last reply Reply Quote 0
                                  • L Offline
                                    leisi @moris
                                    last edited by

                                    @moris do you tried it from the terminal on raspberry or via Mac or Windows? Try this command only in raspberrys terminal…

                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      moris @leisi
                                      last edited by

                                      @leisi said in Please help:

                                      @moris do you tried it from the terminal on raspberry or via Mac or Windows? Try this command only in raspberrys terminal…

                                      On the raspi terminal

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        moris
                                        last edited by

                                        I log in cd MagicMirror
                                        In cd MagicMirror write DISPLAY=:0 npm start is this korrekt?

                                        L 1 Reply Last reply Reply Quote 0
                                        • L Offline
                                          leisi @moris
                                          last edited by

                                          @moris yes, my mirror starts with these commands on raspberrys terminal

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            moris
                                            last edited by

                                            By me the same error list. Somewhere is an error or is not installed what can it be?

                                            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