MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

PI Zero module issues for this beginner



  • 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.



  • @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



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



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

    do this

    cd ~
    mv MagicMirror  MagicMirror.save
    


  • 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.



  • @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



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



  • @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!
    
    


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

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



  • 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
    
    

Log in to reply