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

How I got my Magic Mirror working on a Raspberry Pi 0 (zero)

Scheduled Pinned Locked Moved Tutorials
raspberry pipi0zeropizeropi1
204 Posts 47 Posters 475.1k Views 47 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.
  • N Offline
    NoNameRo @janth
    last edited by May 10, 2018, 6:28 PM

    @janth said in How I got my Magic Mirror working on a Raspberry Pi 0 (zero):
    Chromium only shows a line at the top of the screen saying it can’t be run as sudo.

    Any idea on how to fix this? Or how to get midori to work?

    Thanks in advance :)

    add --no-sandbox
    for example - chromium-browser --no-sandbox --disable-infobars --start-maximized --noerrdialogs --kiosk --incognito http://localhost:8080

    1 Reply Last reply Reply Quote 1
    • J Offline
      janth
      last edited by May 13, 2018, 3:08 PM

      Thank you @NoNameRo !! It works now on Stretch. I can’t use localhost:8080 but xxx.xxx.xxx.xxx:8080 works fine.

      Since initd is replaced by systemd, how do I run a script at boot up? For the last couple of days, I’ve been using a solution using pm2, but it seems to run the “node serveronly/” process multiple times so that my pi’s cpu has been at 100 % all the time.

      Where do I have to place the script with
      cd ~/MagicMirror
      node serveronly &
      sleep 45
      sudo xinit /home/pi/chromium_start.sh

      and how do I activate it for boot up?

      N 1 Reply Last reply May 14, 2018, 5:15 PM Reply Quote 0
      • N Offline
        NoNameRo @janth
        last edited by May 14, 2018, 5:15 PM

        @janth said in How I got my Magic Mirror working on a Raspberry Pi 0 (zero):

        have them under /home /pi/

        Auto Starting Chromium
        
        
        sudo nano /home/pi/startChromium.sh
        
        #!/bin/sh
        unclutter &
        xset -dpms # disable DPMS (Energy Star) features.
        xset s off # disable screen saver
        xset s noblank # don’t blank the video device
        chromium-browser --no-sandbox --disable-infobars --start-maximized --noerrdialogs --kiosk --incognito http://localhost:8080
        
        	Control + X > Y > Return
        
        sudo chmod a+x /home/pi/startChromium.sh
        	
        ------------------------------------------------------------------------------------------------	
        	
        Auto Starting Mirror
        
        
        sudo nano /home/pi/startMirror.sh
        
        #! /bin/bash
        cd /home/pi/MagicMirror
        node serveronly
        
        	Control + X > Y > Return
        
        sudo chmod a+x /home/pi/startMirror.sh
        
        sudo nano /etc/rc.local
        	Add the following lines before exit 0:
        /home/pi/startMirror.sh &
        (/bin/sleep 30 && sudo xinit /home/pi/startChromium.sh) &
        
        	Control + X > Y > Return
        	
        		sudo reboot
        
        1 Reply Last reply Reply Quote 0
        • L Offline
          Lahim
          last edited by Jul 11, 2018, 2:23 PM

          @janth - thanks I also used pm2 but your way is better.

          But I have other problem - I do not see right modules on the mirror. There is no problem from the local net.
          I checked top_right and bottom_right - same result.
          I moved clock module from top_left to top_right and it became invisible.
          Any clue?

          1 Reply Last reply Reply Quote 0
          • C Offline
            chilln
            last edited by Jul 22, 2018, 8:12 PM

            @jpvalery I did have the same problem with black and/or white screen as you had, it seems it was related to the old v4.xx version of nodejs.

            Once i installed the newest armv6 version (at this time: https://nodejs.org/dist/v8.11.3/node-v8.11.3-linux-armv6l.tar.xz) it started working in Chromium but not in Midori. Good enough for me though.

            A 1 Reply Last reply Sep 7, 2018, 10:55 PM Reply Quote 0
            • E Offline
              epi
              last edited by Aug 29, 2018, 12:43 PM

              Hi,
              I have Pi1, beend following the guide with the exception of installing latest software.
              I was not installing wifi, using wired connection.

              So now I’m on step 6
              cd /home/pi/
              sudo apt-get install git
              git clone https://github.com/MichMich/MagicMirror
              cd MagicMirror

              all good, but on next command sudo npm install getting error message:

              pi@raspberrypi:~/MagicMirror $ sudo npm install
              /usr/bin/nodejs: relocation error: /usr/bin/nodejs: symbol , version GLIBC_2.4 not defined in file libc.so.6 with link time reference

              1 Reply Last reply Reply Quote 0
              • E Offline
                epi
                last edited by Aug 30, 2018, 12:50 AM

                Anyhow, I did a fresh install and tried this both with the latest and originally mentioned software and it does not work. I think this guide is outdated.

                1 Reply Last reply Reply Quote 1
                • A Offline
                  asaxena11
                  last edited by Sep 7, 2018, 10:48 PM

                  Hello,

                  I tried running the instructions provided in the guide and I get stuck on running npm install . The error occurs when trying to download electron package. how did you all proceed.

                  I am running rasbian Stretch lite

                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    asaxena11 @chilln
                    last edited by Sep 7, 2018, 10:55 PM

                    @chilln

                    How did you upgrade Node ?

                    1 Reply Last reply Reply Quote 0
                    • L Offline
                      Lahim
                      last edited by Sep 12, 2018, 8:00 PM

                      @asaxena11

                      1. sudo wget http://node-arm.herokuapp.com/node_latest_armhf.deb
                      2. sudo dpkg -i node_latest_armhf.deb
                      3. sudo apt-get install npm

                      My problem:
                      I made fresh installation of whole magic mirror about 2 weeks ago because I had a problem with screen size - have huge black part of screen which is “covering” right modules.
                      I tried electronOptions, modifiyng the /boot/config.txt and without luck.
                      I am running 2.4.1 on fresh installation of Stretch Lite

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 17
                      • 18
                      • 19
                      • 20
                      • 21
                      • 20 / 21
                      • 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