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.

    Facial Recognition - customize your mirror for every user!

    Scheduled Pinned Locked Moved Troubleshooting
    215 Posts 55 Posters 520.2k Views 57 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.
    • R Offline
      rvdgeer @awarrington
      last edited by

      @awarrington It seems like you’ve missed the comma’s at the end of the line where the position is for the clock and compliments module here:

      		{
      			module: 'clock',
      			position: 'top_left', <--
      			classes: 'everyone'
      		},
      
      1 Reply Last reply Reply Quote 0
      • A Offline
        awarrington
        last edited by

        @rvdgeer Thank you! All works perfectly now

        1 Reply Last reply Reply Quote 0
        • R Offline
          RobbieMcl
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • tidus5T Offline
            tidus5
            last edited by

            Hi everyone,

            my module is working fine and i can loggin with my user
            Module with class everyone and default are loading fine.

            But for module with my class 'Kevin" it doesnt work.

            i have this error "ught TypeError: Cannot read property ‘toLowerCase’ of undefined

            my ame class is the same as my user (copy paste)
            did i miss something ?

            thanksssss

            1 Reply Last reply Reply Quote 0
            • tidus5T Offline
              tidus5
              last edited by tidus5

              Hey :D

              little UP - im becoming crazy.
              i read and read an read again - add… inside config.js (mirror module) or config.py (model tester)
              so users : [‘kevin’]… and the config.py is needed if i want to test with the recognition-tools

              right ?
              i see if the MMM-Facial use “everyone” or “kevin” that doesnt work

              1 Reply Last reply Reply Quote 1
              • E Offline
                Escenda
                last edited by

                I got this problem as well. I had it working but just got a spy cam and had to rpi-update today. Now only “everyone” and “default” classes work. Starting a module with a custom class doesnt work anymore for some reason?

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Aly
                  last edited by Aly

                  Hey everyone,

                  I have also followed the instructions referring taking pics and creating the training file.

                  If I “start” the MagicMirror nothing happened - only white screen.
                  If I “start” it without the MMM module (commented it out) everything is working.

                  Here my config.js:

                  var config = {
                  	port: 8080,
                  
                  	language: 'de',
                  	timeFormat: 24,
                  	units: 'metric',
                  
                  	modules: [
                  		{
                  			module: 'alert',
                  		},
                  //--------------------------------------------------------------------
                  		{
                  			module: 'clock',
                  			position: 'top_left',
                  			classes: 'everyone'
                  		},
                  //---------------------------------------------------------------------
                  		{
                  			module: 'calendar',
                  			header: 'Österreich Feiertage',
                  			position: 'top_left',
                  			config: {
                  				calendars: [
                  					{
                  						symbol: 'calendar-check-o ',
                  						url: 'webcal://www.calendarlabs.com/templates/ical/Germany-Holidays.ics'
                  					}
                  				]
                  			}
                  		},
                  //------------------------------------------------------------------------
                  		{
                  			module: 'compliments',
                  			position: 'lower_third',
                  			classes: 'Markus'
                  		},
                  //-------------------------------------------------------------------------
                  		{
                  			module: 'currentweather',
                  			position: 'top_right',
                  			config: {
                  				location: 'Braunau am Inn',
                  				locationID: '2781520',  //ID from http://www.openweathermap.org
                  				appid: '021e48dc7c378757c1fb021bf373d56c'
                  			}
                  		},
                  //------------------------------------------------------------------------
                  		{
                  			module: 'weatherforecast',
                  			position: 'top_right',
                  			header: 'Weather Forecast',
                  			config: {
                  	            location: 'Braunau am Inn',
                  				locationID: '2781520',  //ID from http://www.openweathermap.org
                  	            appid: '021e48dc7c378757c1fb021bf373d56c'
                  			}
                  		},
                  //-------------------------------------------------------------------------
                  		{
                  			module: 'newsfeed',
                  			position: 'bottom_bar',
                  			config: {
                  				feeds: [
                  					{
                  						title: "Tagesschau",
                  						url: "http://www.tagesschau.de/xml/rss2"
                  					}
                  				],
                  				showSourceTitle: true,
                  				showPublishDate: true
                  			}
                  		},
                  //-------------------------------------------------------------------------
                  		/*{
                  	    module: 'MMM-Facial-Recognition',
                  	    config: {
                  		        // 1=LBPH | 2=Fisher | 3=Eigen
                  			recognitionAlgorithm: 1,
                  			// Threshold for the confidence of a recognized face before it's considered a
                  			// positive match.  Confidence values below this threshold will be considered
                  			// a positive match because the lower the confidence value, or distance, the
                  			// more confident the algorithm is that the face was correctly detected.
                  			lbphThreshold: 50,
                  			fisherThreshold: 250,
                  			eigenThreshold: 3000,
                  			// force the use of a usb webcam on raspberry pi (on other platforms this is always true automatically)
                  			useUSBCam: true,
                  			// Path to your training xml
                  			trainingFile: 'modules/MMM-Facial-Recognition/training.xml',
                  			// recognition intervall in seconds (smaller number = faster but CPU intens!)
                  			interval: 2,
                  			// Logout delay after last recognition so that a user does not get instantly logged out if he turns away from the mirror for a few seconds
                  			logoutDelay: 15,
                  			// Array with usernames (copy and paste from training script)
                  			users: ['Markus'],
                  			//Module set used for strangers and if no user is detected
                  			defaultClass: "default",
                  			//Set of modules which should be shown for every user
                  			everyoneClass: "everyone"
                                          }
                  				},*/
                  //--------------------------------------------------------------	
                  	
                  	]
                  
                  };
                  
                  bheplerB tidus5T 2 Replies Last reply Reply Quote 0
                  • bheplerB Offline
                    bhepler Module Developer @Aly
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • tidus5T Offline
                      tidus5 @Aly
                      last edited by

                      @Aly
                      try with classes : ‘default’

                      You have the same problem as me and @Escenda

                      custom’s classes doesnt work and everyone’s classes neither
                      im on it since 6 days and… it cant found the solution

                      tidus5T 1 Reply Last reply Reply Quote 0
                      • tidus5T Offline
                        tidus5 @tidus5
                        last edited by

                        @Aly @Escenda
                        i found the problem - the localtransport module :-)

                        do you use this module too ? if you remove the module on the config.js its work :D

                        A 1 Reply Last reply Reply Quote 0
                        • A Offline
                          Aly @tidus5
                          last edited by

                          @tidus5 No i don’t use this module :/

                          tidus5T 1 Reply Last reply Reply Quote 0
                          • tidus5T Offline
                            tidus5 @Aly
                            last edited by

                            @Aly
                            could you try to found the module who make the bug by active one by one ?

                            i found like that

                            A 1 Reply Last reply Reply Quote 0
                            • A Offline
                              Aly @tidus5
                              last edited by

                              @tidus5 So it looks like that i have problems with the module itself - not with other modules.

                              tidus5T 1 Reply Last reply Reply Quote 0
                              • tidus5T Offline
                                tidus5 @Aly
                                last edited by

                                @Aly if you use the option “DISPLAY=:0 npm start dev”

                                do you see the error ?

                                A 1 Reply Last reply Reply Quote 0
                                • paviroP Offline
                                  paviro
                                  last edited by paviro

                                  I will have a look at that.

                                  Update: I just tried to recent version of my module with the current MM version and everything seems to work as expected even custom classes. Please try to use the training tool again and update your users:[] config with the output provided :) Also make sure you use the latest version from GitHub.
                                  In case this does not help please try to install the module from scratch and let me now how it goes.

                                  We're all stories in the end. Just make it a good one, eh?

                                  – The Doctor

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    Aly @tidus5
                                    last edited by

                                    @tidus5

                                    Hey :)

                                    I received this error :

                                    Thank you in advance! tidus5 & paviro
                                    Great module paviro :)

                                    Happy and peaceful christmas holidays!!

                                    App threw an error during load
                                    Error: Cannot find module 'python-shell'
                                        at Module._resolveFilename (module.js:455:15)
                                        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                                        at Function.Module._load (module.js:403:25)
                                        at Module.require (module.js:483:17)
                                        at require (internal/module.js:20:19)
                                        at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:4:21)
                                        at Module._compile (module.js:556:32)
                                        at Object.Module._extensions..js (module.js:565:10)
                                        at Module.load (module.js:473:32)
                                        at tryModuleLoad (module.js:432:12)
                                    Whoops! There was an uncaught exception...
                                    { Error: Cannot find module 'python-shell'
                                        at Module._resolveFilename (module.js:455:15)
                                        at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                                        at Function.Module._load (module.js:403:25)
                                        at Module.require (module.js:483:17)
                                        at require (internal/module.js:20:19)
                                        at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Facial-Recognition/node_helper.js:4:21)
                                        at Module._compile (module.js:556:32)
                                        at Object.Module._extensions..js (module.js:565:10)
                                        at Module.load (module.js:473:32)
                                        at tryModuleLoad (module.js:432:12) code: 'MODULE_NOT_FOUND' }
                                    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
                                    Launching application.
                                    
                                    strawberry 3.141S 1 Reply Last reply Reply Quote 0
                                    • strawberry 3.141S Offline
                                      strawberry 3.141 Project Sponsor Module Developer @Aly
                                      last edited by

                                      @Aly sounds like you didn’t install the dependencies with npm install in the MMM-Facial-Recognition directory

                                      Please create a github issue if you need help, so I can keep track

                                      A 1 Reply Last reply Reply Quote 1
                                      • A Offline
                                        Aly @strawberry 3.141
                                        last edited by

                                        @strawberry-3.141
                                        Thank you :) - I think i have forgotten it

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          jspike @paviro
                                          last edited by

                                          @paviro Did anything ever happen with this? This module would be even more amazing if it could shut down and restart the monitor :)

                                          strawberry 3.141S 1 Reply Last reply Reply Quote 0
                                          • strawberry 3.141S Offline
                                            strawberry 3.141 Project Sponsor Module Developer @jspike
                                            last edited by strawberry 3.141

                                            @jspike how this should work? when you shut down the mirror it wouldn’t restart if you enter the room because you completely turned off the raspberry

                                            EDIT: I’m sorry read mirror instead of monitor

                                            Please create a github issue if you need help, so I can keep track

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 10
                                            • 11
                                            • 5 / 11
                                            • 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