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

    Posts

    Recent Best Controversial
    • RE: Best PIR Strategy for RPI4?

      @cmer3 said in Best PIR Strategy for RPI4?:

      Hi, I am a noob , doing my first mirror project. I plan to have a PIR sensor to wake the mirror up from sleep. There seem to be 3 ways to do this: MMM-PIR Sensor, MMM-newPIR, and what I guess is a shell script? at https://www.putorius.net/using-pir-sensor-for-motion-detection.html. Is there a best approach for RPI4?

      If it matters any… I used to use MMM-PIR but for the monitor I am currently using …when the monitor “goes to sleep” because of no motion, it would put my monitor to “sleep” …displaying a banner… not waking up… or you will get it to wake up but it shows the input HDMI that it is on (then goes away)…

      With MMM-NEWPIR … it has the ability to put up a “black screen” type of thing… keeping the monitor “awake” but it is black… when motion it goes away and restarts the timer as motion continues…

      That is basically the only reason why I used it… and I have it working on a PI3b+ and a 4 (4g ram).

      posted in Troubleshooting
      M
      majik655
    • RE: MMM-Facial-Recognition-OCV3 FATAL: OpenCV Major Version must be 3

      @ghiesseldorf
      So I am not a developer nor programmer just a normal person who follows directions :)

      So what I know is I followed this for the open cv stuff because I had issues following other tutorials or got lost from all the updates that have happened and the links saying to use a specific version yet the links provided point to a newer version…

      In any case maybe this will help you…
      In the modules installation instructions it gets to the point where you install Open CV…
      And provides links to it depending on what operating system to install it…

      SKIP over that
      to where it says : OpenCV 4.1.2 quick installation (wthout compliation) for Raspbian Buster
      And points to here: https://github.com/cyysky/OpenCV-Raspberry-Pi-4-Package-for-Python

      I followed those steps, then continued on in the module’s install instructions…

      So I am unsure where you are coming across that error (it sounds familiar, but I have done so much I can’t remember)… Installing openCV following those instructions is what made it “work” for me…

      Also for the dataset it confused me at first and really all that is really needed is simple pictures from your phone (selfies) and put them in the correct directory as the instructions specify. (Anyway this was just a mention of what got me after the installation part of opencv but all works now I am also using a logitech usb c930 camera if it matters )

      posted in Troubleshooting
      M
      majik655
    • RE: MMM-Facial-Recognition-OCV3 FATAL: OpenCV Major Version must be 3

      @ghiesseldorf said in MMM-Facial-Recognition-OCV3 FATAL: OpenCV Major Version must be 3:

      MMM-Facial-Recognition-OCV3

      This won’t help you with this module but this module supposedly is old and has issues so this says…
      https://forum.magicmirror.builders/topic/10674/mmm-face-reco-dnn-all-new-face-recognition

      This module however works fine (I just installed last week)…
      https://github.com/nischi/MMM-Face-Reco-DNN

      posted in Troubleshooting
      M
      majik655
    • RE: MMM-GoogleAssistant with MMM-MotionDetector

      @Bugsounet said in MMM-GoogleAssistant with MMM-MotionDetector:

      @majik655 said in MMM-GoogleAssistant with MMM-MotionDetector:

      MMM-NEW-PIR

      I have to update this module butI really don’t use it, because all fonctionnality is on A2D
      I start to code A2D pir module to MMM-NewPir but not finish
      I will continue it and commit it to master soon

      Note:
      For GA/A2D users it’s more natural to use screen/pir sub-module of A2D because it’s lock screen on GA/A2D use and can’t turn off
      MMM-NewPir have not this fonctionality (and can’t never have it, because i don’t want to do a dual code)

      example:

      • with GA / youtube and MMM-NewPir
        defined tiner of NewPir is for example : 2 min
        duration of video +/- 4 min
        NewPir will turn off video at 2min

      • with GA / A2D / youtube and screen/pir submodule of A2D
        defined tiner of screen/pir is for example : 2 min
        duration of video +/- 4 min
        A2D will turn on the monitor for duration of video (playing)
        A2D will restart the counter at the end of video

      Hey @Bugsounet
      I am not sure I follow you very well … but the reason why I needed or used NEW-PIR was because it was the only thing that did not actually turn off the monitor or go to sleep so the the monitor power saver showed.
      As far as I know NEW-PIR throws up a “black” screen or something so that the monitor never “sleeps” and when it wakes the monitor doesn’t report the input (hdmi) or show the power save on sleeping.

      New-PIR was installed first… then I figured out how to install GA… then installed A2D, and then installed facial recognition …

      It all seems to work fine the way I have it … honestly I couldn’t figure out the A2D commands and such in the beginning and do not want to reconfigure lol.
      It all works great on my end for the moment I suppose.

      posted in Troubleshooting
      M
      majik655
    • RE: MMM-GoogleAssistant with MMM-MotionDetector

      @killerjoe34 said in MMM-GoogleAssistant with MMM-MotionDetector:

      Hi guys :)
      Thanks to @Bugsounet, GA and AD2 both work really well for me now with Spotify !
      I installed MotionDetector wich works also well.

      But when the display is off, I would like to turn it on by saying the hotword (Jarvis in my case)

      How can I do that ?
      Thanks

      Re: MMM-GoogleAssistant with MMM-MotionDetector
      I personally use MMM-NEW-PIR … and don’t need to wake the screen because the motion detector sees me and wakes the screen…this is using a PIR motion sensor though… so I am unsure you exact scenario…

      But MAYBE you can look into the recipes…
      In your assistant directory you will see a directory called RECIPES .
      There are some premade recipes in there you can look over… you can also read about them in the wiki…
      one of them is called “with-MMM-pages.js”

      Open it and you will see the commands in that file that you can attach to your config file in the assistant module and it will do what the recipe tells it to…
      I do not have access to this recipe file right now but I believe you can say “SHOW ALL MODULES” and the screen might wake up? (again this depends on your setup and your motion modules)…

      You will need to add the recipe you want to use to your config file…
      This page shows you the DETAILED config and at the bottom you will see RECIPES…
      https://github.com/bugsounet/MMM-GoogleAssistant/wiki/Configuration-Sample

      Add this to your config and put in the with-MMM-pages.js - restart Magic mirror and try out saying the commands.
      You can also create your own recipes (look in the wiki) and add your own recipe js files to your config … you can use more than one.

          },
          recipes: [ "with-MMM-pages.js" ]
        }
      },
      
      posted in Troubleshooting
      M
      majik655
    • RE: Raspberry Pi 3B+ and 4 "No wireless interfaces found"

      @Blauenfeldt
      install it without noobs. Noobs has given me problems in one way or another when I have used it. The issues range from a lot of things depending on what you are doing …

      Go get the raspbian desktop image and just use that … it is just as easy to install as noobs and more than likely you will have working wifi when finished.

      If you have another sd card (and dont want to erase your noobs one) just try it out on a second card… you will get it going.

      posted in Troubleshooting
      M
      majik655
    • RE: User Friendly Magic Mirror?

      @Feedy88 said in User Friendly Magic Mirror?:

      @majik655 sorry, I didn’t read the original post properly, actually you are right.

      @tripalreno4 actually I think @majik655 is right:

      • edit the wpa_supplicant.conf and add the gift receivers WiFi information
      • configure the MM to automatically start upon boot with pm2

      This would basically make it a “plug and play” apart from configuring modules ofc.

      No worries Feedy88 …

      I have made a couple of these for people. From my own experience it depends on how many or what kind of modules you will be putting on the mirror.
      Specialty modules that need their account info you will have to get for them and configure.

      The more specialized you make it the harder it will be to “keep updated” so if you are going to keep it simple such as a clock, weather module and things like default modules then just getting the wifi up and running without them is probably the easiest along with using PM2 for auto boot … if mirror crashes or needs to turn off …pm2 will restart the mirror for them.

      As for updating… you can turn off the update module notification (or leave it on I guess) but if you are using just the default modules there really isnt a reason to update unless something breaks.

      posted in General Discussion
      M
      majik655
    • RE: User Friendly Magic Mirror?

      Not sure if this will help you and sorry if this is obvious…
      but if you want you could pre set up their wifi for them…

      edit the wpa_supplicant.conf

      When you connect to wifi the wpa_supplicant.conf file is created with your ssid’s and passwords etc etc…

      So you can connect to your own wifi… then go edit the conf file and ADD their wifi …

      When you first write the image to the sd card…there is no conf file because you havent connected to wifi yet (obviously)… so when done writing your sd card image… you can open the sd card (on widows or whatever) and create the wpa_supplicant.conf in the root with the info needed … otherwise just connect to wifi then edit the file.

      Not sure if that helps you all that much but you can pre set it up you just need their info like SSID they would connect to and password

      sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

      Below is what mine looks like with 2 ssid’s to choose from …

      ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
      update_config=1
      country=US
      
      network={
              ssid="SSID HERE"
              psk="PASSWORDHERE"
              key_mgmt=WPA-PSK
      }
      
      network={
              ssid="SSID2 HERE"
              psk="PASSWORDHERE"
              key_mgmt=WPA-PSK
      }
      
      posted in General Discussion
      M
      majik655
    • RE: Screencast not showing up on phone

      I can’t remember if turning on OpenGL driver was my issue or not with this…
      As long as your config files is correct (it isnt a hard config file I will post mine below)…
      Try opening a terminal window and type sudo raspi-config
      go to “Advanced Options” and then “OpenGL Driver”

      Depending on the hardware you have or what PI model you are using you may have just one option or a couple…
      IF you have multiple options like I have seen … one was FAKE KMS and the other was FULL KMS…
      I had to choose FULL KMS (i think for raspberry pi3)… on my raspberry pi 4 I believe there is only one option…choose it.

      (might want to reboot)… cant remember if needed or makes you.

      Then try again … make sure your device is on the same wifi network as your mirror …
      You should see your mirror name …

      I can’t think of what more there could be … unless your router is blocking the default port?
      You did do npm install in the module directory after cloning it right?

      My config for the module…

      		{
      			module: 'MMM-Screencast',
      			position: 'center', // This position is for a hidden <div /> and not the screencast window
      			config: {
      				position: 'center',
      				height: 300,
      				width: 500,
      			}
      		},
      
      posted in Troubleshooting
      M
      majik655
    • RE: Facial recognition

      @sdetweil
      Yeah so one thing I have found is it is kind of worthless to have a motion sensor running that hides the modules after 2minutes of no motion…because if you block the sensor once it has closed… it looks like the camera cant turn it back on because the sensor has hidden everything.

      I either turn off the motion sensor and rely on the camera all the time …
      or
      somehow have the motion detection turn on the camera recognition part…recognize then show correct modules.
      or
      have the recognition…trigger the motion sensor

      so many decisions I dont know which to do lol

      posted in General Discussion
      M
      majik655
    • RE: Facial recognition

      @sdetweil
      I finally got it!
      I commented out basically everything in my config except for the basics like clock and such…
      Nothing was working …
      Then I realized the lights on the camera were not turning on when the MM started…which means there was no way it was going to recognize anything if it wasnt even on lol

      To get it to work I had to change in the module config

      source: 0,
      

      to

      source: '/dev/video0',
      

      Which by the info source: 0, SHOULD BE /dev/Video0

      Not sure why 0 didnt work but it works now with /dev/Video0!!!

      Thank you for listening!

      posted in General Discussion
      M
      majik655
    • RE: Facial recognition

      @sdetweil said in Facial recognition:

      @majik655 I used 4 pics

      lol well I just uploaded 17 and im wondering if my PIR sensor or other module configs are stopping this …
      I havent figured out yet if the camera is even working good… I am using a usb cam so I have it set to 0 in the config…

      But I have a motion sensor, mmm-pages and google assistant and assistant2display which I wonder is causing any issues.

      The mirror boots up loads modules and then goes blank because I have all modules set to me (no default or everyone).

      I need to figure out how to view live camera… I wish there was a way for the module to test or report what it sees or doesnt see for that matter.

      posted in General Discussion
      M
      majik655
    • RE: Facial recognition

      @sdetweil Crap see another question… how many pics did you load in the beginning from your phone?

      posted in General Discussion
      M
      majik655
    • RE: Facial recognition

      @sdetweil
      Ok thats what I was hoping for …we will see how far I get lol Thanks again (I might have another question for ya but I will try not to)
      Thanks

      posted in General Discussion
      M
      majik655
    • RE: Facial recognition

      @sdetweil said in Facial recognition:

      @majik655 things are constantly changing. I’ve only installed the MMM-face-reco-dnn on my Pi4

      it’s a lot of work

      Yeah iv’e been through the process and back with the very beginning of face recog I was able to get it done but that was a long time ago… it seems it has come a long way.

      I guess I get confused when it comes to the dataset… can I just put my own pictures from say my phone in there? Or do I have to somehow figure out how to take pictures and such with the camera on the pi?

      The links in the instructions say “OpenCV 4.1.2 quick installation (wthout compliation) for Raspbian Buster”
      Bu takes you to a page that is 4.3… for the opencv part is that the only part that is needed is this:
      https://github.com/cyysky/OpenCV-Raspberry-Pi-4-Package-for-Python

      Anyway made a backup of my mirror…now lets see if I can destroy it trying to get this working.
      Thank you for your replies!

      posted in General Discussion
      M
      majik655
    • RE: Facial recognition

      @sdmydbr
      I too am looking for facial recognition module and its hard to keep up with versions and such especially when you are not a developer or coder. But, I’m curious what do you have for hardware and OS and what cv4 version did you follow? When I look through the install notes it looks like CV versions have changed along with OS version (now buster) and the words and links don’t equal the versions .

      I have buster on a pi 4 (4g) I have a picam 2.0 and or a logitech c930 usb webcam I can use… just curious what you followed and have?

      posted in General Discussion
      M
      majik655
    • RE: PIR-module -> NODE_MODULE_VERSION...

      @pw94
      I had issues also running those PIR mods… the only mod that worked for me was ‘MMM-NewPIR’,
      I love this module. It also has the ability to not TURN OFF the display but rather just throw up a black screen or “hide” the modules .

      my config for MMM-NewPIR is below if it helps any.

            	        {
      		  	module: 'MMM-NewPIR',
      			position: 'bottom_left',
      			config: {
      				useSensor: true,
      				sensorPin: 22,
      				reverseValue: false,
      				delay: 2* 60 * 1000,
      				turnOffDisplay: false,
      				ecoMode: true,
      				governor: "",
      				text: "",
      				counter: false,
      				rpi4: true,
      				debug: false
      			}
      		},
      
      posted in Troubleshooting
      M
      majik655
    • RE: Hello-Lucy

      @Mykle1 said in Hello-Lucy:

      I think that using Remote-Control with Lucy can cause problems because they are both controlling HIDE/SHOW commands. If you disable Remote-Control temporarily does Hello Lucy still exhibit the issues you mentioned? The config entries for each page are how you set up your pages. Spellings and cases must be precise. The slightest error could drive you nuts.

      Well I have commented out everything in my config file except for “clock” module and Lucy.
      For Lucy I have the config file like in my last post but I even have nothing in the second page.

      When MM boots , Lucy shows bottom left corner. I suppose this is normal because why would you want her not there? I was wanting it that way because she was working really well with no lag… but for whatever reason not the case in a different room…crazy!

      posted in Fun & Games
      M
      majik655
    • 1 / 1