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?
Read the statement by Michael Teeuw here.
Posts made by Escenda
-
RE: Facial Recognition - customize your mirror for every user!
-
Running facial recognition and instagram?
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;} -
RE: MMM-ResRobot - Public transport information for Sweden
Here is my config:
{
module: “MMM-ResRobot”,
position: “left”,
header: “Departures”,
config: {
from: “740059355”, // ResRobot Station ID (or a comma-separated string of IDs)
to: “740059412”, // ResRobot Station ID of destination (or a comma-separated string of IDs)
maximumEntries: 6, // Number of departures to show on screen
truncateAfter: 5, // A value > 0 will truncate direction name at first space after characters. 0 = no truncation
apiKey: “a6e181d4-3065-4214-a30b-780163xxxxxx” // Your ResRobot apiKey
}
}, -
RE: MMM-ResRobot - Public transport information for Sweden
I don’t get it to work. Followed the instructions in the readme and registered to get th APIkey. But it still doesn’t start.
What could be wrong? Here is the output:magicmirror@2.0.0 start /home/pi/MagicMirror
electron js/electron.jsLoading config …
Loading module helpers …
Initializing new module helper …
No helper found for module: faceemployee.
Initializing new module helper …
No helper found for module: compliments.
Initializing new module helper …
All module helpers loaded.
Starting server op port 8080 …
Server started …
Connecting socket for: MMM-Facial-Recognition
Staring module helper: MMM-Facial-Recognition
Connecting socket for: MMM-ResRobot
Starting node_helper for module: MMM-ResRobot
Connecting socket for: newsfeed
Starting module: newsfeed
Sockets connected & modules started …
Launching application.
Create new news fetcher for url: http://nyhetsbrev.viktoria.se/feed/ - Interval: 300000
[MMM-Facial-Recognition] Facerecognition started…
[MMM-Facial-Recognition] Loading training data…
[MMM-Facial-Recognition] ALGORITHM: LBPH
[MMM-Facial-Recognition] Training data loaded!
[MMM-Facial-Recognition] --------------------
[MMM-Facial-Recognition] PiCam connected