• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

how do i update my magic mirror

Scheduled Pinned Locked Moved Unsolved Troubleshooting
11 Posts 4 Posters 2.7k Views 4 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.
  • B Offline
    bjjsoul
    last edited by Oct 13, 2019, 6:10 AM

    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

    S 1 Reply Last reply Oct 13, 2019, 8:18 AM Reply Quote 0
    • S Offline
      Stoffbeuteluwe Project Sponsor @bjjsoul
      last edited by Oct 13, 2019, 8:18 AM

      @bjjsoul

      cd ~\MagicMirror
      git pull
      
      S 1 Reply Last reply Oct 13, 2019, 11:59 AM Reply Quote 0
      • B Offline
        bjjsoul
        last edited by bjjsoul Oct 14, 2019, 1:30 AM Oct 13, 2019, 8:25 AM

        @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;}
        
        S 1 Reply Last reply Oct 13, 2019, 11:57 AM Reply Quote -1
        • S Offline
          sdetweil @bjjsoul
          last edited by Oct 13, 2019, 11:57 AM

          @bjjsoul said in how do i update my magic mirror:

          >           {
          > 		module: "MMM-Snow",
          > 		position: "fullscreen_above",
          > 		config: { // See 'Configuration options' for more information.
          > 			flakeCount: 100,
          > 			theme: "winter",			
          > 		}
          > 	},
          >          {   < ---- start module
          >         module: "MMM-Voice-Commands",
          >         config: {   < ---- start  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: {  < --- start command
          >                 "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");
          >                 } < --- end command
          >             } < ---- end config
          >          ]  ????????
          > 	};
          > 
          > /*************** DO NOT EDIT THE LINE BELOW ***************/
          > if (typeof module !== "undefined") {module.exports = config;}
          
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Stoffbeuteluwe
            last edited by sdetweil Oct 13, 2019, 12:42 PM Oct 13, 2019, 11:59 AM

            @Stoffbeuteluwe please refer people to the new update script for updating the base.

            https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • B Offline
              bjjsoul
              last edited by Oct 13, 2019, 10:10 PM

              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)

              S 1 Reply Last reply Oct 13, 2019, 10:56 PM Reply Quote 0
              • S Offline
                sdetweil @bjjsoul
                last edited by Oct 13, 2019, 10:56 PM

                @bjjsoul U cannot just paste the code in. I am trying to teach you how to solve the problems.

                All {} and [] must be matched in order

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bjjsoul
                  last edited by sdetweil Oct 14, 2019, 11:25 AM Oct 13, 2019, 11:26 PM

                  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;}
                  
                  S 1 Reply Last reply Oct 14, 2019, 11:28 AM Reply Quote 0
                  • B Offline
                    bjjsoul
                    last edited by bjjsoul Oct 13, 2019, 11:50 PM Oct 13, 2019, 11:49 PM

                    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

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dwntwn87
                      last edited by Oct 14, 2019, 1:46 AM

                      @bjjsoul, can you copy/past in here your entire config.js?
                      also when posting the code please click on the “</>” button to put in the code block.

                      that way the code will be in a box like this one.
                      
                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        4/11
                        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