• 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 510.9k 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.
  • P Offline
    psteimann @12wsx
    last edited by Sep 20, 2017, 10:16 PM

    @12wsx Change the Port from 8080 to 8099 and then try again…solved a lot of problems for me…

    1 Reply Last reply Reply Quote 0
    • H Offline
      Hawking
      last edited by Oct 14, 2017, 10:35 PM

      After some weeks with the MagicMirror running, my SD card got corrupted and I decided to reinstall the system from scratch. I switched from “Jessie Light” to “Stretch light”, used node 6.11.4 and of course the latest MagicMirror 2.1.3.

      I can access the MM from the browser of my laptop, but Midori only shows a white page. Even for a very simple config file:

      var config = {
              address: "",
              port: 8080,
              ipWhitelist: ["192.168.2.185", "127.0.0.1", "::ffff:127.0.0.1", "::1"],
              language: "en",
              units: "metric",
              modules: [
              {
                      module: "helloworld",
                      position: "bottom_bar",
                      config: {
                              text: "Hello world!"
                      }
              }
              ]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      

      The start of MM gives no error

      Starting MagicMirror: v2.1.3
      Loading config ...
      Loading module helpers ...
      No helper found for module: helloworld.
      All module helpers loaded.
      Starting server on port 8080 ...
      Server started ...
      Sockets connected & modules started ...
      
      Ready to go! Please point your browser to: http://localhost:8080
      

      and if I change from

      midori -e Fullscreen -a http://localhost:8080
      

      to

      midori -e Fullscreen -a http://www.google.de
      

      I see the google page. So Midori itself and the output on screen seems working as well.

      Is anybody having an idea where to search for the error?
      Is anybody using MagicMirror 2.1.3 on its Pi Zero?

      D 1 Reply Last reply Oct 19, 2017, 11:21 AM Reply Quote 0
      • D Offline
        Doubleve @Hawking
        last edited by Oct 19, 2017, 11:21 AM

        @Hawking same problem rpi 1

        N 1 Reply Last reply Oct 19, 2017, 4:26 PM Reply Quote 0
        • N Offline
          noorm91 @Doubleve
          last edited by Oct 19, 2017, 4:26 PM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • 1 Offline
            12wsx
            last edited by Oct 19, 2017, 4:34 PM

            first set:
            set ipWhitelist: [] to allow all IP addresses.

            Warning, this enables from everywhere (on your net) have access.
            then in webbrowser go to pizero ip with port set in config ex. 192.168.1.12:8080 and check if its working

            1 Reply Last reply Reply Quote 0
            • D Offline
              Doubleve
              last edited by Doubleve Oct 19, 2017, 7:00 PM Oct 19, 2017, 6:58 PM

              don’t work for me, cannot connect to destination :-(

              when i do

              DISPLAY=:0 npm start

              npm ERR! path /home/pi/package.json
              npm ERR! code ENOENT
              npm ERR! errno -2
              npm ERR! syscall open
              npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
              npm ERR! enoent This is related to npm not being able to find a file.
              npm ERR! enoent

              npm ERR! A complete log of this run can be found in:
              npm ERR! /home/pi/.npm/_logs/2017-10-19T18_58_10_170Z-debug.log

              D H 2 Replies Last reply Oct 19, 2017, 7:08 PM Reply Quote 0
              • D Offline
                Doubleve @Doubleve
                last edited by Oct 19, 2017, 7:08 PM

                why he’s looking for /home/pi/package.json then it is /home/pi/MagicMirror/package.json ?

                This is my log

                /home/pi/.npm/_logs/2017-10-19T18_58_10_170Z-debug.log:

                0 info it worked if it ends with ok
                1 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘start’ ]
                2 info using npm@5.3.0
                3 info using node@v8.3.0
                4 verbose config Skipping project config: /home/pi/.npmrc. (matches userconfig)
                5 verbose stack Error: ENOENT: no such file or directory, open ‘/home/pi/package.json’
                6 verbose cwd /home/pi
                7 verbose Linux 4.1.19+
                8 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
                9 verbose node v8.3.0
                10 verbose npm v5.3.0
                11 error path /home/pi/package.json
                12 error code ENOENT
                13 error errno -2
                14 error syscall open
                15 error enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
                16 error enoent This is related to npm not being able to find a file.
                17 verbose exit [ -2, true ]

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Hawking @Doubleve
                  last edited by Oct 19, 2017, 9:55 PM

                  @Doubleve
                  In which directory did you execute npm start
                  ? I would assume you would first go to your MagicMirror directory (cd /home/pi/MagicMirror ). This would also explain the problem with the missing package.json file.

                  However, I’m not sure if npm start works at all in combination with the serveronly mode (needed for the Pi Zero). For starting, I use the method described in the first post of this thread in the section “Setting up boot scripts”.

                  I can acccess my MM from remote, however still didn’t get it to show in the Midori browser :-/

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Doubleve
                    last edited by Oct 20, 2017, 6:44 AM

                    as you said I was not in the right record.
                    I had an error with the libnss3 library. Now more error

                    DISPLAY =: 0 npm start

                    magicmirror@2.1.3 start / home / pi / MagicMirror
                    sh run-start.sh

                    pi @ raspberrypi ~ / MagicMirror $ npm run config: check

                    magicmirror@2.1.3 config: check / home / pi / MagicMirror
                    node tests / configs / check_config.js

                    Checking file … /home/pi/MagicMirror/config/config.js
                    Your configuration file not containt syntax error :)

                    but it still does not work with midori

                    1 Reply Last reply Reply Quote 0
                    • N Offline
                      noorm91
                      last edited by Oct 20, 2017, 9:06 PM

                      What does npm start do in /MagicMirror

                      bheplerB 1 Reply Last reply Oct 20, 2017, 9:45 PM Reply Quote 0
                      • 1
                      • 2
                      • 11
                      • 12
                      • 13
                      • 14
                      • 15
                      • 20
                      • 21
                      • 13 / 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