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

    Posts

    Recent Best Controversial
    • RE: how do i update my magic mirror

      now is this faaak :(

      Starting MagicMirror: v2.8.0
      Loading config …
      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:121
      if (typeof module !== “undefined”) {module.exports = config;}
      ^^

      SyntaxError: Unexpected token if
      at new Script (vm.js:74:7)
      at createScript (vm.js:246:10)
      at Object.runInThisContext (vm.js:298:10)
      at Module._compile (internal/modules/cjs/loader.js:678:28)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
      at Module.load (internal/modules/cjs/loader.js:620:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
      at Function.Module._load (internal/modules/cjs/loader.js:551:3)
      at Module.require (internal/modules/cjs/loader.js:658:17)
      at require (internal/modules/cjs/helpers.js:20:18)

      i dont know how find the line 121
      i am very noob in this

      posted in Troubleshooting
      bjjsoulB
      bjjsoul
    • RE: how do i update my magic mirror

      thank bro for your time, but i am copying and paste in the last line in the config file, but i dont know whats is my error
      in this moment its looks like this:

      {   
               module: "MMM-Voice-Commands",
               config: {   
                   debug: false, //Displays end results and errors from annyang in the Log
                  autoStart: true, //Adds annyang commands when it first starts
                   activateCommand: "hello mirror", //Command to active all other commands
                   deactivateCommand: "goodbye mirror", //Command to deactivate all other commands
                   alertHeard: false, //Whether an alert should be shown when annyang hears a phrase (mostly for debug)
                   commands: {  
                       "command statement :variable (optional statement)": "SOCKET_NOTIFICATION_NAME",
                       //The payload of the socket notification will be whatever is said in the :variable
                       "command statement *variable": function(param){    
                          alert("Whatever is said in the *variable space is given as the "+param);
                           //These function's 'this' are bound to the module's 'this' so you can do stuff like:
                           this.sendNotification("PAGE_SELECT", "2");
                       } 
                   } 
                  
        };	
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      posted in Troubleshooting
      bjjsoulB
      bjjsoul
    • RE: how do i update my magic mirror

      ERROR???¿?¿?? :( :(

      magicmirror@2.8.0 start /home/pi/MagicMirror
      sh run-start.sh

      Starting MagicMirror: v2.8.0
      Loading config …
      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:111
      “command statement *variable”: function(param){ < ---- start
      ^

      SyntaxError: Unexpected token <
      at new Script (vm.js:74:7)
      at createScript (vm.js:246:10)
      at Object.runInThisContext (vm.js:298:10)
      at Module._compile (internal/modules/cjs/loader.js:678:28)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
      at Module.load (internal/modules/cjs/loader.js:620:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
      at Function.Module._load (internal/modules/cjs/loader.js:551:3)
      at Module.require (internal/modules/cjs/loader.js:658:17)
      at require (internal/modules/cjs/helpers.js:20:18)

      posted in Troubleshooting
      bjjsoulB
      bjjsoul
    • RE: how do i update my magic mirror

      @Stoffbeuteluwe THANKS but dont work :

      cd ~\MagicMirror
      git pull

      thanks dude, i have another problem, i want to install a command voice but idont know whats is the error…

      i check the config

      Checking file… /home/pi/MagicMirror/config/config.js
      Line 117 col 10 Expected ‘}’ to match ‘{’ from line 102 and instead saw ‘]’.
      Line 118 col 6 Expected ‘]’ to match ‘[’ from line 28 and instead saw ‘;’.
      Line 121 col 1 Expected ‘}’ to match ‘{’ from line 11 and instead saw ‘if’.
      Line 121 col 4 Bad invocation.
      Line 121 col 35 Missing semicolon.

      AND this are the line:

                  {
      		module: "MMM-Snow",
      		position: "fullscreen_above",
      		config: { // See 'Configuration options' for more information.
      			flakeCount: 100,
      			theme: "winter",			
      		}
      	},
               {   
              module: "MMM-Voice-Commands",
              config: {  
                  debug: false, //Displays end results and errors from annyang in the Log
                  autoStart: true, //Adds annyang commands when it first starts
                  activateCommand: "hello mirror", //Command to active all other commands
                  deactivateCommand: "goodbye mirror", //Command to deactivate all other commands
                  alertHeard: false, //Whether an alert should be shown when annyang hears a phrase (mostly for debug)
                  commands: {  
                      "command statement :variable (optional statement)": "SOCKET_NOTIFICATION_NAME",
                      //The payload of the socket notification will be whatever is said in the :variable
                      "command statement *variable": function(param){   < ----  start 
                          alert("Whatever is said in the *variable space is given as the "+param);
                          //These function's 'this' are bound to the module's 'this' so you can do stuff like:
                          this.sendNotification("PAGE_SELECT", "2");
                      } 
                  } 
               ]
      	};
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      posted in Troubleshooting
      bjjsoulB
      bjjsoul
    • how do i update my magic mirror

      how i can update this?

      on my magic mirror appears on top one new update, but i dont know how to do it.0_1570946926790_WhatsApp Image 2019-10-07 at 9.50.47 AM.jpeg

      posted in Troubleshooting
      bjjsoulB
      bjjsoul
    • RE: hi, i need your help... tell me, how i do a new modules please

      hey bro, i need help with mmm.awesomealexa… you know if this module is working

      posted in Troubleshooting
      bjjsoulB
      bjjsoul
    • RE: hi, i need your help... tell me, how i do a new modules please

      HEY BRO YOU ARE AWESOME … THANK YOU DUDE, I AM VERY HAPPY! IS WORKING … HEY BRO YOU HAVE WHATSAPP THIS MY NUMBER 504 98674031 … I AM GONNA BE NEEDING YOU, IN MY NEXT MODULES INSTALLATIONS… THANKS

      0_1570746677017_WhatsApp Image 2019-10-10 at 4.02.42 PM.jpeg

      VIDEO

      posted in Troubleshooting
      bjjsoulB
      bjjsoul
    • RE: hi, i need your help... tell me, how i do a new modules please

      mmmm sorry , i dont understand… :( my magic mirror is run perfect , whitout this module0_1570743430371_WhatsApp Image 2019-10-07 at 9.50.47 AM.jpeg

      AND THIS is , file MM-Snow.js

      /* Magic Mirror
       * Module: MMM-Snow
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       * 
       * Comment on terminology: a 'flake' is any moving item being shown on the mirror, while
       * the specific themed items are called 'snow' or 'heart'. This applies to variable names
       * file names and css class names.
       */
      
      Module.register("MMM-Snow",{
      
      	defaults: {
      		flakeCount: 100,
      		theme: "winter"                 // pick from themes map below, i.e. winter, love
      	},
      
      	themes: {
      		"winter" : { 
      			"flakePrefix"  : "snow",    // prefix of css name, e.g. snow1 
      			"imagesCount"  : 3,         // number of images available in this theme, here:  snow1, snow2, snow3
      			"downwards"    : true,      // direction of flake movements, snow goes downwards
      			"sizeFactor"   : 1},        // adapt size of flakes to your liking, use original flake size
      		"love"   : { 
      			"flakePrefix" : "heart",    // prefix of css name, e.g. heart1 
      			"imagesCount"  : 2,         // number of images in this theme, here:  heart1, heart2
      			"downwards"    : false,     // direction of flake movements, hearts raise upwards			
      			"sizeFactor"   : 2},        // adapt size of flakes to your liking, we like bigger hearts
      		"water"   : { 
      			"flakePrefix" : "bubble",   // prefix of css name, e.g. bubble1 
      			"imagesCount"  : 1,         // number of images in this theme, here:  bubble1
      			"downwards"    : false,     // direction of flake movements, bubbles raise upwards			
      			"sizeFactor"   : 2}         // adapt size of flakes to your liking, we like bigger bubbles
      	},
      
      	getStyles: function() {
      		return [ "MMM-Snow.css" ]
      	},
      
      	getDom: function() {
      		var themeSettings = this.themes[this.config.theme];
      		var wrapper = document.createElement("div")
      		wrapper.className = "wrapper"
      
      		var flake, jiggle, size;
      
      		for(var i = 0; i < this.config.flakeCount; i++) {
      
      			size = themeSettings.sizeFactor * (Math.random() * 0.75) + 0.25;
      			flakeImage = document.createElement("div")
      			
      			var flakeSuffix = Math.round(1 + Math.random() * (themeSettings.imagesCount - 1));
      			flakeImage.className = themeSettings.flakePrefix + flakeSuffix;
      			flakeImage.style.transform = "scale(" + size +", " + size + ")";
      			flakeImage.style.opacity = size;
      
      			flake = document.createElement("div");
      			if(themeSettings.downwards) {
      				flake.className = "flake-downwards";
      			}
      			else {
      				flake.className = "flake-upwards"
      			}
      
      			jiggle = document.createElement("div");
      			jiggle.style.animationDelay = (Math.random() * 4) + "s";
      			jiggle.style.animationDuration = ((Math.random() * 30) + 30) + "s";
      			jiggle.appendChild(flakeImage);
      
      			size = (Math.random() * 0.75) + 0.25;
      			jiggle.style.transform = "scale(" + size +", " + size + ")";
      			jiggle.style.opacity = size;
      
      			flake.appendChild(jiggle);
      			flake.style.left = ((Math.random() * 100) - 10) + "%";
      			flake.style.animationDelay = (Math.random() * 100) + "s";
      			flake.style.animationDuration = 100 - (Math.random() * 50 * size) + "s";
      
      			wrapper.appendChild(flake);
      		}
      		return wrapper;
      	}
      
      });
      
      posted in Troubleshooting
      bjjsoulB
      bjjsoul
    • RE: hi, i need your help... tell me, how i do a new modules please

      this is a little part the file, config.js… tell me please whats is my wrong.

      i can install all magic mirror, in that is ok

      but i want install, alexa awesome, comand voice and other modules, and i have realy problem… :( thank dude for you help…

      
      },
         	{
         		module: "newsfeed",
         		position: "bottom_bar",
         		config: {
         			feeds: [
         				{
         					title: "New York Times",
         					url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
         				}
         			],
         			showSourceTitle: true,
         			showPublishDate: true,
         			broadcastNewsFeeds: true,
         			broadcastNewsUpdates: true
         		}
         	},
                    {
         	module: "MMM-Snow",
         	position: "fullscreen_above",
         	config: { // See 'Configuration options' for more information.
         		flakeCount: 100,
         		theme: "winter",			
         	}
         }
             },
         ]
         
         };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      posted in Troubleshooting
      bjjsoulB
      bjjsoul
    • RE: hi, i need your help... tell me, how i do a new modules please

      in this moment, i am fix the comma, but no work it. now i am check the configuration and see like this…

      Checking file… /home/pi/MagicMirror/config/config.js
      Line 100 col 9 Expected ‘]’ to match ‘[’ from line 28 and instead saw ‘}’.
      Line 101 col 5 Expected ‘}’ to match ‘{’ from line 11 and instead saw ‘]’.
      Line 101 col 6 Missing semicolon.
      Line 101 col 5 Unrecoverable syntax error. (94% scanned).

      posted in Troubleshooting
      bjjsoulB
      bjjsoul
    • 1 / 1