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.

    MMM-PIR-Sensor black screen

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 3 Posters 2.6k Views 3 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.
    • S Offline
      sdetweil @Stef
      last edited by

      @Stef with the black screen and a keyboard, press ctrl-shift-i (letter I),
      to open the developers console, select the console tab, and scroll up to find errors, red text

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        Stef
        last edited by

        @sdetweil thanks for the headsup - but this does not work… i see the mous coursor though, but that’s it.
        I even can’t “cancel” the fullscreen mode of the magic mirror by pressing F11 (usually this brings me back to the desktop) :/

        1 Reply Last reply Reply Quote 0
        • S Offline
          Stef
          last edited by Stef

          I did a little research and stumbled over severall issues on the github page - this one catched my eye, but didn’t brought me any luck…

          So, what did i do excatly?

          1. Install:
          cd ~/MagicMirror/modules/
          git clone https://github.com/paviro/MMM-PIR-Sensor.git
          npm install
          sudo usermod -a -G gpio pi
          sudo chmod u+s /opt/vc/bin/tvservice && sudo chmod u+s /bin/chvt
          sudo reboot
          
          1. New wiringPI version:
          sudo apt-get purge wiringpi
          hash -r
          sudo apt-get install git-core
          cd
          git clone git://git.drogon.net/wiringPi
          cd ~/wiringPi
          git pull origin
          ./build
          sudo reboot
          
          1. reinstall EPOLL:
          cd ~/MagicMirror/modules/
          sudo npm install --save-dev electron-rebuild ./node_modules/.bin/electron-rebuild
          
          1. recompile Electron:
          npm list | grep electron
          cd ~/MagicMirror/modules/MMM-PIR-Sensor
          npm rebuild --runtime=electron --target=1.4.5 --disturl=https://atom.io/download/atom-shell --abi=50
          sudo reboot
          

          Expectation: It Works now…
          Reality: It does not…

          my Config is:

          {
                    module: 'MMM-PIR-Sensor',
                    config: {
                                 sensorPin: 23,
                                 powerSaving: true,
                                 powerSavingDelay: 120 // 2 Minutes
                                 }
          },
          

          I just excluded this part of my config - and my mirror displays everything again…

          Andy ideas left? :)

          1 Reply Last reply Reply Quote 0
          • S Offline
            Stef
            last edited by

            Hey all,
            turns out, that the MMM-PIR-Sensor Module is buggy - well, at least for me.
            Can’t get it to work, but i found an alternative: MagicMirror-Display-Controller

            Works like a Charme!

            Case closed :)

            Have a nice weekend!

            wishmaster270W 1 Reply Last reply Reply Quote 0
            • wishmaster270W Offline
              wishmaster270 Module Developer @Stef
              last edited by

              @Stef Hi, yesterday i added two Modules to the Showcase Area. On that monitors GPIO Pins and one which controls the Monitor.
              My usecase is exactly like yours. I use an PIR sensor to detect user presence and want the screen to be turned off after a configurable timeout.
              If you want to try them:
              MMM-Screen-Powersave-Notification
              and
              MMM-GPIO-Notifications

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • 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