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.

    MMM-Hotword causing Mirror to blackout

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    mmm-googleassistanthotwordblackscreen
    12 Posts 3 Posters 4.0k 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.
    • ? Offline
      A Former User @budddesilva
      last edited by A Former User

      @budddesilva said in MMM-Hotword causing Mirror to blackout:

      Error: Cannot find module ‘snowboy’

      This says you didn’t (or failed) npm install of modules. snowboy is included in MMM-Hotword and you havn’t installed it completely. Was there any suspicious error when you install MMM-Hotword?

      1 Reply Last reply Reply Quote 0
      • B Offline
        budddesilva
        last edited by

        Ok. These are the steps I took.

        1. Removed the MMM-AssistantMk2/node_modules folder.
        2. npm install in the MMM-AssistantMk2 folder
          cd ~/MagicMirror/modules/MMM-AssistantMk2
          npm install --save-dev electron-rebuild
          npm install nan
        3. Received the following error
        WARNING! Could not load config file. Starting with default configuration. Error found: Error: Failed to load gRPC binary module because it was not installed for the current system
        Expected directory: electron-v2.0-linux-arm-glibc
        Found: [node-v67-linux-arm-glibc]
        This problem can often be fixed by running "npm rebuild" on the current system
        Original error: Cannot find module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node'
        
        1. Ran the npm rebuild command in the MMM-AssistantMk2 folder
        2. Still the same error as before.
        3. Ran the npm rebuild command in the MMM-AssistantMk2 > node_modules folder
        4. Still the same error as before.

        What do you think @sdetweil ?

        ? 1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @budddesilva
          last edited by

          @budddesilva

          sudo apt-get update
          sudo apt-get upgrade
          sudo apt-get install build-essentials
          sudo apt-get install gcc-5
          

          do this first.

          Then,

          sudo apt-get install libasound2-dev sox libsox-fmt-all
          

          Then,

          cd ~/MagicMirror/modules/MMM-AssistantMk2
          npm install --save-dev electron-rebuild
          ./node_modules/.bin/electron-rebuild
          

          I wish you have a luck. Happy holidays.

          1 Reply Last reply Reply Quote 0
          • B Offline
            budddesilva
            last edited by

            Hi @Sean
            Thank you for your input. I ran through all the commands you gave without any problems. Had to change the “essentials” to “essential”.
            But, now I get the previous error I had received.

            WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘snowboy’.

            ? 1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User @budddesilva
              last edited by A Former User

              @budddesilva
              That is another issue. snowboy is related with MMM-Hotword, and that error says you didn’t or failed proper installation of that module. Read the instructions of installation.

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