• 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.

Need help with MMM-voice, getting errors

Scheduled Pinned Locked Moved Unsolved Troubleshooting
6 Posts 4 Posters 1.1k Views 3 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 broberg Oct 15, 2019, 9:30 AM Oct 15, 2019, 5:31 AM

    someone can help with this, where is the error?¿?¿ i am trying to install a voice command

    {
    module: "MMM-Snow",
    position: "fullscreen_above",
    config: { // See 'Configuration options' for more information.
    flakeCount: 100,
    theme: "winter",
    }
    },
    {
    module: 'MMM-voice',
    position: 'bottom_bar',
    config: {
    microphone: 1,
    ...
    }
    }
    ]
    
    };
    
    
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== "undefined") {module.exports = config;}
    

    when i run the magic mirror this error appears :

    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:106
    }
    ^
    
    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)
    Loading module helpers ...
    Initializing new module helper ...
    Module helper loaded: updatenotification
    No helper found for module: helloworld.
    All module helpers loaded.
    Starting server on port 8080 ... 
    Server started ...
    Connecting socket for: updatenotification
    Sockets connected & modules started ...
    Launching application.´
    
    B S 2 Replies Last reply Oct 15, 2019, 9:37 AM Reply Quote 0
    • B Offline
      bdream
      last edited by Oct 15, 2019, 8:28 AM

      Hi bjjsoul,
      please add an comma ‘,’ after the last phrase },

       {
              module: 'MMM-voice',
              position: 'bottom_bar',
              config: {
                  microphone: 1,
                  ...
              }
          },
      

      maybe that help…

      –
      cheers, bdream

      1 Reply Last reply Reply Quote 0
      • B Offline
        broberg Project Sponsor @bjjsoul
        last edited by Oct 15, 2019, 9:37 AM

        @bjjsoul

        Hi, When you are asking for help please don’t make multiple posts about the same issue.
        Secondly, when asking for help with the configuration file we need to see the entire configuration file, just not a single part.

        Many times when you get WARNING! Could not validate config file. there is some symbols missing or added where they are not supposed to be.

        Like a missing { or }
        Like a missing [ or ]
        Like a missing , or " "

        Or maybe you have copied and pasted in a module configuration where it’s not supposed to be.

        B 1 Reply Last reply Oct 15, 2019, 9:13 PM Reply Quote 0
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer @bjjsoul
          last edited by Oct 15, 2019, 11:39 AM

          @bjjsoul you need to remove the 3 dots from the config. They are only there to show that the module has more config options that would be placed at that position

          Please create a github issue if you need help, so I can keep track

          B 1 Reply Last reply Oct 15, 2019, 9:21 PM Reply Quote 0
          • B Offline
            bjjsoul @broberg
            last edited by Oct 15, 2019, 9:13 PM

            @broberg thanks for your help… but they are differents modules of voice command, check it out and you can see is true .
            i am only trying to install a voice command that works for my magic mirror

            1 Reply Last reply Reply Quote 0
            • B Offline
              bjjsoul @strawberry 3.141
              last edited by Oct 15, 2019, 9:21 PM

              @strawberry-3-141 , thanks i wil try

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                6/6
                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