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

Topics

  • L

    Adding suspend and resume functions into modules

    Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
    1 Feb 4, 2017, 11:58 AM
    Feb 4, 2017, 11:58 AM
    0 Votes
    1 Posts
    1k Views
    L Feb 4, 2017, 11:58 AM
    Hi everyone, Im using the facial recognition and added multiple modules into different classes. All the modules works fine together but my CPU load spikes up to ~90-100% at the startup. This made me stopping adding new awesome personal modules for each person. I found out the “Suspend and Resume” functions in the Development Documentation. I want to implement it into my Mirror to suspend unused modules. The point is if Person1 is recognized, the Default and the Person 2 modules should be suspended and Person 1 should be resumed etc etc. I made a short example of my config.js using the clock module and 2 persons. If you can help me further with 1 module, the location and the way of using it, i can use the code to add it for the other modules. var config = { port: 8080, language: 'nl', timeFormat: 24, units: 'metric', modules: [ { module: 'clock', position: 'top_left', classes: 'default' }, { module: 'currentweather', position: 'top_right', classes: 'Person1', config: { location: 'location', appid: 'APPID' } }, { module: 'weatherforecast', position: 'top_right', classes: 'Person2', header: 'Weather Forecast', config: { location: 'location', appid: 'APPID' } }, { module: 'MMM-Facial-Recognition', config: { recognitionAlgorithm: 1, lbphThreshold: 50, fisherThreshold: 250, eigenThreshold: 3000, useUSBCam: true, trainingFile: '/home/pi/MagicMirror/modules/MMM-Facial-Recognition/training.xml', interval: 1, logoutDelay: 15, users: ['Person1', 'Person2'], defaultClass: "default", everyoneClass: "everyone" } }, //------------------------------------------------- ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== 'undefined') {module.exports = config;}
  • L

    digital photo frame

    Watching Ignoring Scheduled Pinned Locked Moved Requests
    34 Mar 23, 2018, 1:37 AM
    Jan 28, 2017, 7:17 PM
    0 Votes
    34 Posts
    32k Views
    N Mar 23, 2018, 1:37 AM
    @Mykle1 Thank so much
  • 1 / 1
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