MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

MMM-AssistantMk2 Problem with Blackscreen



  • Hello, I would like to use the google assistant on my Magic Mirror. I installed the module, logged in to googel and updated the config file.

    {
      module: "MMM-AssistantMk2",
      position: "top_left",
      config: {}
    },
    

    if I restart now the magic mirror comes simply only a black screen without error message. If the code is removed from the config then the magic mirror works normally again.

    I have the module: MMM-Hotword not installed can it be due? Do I have to install the module at all? I would be enough if I could activate the mirror with “Hello Google”.

    If someone could help me with my problem I would be very happy.

    Greeting Volker


  • Module Developer

    @seppel1078 said in MMM-AssistantMk2 Problem with Blackscreen:

    NODE_MODULE_VERSION 59. This version of Node.js requires
    NODE_MODULE_VERSION 57. Please try re-compiling or re-installing

    This is the reason.
    See https://github.com/eouia/MMM-AssistantMk2#installation


  • Module Developer

    @seppel1078
    First, For more details (error logs) are needed. See npm start dev result or pm2 show log
    Second, MMM-AssistantMk2 itself has no awakening method except a smiple mic-icon clicking. It should be activated by other trigger (e.g: hotword detection from MMM-Hotword, or some notification from other module)
    And last, “Hello Google” or “Ok Google” hotword is not supported by SNOWBOY Hotword detection engine (MMM-Hotword) by itself.
    You can contact me;
    email : eouia0819@gmail.com
    Telegram : @eouia
    or github issue board : https://github.com/eouia/MMM-AssistantMk2/issues



  • her is my log:

    0 info it worked if it ends with ok
    1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start', 'dev' ]
    2 info using npm@6.4.1
    3 info using node@v9.11.2
    4 verbose config Skipping project config: /home/pi/.npmrc. (matches userconfig)
    5 verbose stack Error: missing script: start
    5 verbose stack     at run (/usr/lib/node_modules/npm/lib/run-script.js:155:19)
    5 verbose stack     at /usr/lib/node_modules/npm/lib/run-script.js:63:5
    5 verbose stack     at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:115:5
    5 verbose stack     at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:418:5
    5 verbose stack     at checkBinReferences_ (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:373:45)
    5 verbose stack     at final (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:416:3)
    5 verbose stack     at then (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:160:5)
    5 verbose stack     at ReadFileContext. (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:332:20)
    5 verbose stack     at ReadFileContext.callback (/usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16)
    5 verbose stack     at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:434:13)
    6 verbose cwd /home/pi
    7 verbose Linux 4.14.71-v7+
    8 verbose argv "/usr/bin/node" "/usr/bin/npm" "start" "dev"
    9 verbose node v9.11.2
    10 verbose npm  v6.4.1
    11 error missing script: start
    12 verbose exit [ 1, true ]
    
    

  • Module Developer

    @seppel1078
    npm start dev should be executed in root of ‘MagicMirror’ directory.

    cd ~/MagicMirror
    npm start dev
    

    (And if you were using pm2 previously, pm2 stop mm before execution)



  • 
    pi@raspberrypi3:~/MagicMirror $ npm start dev
    
    > magicmirror@2.5.0 start /home/pi/MagicMirror
    > sh run-start.sh "dev"
    
    Starting MagicMirror: v2.5.0
    Loading config ...
    Loading module helpers ...
    No helper found for module: alert.
    WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/speaker/build/Release/binding.node'
    was compiled against a different Node.js version using
    NODE_MODULE_VERSION 59. This version of Node.js requires
    NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
    the module (for instance, using `npm rebuild` or `npm install`).
    Loading module helpers ...
    No helper found for module: alert.
    App threw an error during load
    Error: The module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/speaker/build/Release/binding.node'
    was compiled against a different Node.js version using
    NODE_MODULE_VERSION 59. This version of Node.js requires
    NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
    the module (for instance, using `npm rebuild` or `npm install`).
        at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:172:20)
        at Object.Module._extensions..node (module.js:671:18)
        at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:172:20)
        at Module.load (module.js:561:32)
        at tryModuleLoad (module.js:504:12)
        at Function.Module._load (module.js:496:3)
        at Module.require (module.js:586:17)
        at require (internal/module.js:11:18)
        at bindings (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/bindings/bindings.js:81:44)
        at Object. (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/speaker/index.js:9:36)
    Whoops! There was an uncaught exception...
    Error: The module '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/speaker/build/Release/binding.node'
    was compiled against a different Node.js version using
    NODE_MODULE_VERSION 59. This version of Node.js requires
    NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
    the module (for instance, using `npm rebuild` or `npm install`).
        at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:172:20)
        at Object.Module._extensions..node (module.js:671:18)
        at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:172:20)
        at Module.load (module.js:561:32)
        at tryModuleLoad (module.js:504:12)
        at Function.Module._load (module.js:496:3)
        at Module.require (module.js:586:17)
        at require (internal/module.js:11:18)
        at bindings (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/bindings/bindings.js:81:44)
        at Object. (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/speaker/index.js:9:36)
    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    Launching application.
    
    

  • Module Developer

    @seppel1078 said in MMM-AssistantMk2 Problem with Blackscreen:

    NODE_MODULE_VERSION 59. This version of Node.js requires
    NODE_MODULE_VERSION 57. Please try re-compiling or re-installing

    This is the reason.
    See https://github.com/eouia/MMM-AssistantMk2#installation



  • I’ll try that out. Thanks for the quick help so far



  • now the magic mirror starts normally. Many thanks for the help



  • @seppel1078

    Can you please share the config file used for MMM-AssistantMk2. I am also getting same black screen issue with cursor. What step you took for solving this issue.



  • @sunilkvr
    {
    module: “MMM-AssistantMk2”,
    position: “top_right”,
    config: {
    useWelcomeMessage: “brief today”
    }
    },

    this simple config should work just for testing and making sure the module loads.
    I ended up fixing mine by rolling back to grpc 1.2 and gcc7 then rebuilding the binaries. Took about an hour on my pi 2, but its up and running now.


Log in to reply