MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    UNSOLVED PI Zero module issues for this beginner

    Troubleshooting
    2
    24
    1370
    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.
    • W
      wagon40 last edited by

      Hello,

      After a year of on and off trying to get a MM to work on a PI I figured it out and even changed the stock modules to work for me. I have to do everything from the command line. I have no desktop. I found a direct load and go at
      http://emmanuelcontreras.com/how-to/how-to-create-a-magic-mirror-2-with-pi-zero-w/
      I downloaded the image and started it up.

      Issues:

      1. I cant figure out how to see what modules I currently have loaded? (what is the command line script?
      2. I loaded My-Commute followed all of the 3rd party direction. when I went into the config.js I had to manually add the configuration I found on the My-commute page so is that normal to have to enter in configuration to the config.js? when I started up the mirror it showed the default walking, flying, driving with an error at the end. So how to I edit the actual modular configuration information from the command line?

      any help would be great. I will attempt to get code for you tomorrow when im not at work.

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

        @wagon40 you should use my installation script… it does it all…
        see here https://github.com/sdetweil/MagicMirror_scripts/blob/master/run-start.sh

        use the desktop version of the pi 0… stretch or buster… jessie is too old

        what modules

        what is installed is folders in ~/MagicMirror/modules
        what is being used , see the ~/MagicMirror/config/config.js, and each module: statement
        where disabled is not specified or disabled: false

        nano is the commandline editor

        ctrl-o to save the file
        ctrl-x to exit
        ctrl-w to search the file

        I had to manually add the configuration I found on the My-commute page so is that normal to have to enter in configuration to the config.js?

        yes. u install the code, then have to update the MM config to actually use it

        Sam

        Create a working config
        How to add modules

        W 1 Reply Last reply Reply Quote 0
        • W
          wagon40 @sdetweil last edited by

          @sdetweil thank you for the quick reply. I will try your download tomorrow if I get a chance and hopefully have better luck.

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

            @wagon40 to install MM again, you will need to rename the current folder out of the way

            do this

            cd ~
            mv MagicMirror  MagicMirror.save
            

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • W
              wagon40 last edited by

              can you send me the direct script to place in the command line to load your script? I have tried a few bash $( bala bal bal) and im not getting much luck.

              I tried to follow this https://forum.magicmirror.builders/topic/9386/installing-on-a-pi-zero/72
              but of course it wont start. screen goes to sleep and it only starts for a minute then goes to desktop.
              I installed buster with desktop.

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

                @wagon40 from the page I referenced

                bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
                

                you can do that over ssh, or on the pi monitor terminal session

                it will prompt you about autostart with pm2 and turning off screensaver

                Sam

                Create a working config
                How to add modules

                W 1 Reply Last reply Reply Quote 0
                • W
                  wagon40 @sdetweil last edited by

                  @sdetweil
                  all was going well until the dependencies stopped it. tired to send the code using </> or :: but it blanks out the submit button?

                  W 1 Reply Last reply Reply Quote 0
                  • W
                    wagon40 @wagon40 last edited by

                    @wagon40

                    npm WARN grunt-stylelint@0.13.0 requires a peer of stylelint@^12.0.0 but none is installed. You must install peer dependencies yourself.
                    
                    npm ERR! code ELIFECYCLE
                    npm ERR! errno 1
                    npm ERR! electron-chromedriver@1.8.0 install: `node ./download-chromedriver.js`
                    npm ERR! Exit status 1
                    npm ERR!
                    npm ERR! Failed at the electron-chromedriver@1.8.0 install script.
                    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/pi/.npm/_logs/2020-02-05T21_24_22_985Z-debug.log
                    Unable to install dependencies!
                    
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sdetweil @wagon40 last edited by

                      @wagon40 hm… I don’t see that on my pi 0…

                      And electron is optional, so there should be no need for chrome driver

                      Sam

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • W
                        wagon40 last edited by

                        Same issue I had with the other download. any suggestion?

                        
                        npm ERR! code ELIFECYCLE
                        npm ERR! errno 1
                        npm ERR! electron-chromedriver@1.8.0 install: `node ./download-chromedriver.js`
                        npm ERR! Exit status 1
                        npm ERR!
                        npm ERR! Failed at the electron-chromedriver@1.8.0 install script.
                        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                        
                        npm ERR! A complete log of this run can be found in:
                        npm ERR!     /home/pi/.npm/_logs/2020-02-05T22_31_04_266Z-debug.log
                        
                        
                        S 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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy