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.

    Running facial recognition and instagram?

    Scheduled Pinned Locked Moved Troubleshooting
    1 Posts 1 Posters 2.0k Views 1 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.
    • E Offline
      Escenda
      last edited by

      Hi everyone!
      I have the facial recognition module working as well as the instagram module, but only separately. When I run my MM with both active, only the facerec is working and the instagram module isn’t showing anything at all.

      Wont they both work at the same time? Or is the computational demand too heavy to run them both (with some other minor stuff)?

      Here is my config.js
      /* Magic Mirror Config Sample
      *

      • By Michael Teeuw http://michaelteeuw.nl
      • MIT Licensed.
        */

      var config = {
      port: 8080,
      language: ‘en’,
      timeFormat: 24,
      units: ‘metric’,
      //kioskmode: ‘true’,
      modules: [
      // {
      // module: ‘alert’,
      // },
      {
      module: ‘clock’,
      position: ‘top_left’,
      classes: ‘default everyone’

      	},	
      {
      	  module: 'MMM-Instagram',
          	  header: "x Instagram Feed",  
      	    position: 'top_right',
      	    classes: 'default everyone',
      	    config: {
      	        access_token: 'my_key',
      	        count: 20,  
      	        min_timestamp: 0,
      	        animationSpeed: 2500,
      	        updateInterval: 12500
      	    }
      },
      	{
      		module: 'faceemployee',
      		position: 'middle_center',
      		//shown for 
      		classes: 'Ella'
      	},
      	{
      		module: 'faceemployee',
      		position: 'middle_center',
      		//shown for Marcus
      		classes: 'Marcus'
      	},
      	{
      		module: 'faceemployee',
      		position: 'middle_center',			
      		classes: 'Christer'
      	},
      	{
      		module: 'compliments',
      		position: 'middle_center',
      		classes: 'default' //Replaced when a user is logged in!
      	},
      	{
          		module: "MMM-ResRobot",
          		position: "top_left",
          		header: "Ferry Departure Time ",  
        			classes: 'default everyone',
      		config: {           		
      		from: "740059355",//"740025697",//<klippan buss   // ResRobot Station ID (or a comma-separated string of IDs)
              		to: "740059412", //"740015573",//<järntorget // ResRobot Station ID of destination (or a comma-separated string of IDs)
              		maximumEntries: 5,  // Number of departures to show on screen
              		truncateAfter: 4,   // A value > 0 will truncate direction name at first space after <value> characters. 0 = no truncation
              		apiKey: "my_key"
          		}
      		},
      {
      		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: false,
      			// Path to your training xml
      			trainingFile: 'modules/MMM-Facial-Recognition/training.xml',
      			// recognition intervall in seconds (smaller number = faster but CPU intens!)
      			interval: 3,
      			// 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: 8,
      			// Array with usernames (copy and paste from training script)
      			users: ['Marcus', 'Josue ', 'Ella ', 'Christer '],
      			//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"
      		}
      	},	
      	{
      		module: 'newsfeed',
      		position: 'bottom_bar',
      		classes: 'default everyone',
      		config: {
      			feeds: [
      				{
      					title: "News",
      					url: "http://nyhetsbrev.viktoria.se/feed/"
      				}
      			],
      			showSourceTitle: true,
      			showPublishDate: true
      		}
      	},
      	
      ]
      

      };
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== ‘undefined’) {module.exports = config;}

      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