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

Magic Mirror on the Raspberry Pi 1, agonizingly difficult

Scheduled Pinned Locked Moved Unsolved Tutorials
magic mirrorraspberry piraspberry pi 1problems running mmserveronly
33 Posts 8 Posters 20.9k Views 7 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.
  • M Offline
    MMRPi1
    last edited by Jul 2, 2017, 10:04 AM

    Now the software is working I have a few more questions:
    (Btw I’m running MM in serveronly mode in Chromium.)

    1. How do I make MM auto run when the Pi turns on, disable screensaver and make it fullscreen?
    2. Should I be concerned that the RPi gets quite hot in operation, especially as it will be in a frame and in constant operation.
    3. Is it advisable to turn the raspberry pi off (and turn off the magic mirror) by switching it off at the mains, and if not how would I turn it off and on?
    ? M 2 Replies Last reply Jul 2, 2017, 3:27 PM Reply Quote 0
    • M Offline
      MMRPi1
      last edited by Jul 2, 2017, 10:14 AM

      Also, how do you rotate the screen??

      M 1 Reply Last reply Jul 2, 2017, 3:32 PM Reply Quote 0
      • ? Offline
        A Former User @MMRPi1
        last edited by A Former User Jul 2, 2017, 5:31 PM Jul 2, 2017, 3:27 PM

        @MMRPi1
        For autostart, read this
        Don’t worry about heat unless overclocking. However you can add small pan and ventilatoin holes on your frame.
        You can use cron for scheduly shutdown or reboot. But you cannot turn on RPI automatically. You need additional hardware for that. You can consider timer switch or outlet.

        For display rotating, edit /boot/config.txt
        Add
        display_rotate=1

        1 Reply Last reply Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @MMRPi1
          last edited by Jul 2, 2017, 3:32 PM

          @MMRPi1 said in Magic Mirror on the Raspberry Pi 1, agonizingly difficult:

          Also, how do you rotate the screen??

          https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @MMRPi1
            last edited by Jul 2, 2017, 3:55 PM

            @MMRPi1 said in Magic Mirror on the Raspberry Pi 1, agonizingly difficult:

            Is it advisable to turn the raspberry pi off (and turn off the magic mirror) by switching it off at the mains, and if not how would I turn it off and on?

            First, shutdown the Pi correctly. Once you’ve shutdown the Pi correctly you can pull the power cord, OR you can install some sort of power switch.

            In my case, I simply used a mini power strip inside the mirror itself. Once I’ve shut down my Pi correctly, I simply reach under my mirror and hit the power switch on the mini power strip. This also powers down the fan that I have sitting on the Pi. When you’re ready to start your mirror again, you simply hit the power switch on the mini power strip again and everything comes back on.

            0_1499010903694_strip2.jpg

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • R Offline
              ROMSY
              last edited by Jul 2, 2017, 8:22 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • M Offline
                MMRPi1
                last edited by Jul 4, 2017, 3:49 PM

                Hi again…
                Everything works fine but I can’t get the mirror to auto run (in server only mode) at boot.
                Any help would be appreciated…
                (BTW I tried configuring the LXDE and boot files and all that)

                B 1 Reply Last reply Jul 6, 2017, 1:42 PM Reply Quote 0
                • B Offline
                  bhepler Module Developer @MMRPi1
                  last edited by Jul 6, 2017, 1:42 PM

                  @MMRPi1 Did you try the pm2 route from the Auto Starting Magic Mirror? @Sean gave you the link a few days ago.

                  In your case, you’ll want to change the mm.sh script to start in server-only mode and then launch your web browser. If you really want to bulletproof your installation, you can create a separate script for the mirror in server-only mode and another for keeping the browser up & pointed at the correct location. Let PM2 manage both as separate processes.

                  M 1 Reply Last reply Jul 6, 2017, 1:54 PM Reply Quote 0
                  • M Offline
                    MMRPi1 @bhepler
                    last edited by Jul 6, 2017, 1:54 PM

                    @bhepler Thanks, but since I’m really clueless I’m not quite sure what to do…
                    The contents of mm.sh
                    cd ~/MagicMirror
                    DISPLAY=:0 npm start
                    node serveronly
                    chromium-browser --noerrdialogs --disable-session-crashed-bubble -incognito --kiosk http://localhost:8080

                    I’'ve also got the following at the end of the LXDE autostart file
                    @pm2 start mm.sh

                    BTW: when I run pm2 start mm.sh from the terminal the mirror starts up just fine, so I don’t know why it doesn’t autostart properly…

                    B 1 Reply Last reply Jul 6, 2017, 2:02 PM Reply Quote 0
                    • B Offline
                      bhepler Module Developer @MMRPi1
                      last edited by bhepler Jul 6, 2017, 2:17 PM Jul 6, 2017, 2:02 PM

                      No problem. It’s confusing at first for just about everybody.

                      @MMRPi1 said in Magic Mirror on the Raspberry Pi 1, agonizingly difficult:

                      The contents of mm.sh
                      cd ~/MagicMirror
                      DISPLAY=:0 npm start
                      node serveronly
                      chromium-browser --noerrdialogs --disable-session-crashed-bubble -incognito --kiosk http://localhost:8080

                      Your script is attempting to start the Magic Mirror twice. DISPLAY=:0 npm start will start the mirror via electron. That line would normally blank the Pi’s screen, start up the MM process and display the interface. You probably want to remove this line.
                      The line node serveronly starts up the MM process as well, but only to provide the interface to web browsers. And your final line opens the web browser.

                      So. Try deleting the DISPLAY=:0 npm start line and then testing your script.

                      cd ~
                      ./mm.sh
                      

                      That should start the MM process and open up your web browser to the interface. Let us know how it goes!

                      I’'ve also got the following at the end of the LXDE autostart file
                      @pm2 start mm.sh

                      Yeah, delete that line.

                      BTW: when I run pm2 start mm.sh from the terminal the mirror starts up just fine, so I don’t know why it doesn’t autostart properly…

                      Oh. Easy enough to fix. Do just what you said, run pm2 start mm.sh. Once the browser is up, switch to the terminal on the pi and tell PM2 to save the current state. pm2 save. One you do that, PM2 should start with the pi and then start the MM process and your browser.

                      Edited to add: Did you run the pm2 startup and then copy & paste the command it gave as per the instructions?

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 3 / 4
                      3 / 4
                      • First post
                        30/33
                        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