• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

PI Zero module issues for this beginner

Scheduled Pinned Locked Moved Unsolved Troubleshooting
24 Posts 2 Posters 5.7k Views 2 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.
  • W Offline
    wagon40
    last edited by Feb 4, 2020, 8:51 PM

    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 Feb 4, 2020, 9:00 PM Reply Quote 0
    • S Away
      sdetweil @wagon40
      last edited by sdetweil Feb 4, 2020, 9:01 PM Feb 4, 2020, 9:00 PM

      @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

      How to add modules

      learning how to use browser developers window for css changes

      W 1 Reply Last reply Feb 5, 2020, 1:25 AM Reply Quote 0
      • W Offline
        wagon40 @sdetweil
        last edited by Feb 5, 2020, 1:25 AM

        @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 Feb 5, 2020, 12:24 PM Reply Quote 0
        • S Away
          sdetweil @wagon40
          last edited by Feb 5, 2020, 12:24 PM

          @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

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • W Offline
            wagon40
            last edited by Feb 5, 2020, 8:29 PM

            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 Feb 5, 2020, 8:29 PM Reply Quote 0
            • S Away
              sdetweil @wagon40
              last edited by sdetweil Feb 5, 2020, 8:30 PM Feb 5, 2020, 8:29 PM

              @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

              How to add modules

              learning how to use browser developers window for css changes

              W 1 Reply Last reply Feb 5, 2020, 9:35 PM Reply Quote 0
              • W Offline
                wagon40 @sdetweil
                last edited by Feb 5, 2020, 9:35 PM

                @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 Feb 5, 2020, 9:40 PM Reply Quote 0
                • W Offline
                  wagon40 @wagon40
                  last edited by Feb 5, 2020, 9:40 PM

                  @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 Feb 5, 2020, 10:07 PM Reply Quote 0
                  • S Away
                    sdetweil @wagon40
                    last edited by Feb 5, 2020, 10:07 PM

                    @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

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      wagon40
                      last edited by Feb 5, 2020, 10:33 PM

                      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 Feb 5, 2020, 10:34 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        2/24
                        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