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

    Posts

    Recent Best Controversial
    • MMM-Face-Reco-DNN

      When i use classes like below

      classes: 'name'
      

      i get an error for the next line in the config.js
      If I write it with a comma like this:

      Classes: 'name',
      

      Then it and the whole module: "MMM-Face-Reco-DNN"will get ignored, and all my modules will be shown, even if nobody is in front of the camera.
      Here is a log:

      0|MagicMirror  | Loading config ...
      0|MagicMirror  | WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:65
      0|MagicMirror  | 			classes: 'name'
      0|MagicMirror  | 			^^^^^^^
      0|MagicMirror  | SyntaxError: Unexpected identifier
      0|MagicMirror  |     at new Script (vm.js:74:7)
      0|MagicMirror  |     at createScript (vm.js:246:10)
      0|MagicMirror  |     at Object.runInThisContext (vm.js:298:10)
      0|MagicMirror  |     at Module._compile (internal/modules/cjs/loader.js:678:28)
      0|MagicMirror  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
      0|MagicMirror  |     at Module.load (internal/modules/cjs/loader.js:620:32)
      0|MagicMirror  |     at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
      0|MagicMirror  |     at Function.Module._load (internal/modules/cjs/loader.js:551:3)
      0|MagicMirror  |     at Module.require (internal/modules/cjs/loader.js:658:17)
      0|MagicMirror  |     at require (internal/modules/cjs/helpers.js:20:18)
      0|MagicMirror  | Loading module helpers ...
      
      

      Here is line 65 in my config file:

      		{
      			module: "currentweather",
      			position: "top_right",
      			config: {
      				location: "hidden",
      				locationID: "hidden",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      				appid: "hidden"
      			}
      			classes: 'name'
      		},
      

      If I move classes up below position like this:

      {
      			module: "currentweather",
      			position: "top_right",
      			classes: 'name'
      			config: {
      				location: "hidden",
      				locationID: "hidden",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      				appid: "hidden"
      			}
      

      Then the result will be like this:

      0|MagicMirror  | WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:60
      0|MagicMirror  | 			config: {
      0|MagicMirror  | 			^^^^^^
      0|MagicMirror  | SyntaxError: Unexpected identifier
      0|MagicMirror  |     at new Script (vm.js:74:7)
      0|MagicMirror  |     at createScript (vm.js:246:10)
      0|MagicMirror  |     at Object.runInThisContext (vm.js:298:10)
      0|MagicMirror  |     at Module._compile (internal/modules/cjs/loader.js:678:28)
      0|MagicMirror  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
      0|MagicMirror  |     at Module.load (internal/modules/cjs/loader.js:620:32)
      0|MagicMirror  |     at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
      0|MagicMirror  |     at Function.Module._load (internal/modules/cjs/loader.js:551:3)
      0|MagicMirror  |     at Module.require (internal/modules/cjs/loader.js:658:17)
      0|MagicMirror  |     at require (internal/modules/cjs/helpers.js:20:18)
      
      posted in Troubleshooting
      B
      Blauenfeldt
    • RE: MMM-Face-Reco-DNN - All new Face Recognition

      I get this too, when my PI can’t connect to the camera. I know that, because if i use
      Raspistill -o s.jpg
      I will get an error there too. A reboot seems to fix it though. I don’t know what makes it happen, but i suspect the cable.

      posted in Utilities
      B
      Blauenfeldt
    • Face recognition help

      So i have tried some different facial recognition, and found the one, that works best for my needs - MMM-Face-Reco-DNN
      It’s works fine, they all do, but i was wondering, if it was possible to make the mirror show modules all the time, and the change them, according to who is in from?
      Basically have the clock and weather showing all the time, and then when I walk in front of it, it would start showing my calendar, newsfeed and other stuff, and when i walk away, it will only show clock and weather again.

      Is that possible?

      Best regards
      Blauenfeldt

      posted in Troubleshooting
      B
      Blauenfeldt
    • 1
    • 2
    • 3
    • 4
    • 4 / 4