MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. SdeGeata
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 42
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Ring Doorbell Problem

      @Nicoh

      This is a Ring Doorbell authentication issue. You have to go through the process again to generate the Ring Authentication Bearer Token and plug that into your Magic Mirror config file. You will have to repeat this process every month as Ring deactivates that bearer token every 30 days.

      Hope this helps, at least until ring sets up another option for us.

      posted in Troubleshooting
      S
      SdeGeata
    • RE: PIR-Sensor - put your mirror to sleep if not used

      @randomnoise said in PIR-Sensor - put your mirror to sleep if not used:

      exec(“xdotool key space”); //simulate spacebar to disable screensaver. Needs xdotool to be installed

      Hello Randomnoise;

      So you did exactly what I am looking to do. Can you elaborate on how to configure this so my PIR will turn off the screen saver? I’ve already installed Xdotool, but I don’t know where to go from there.

      posted in System
      S
      SdeGeata
    • RE: MMM-Facial-Recognition-OCV3 error at tools.train.py

      @nischi

      Hello again;

      So Open CV 4 installed, as well as all the other stuff specified on your module page, in the same versions.

      I am trying to run the encode script:

      python3 encode.py -i ../dataset/ -e encodings.pickle -d hog
      

      but I keep getting the following error:

      Traceback (most recent call last):
        File "encode.py", line 6, in <module>
          import face_recognition
      ImportError: No module named 'face_recognition'
      
      

      face_recognition is installed:

      0_1562182513919_Screen Shot 2019-07-03 at 3.32.31 PM.png

      posted in Troubleshooting
      S
      SdeGeata
    • RE: MMM-Facial-Recognition-OCV3 error at tools.train.py

      @nischi

      Hello again;

      I finally got Open CV 4 installed successfully, I am re-installing my mirror modules now.

      I did extend the swap to 2048, and that failed making -j4 and -j1. Finally I boosted the swap to 5000, it still failed on -j1, but it finally worked on -j2… go figure.

      I was pretty tired of f**cking around trying to get that to install, it was pretty discouraging.

      Thanks for your help and I will let you know how it goes once I get your new module installed.

      posted in Troubleshooting
      S
      SdeGeata
    • RE: MMM-Facial-Recognition-OCV3 error at tools.train.py

      Well, since my post yesterday, I’ve not got past building Open CV 4. Hangs at 20%, or 73%, or 100% and eventually freezes. it never finishes the compilation.

      I completely wiped my SD card and did a fresh install of Rasbian - just to see if that would make a difference. So far, no go. I’m losing patience with this thing. It’s been well over a week that i’ve been fiddling around with various face recognition modules that kinda half work. i am anxious to try yours - i just can’t get past the Open CV bugs on install.

      What should I do???

      posted in Troubleshooting
      S
      SdeGeata
    • RE: MMM-Facial-Recognition-OCV3 error at tools.train.py

      That’s great news! I’m gonna install it today and give it a whirl. I’ve spent too much time swearing about the other one not working like it should. I’ll let you know how it goes.

      posted in Troubleshooting
      S
      SdeGeata
    • RE: MMM-MotionEye - surveillance video stream on your mirror!

      @Cato
      So how do we use that Webhook URL to trigger the hidden module. I have been screwing with it for days trying to get it to work. Can you clarify the config for that?

      posted in Utilities
      S
      SdeGeata
    • Facial Recognition OCV3 - Face recognized but Modules don't show

      Hello all;

      Well after two weeks of trying to install Facial Recognition on my MM, it all works. Now one last final bug to squash and I should be able to reap the rewards.

      So Facial Recognition is loading fine and my modules have the appropriate classes assigned. Terminal output reads that I am indeed recognized;

      [MMM-Facial-Recognition-OCV3] User Stiofan with confidence 70.7123926022 logged in.
      

      However, none of the modules with classes assigned to my profile are revealed. The hide fine, but don’t show. Any idea why???

      posted in Troubleshooting
      S
      SdeGeata
    • RE: MMM-Facial-Recognition-OCV3 error at tools.train.py

      @nischi

      Cool. Lemme know.

      posted in Troubleshooting
      S
      SdeGeata
    • RE: MMM-Facial-Recognition with PiCam doesn't start

      After more fiddling, I get this in terminal:

      [MMM-Facial-Recognition-OCV3] Facerecognition started...
      [MMM-Facial-Recognition-OCV3] Loading training data...
      [MMM-Facial-Recognition-OCV3] Training data loaded!
      [MMM-Facial-Recognition-OCV3] --------------------
      [MMM-Facial-Recognition-OCV3] PiCam loaded...
      Whoops! There was an uncaught exception...
      { Error: mmal: mmal_vc_port_enable: failed to enable port vc.null_sink:in:0(OPQV): ENOSPC
      mmal: mmal_port_enable: failed to enable connected port (vc.null_sink:in:0(OPQV))0x6c513840 (ENOSPC)
      mmal: mmal_connection_enable: output port couldn't be enabled
      Exception in thread Thread-1:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
          self.run()
        File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/lib/common/picam.py", line 25, in run
          with picamera.PiCamera() as camera:
        File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 433, in __init__
          self._init_preview()
        File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 513, in _init_preview
          self, self._camera.outputs[self.CAMERA_PREVIEW_PORT])
        File "/usr/lib/python2.7/dist-packages/picamera/renderers.py", line 558, in __init__
          self.renderer.inputs[0].connect(source).enable()
        File "/usr/lib/python2.7/dist-packages/picamera/mmalobj.py", line 2212, in enable
          prefix="Failed to enable connection")
        File "/usr/lib/python2.7/dist-packages/picamera/exc.py", line 184, in mmal_check
          raise PiCameraMMALError(status, prefix)
      PiCameraMMALError: Failed to enable connection: Out of resources
      
      OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in imdecode_, file /home/pi/opencv/modules/imgcodecs/src/loadsave.cpp, line 637
      Traceback (most recent call last):
        File "modules/MMM-Facial-Recognition-OCV3/lib/mm/facerecognition.py", line 69, in <module>
          image = camera.read()
        File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/lib/common/picam.py", line 55, in read
          image = cv2.imdecode(data, 1)
      cv2.error: /home/pi/opencv/modules/imgcodecs/src/loadsave.cpp:637: error: (-215) !buf.empty() && buf.isContinuous() in function imdecode_
      
      
          at PythonShell.parseError (/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/node_modules/python-shell/index.js:190:17)
          at terminateIfNeeded (/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/node_modules/python-shell/index.js:98:28)
          at ChildProcess.<anonymous> (/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/node_modules/python-shell/index.js:88:9)
          at ChildProcess.emit (events.js:182:13)
          at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
        executable: 'python',
        options: null,
        script:
         'modules/MMM-Facial-Recognition-OCV3/lib/mm/facerecognition.py',
        args:
         [ '{"threshold":80,"useUSBCam":false,"trainingFile":"/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/training.xml","interval":2,"logoutDelay":15,"users":["Stiofan","Gab"],"defaultClass":"default","everyoneClass":"everyone","welcomeMessage":true}' ],
        exitCode: 1 }
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      
      
      posted in Troubleshooting
      S
      SdeGeata
    • 1 / 1