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

MMM-AssistantMk2 (v3)

Scheduled Pinned Locked Moved System
135 Posts 27 Posters 57.6k Views 25 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.
  • N Offline
    nakedrabbit
    last edited by Feb 2, 2020, 12:13 AM

    Thanks so much for the new version! I know you guys are working hard on this, I love the plugin, and I appreciate everything that went into making it.

    Unfortunately I still have some more issues, and they seem memory related this time around as well. To recap: I’m on a Pi 3B with latest MM, but still on Raspbian Stretch.

    I cleared out the old AssistantMk2 and pulled the new version from scratch. Though I used the autoinstaller, I still had to manually rebuild electron…? That’s OK, though, because it did work fine.

    I used both recommended config options , namely
    useHTML5: false,
    playProgram: “mpg321”,

    Everything seems OK, and my first test yesterday worked great. I asked a simple question, “What time is it?” and got the answer and all worked great. I left it on overnight, but today Hotword does not summon the plugin. I get these messages from PM2 log:

    0|mm | [HOTWORD] Detector starts listening.
    0|mm | [HOTWORD] Detected: SMARTMIRROR
    0|mm | [HOTWORD] stops.
    0|mm | [HOTWORD] After Recording is too short
    0|mm | [HOTWORD] Final Result: { detected: true, hotword: ‘SMARTMIRROR’, file: null }

    And the corresponding error messages:

    0|mm | at Module._compile (internal/modules/cjs/loader.js:678:28)
    0|mm | at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
    0|mm | at Module.load (internal/modules/cjs/loader.js:620:32)
    0|mm | at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
    0|mm | at Function.Module._load (internal/modules/cjs/loader.js:551:3)
    0|mm | at Module.require (internal/modules/cjs/loader.js:658:17)
    0|mm | at require (internal/modules/cjs/helpers.js:20:18)
    0|mm | mmap() failed: Cannot allocate memory
    0|mm | Failed to create permanent mapping for memfd region with ID = 775865347
    0|mm | Failed to regester memfd mempool. Reason: could not attach memfd SHM ID to pipe
    0|mm | mmap() failed: Cannot allocate memory
    0|mm | Failed to create permanent mapping for memfd region with ID = 3943571786
    0|mm | mmap() failed: Cannot allocate memory
    0|mm | Failed to create permanent mapping for memfd region with ID = 2623177707
    0|mm | Ignoring received block reference with non-registered memfd ID = 2623177707

    I gave you all 15 lines in case there’s something there.

    So I stopped MM entirely, started again. Hotword brought up AssistantMk2, but only once, with identical error messages. Once the plugin told me it did not understand, it was unresponsive to my voice.

    1 Reply Last reply Reply Quote 0
    • P Offline
      pnobrega
      last edited by Feb 2, 2020, 4:12 AM

      @Sean what files need to be translated?
      I can do a Pt-pt translation ;)

      ? 1 Reply Last reply Feb 2, 2020, 12:35 PM Reply Quote 0
      • ? Offline
        A Former User @pnobrega
        last edited by Feb 2, 2020, 12:35 PM

        @pnobrega

        This module needs two kinds of translations.
        Basic terms used by the module.
        https://github.com/eouia/MMM-AssistantMk2/tree/master/translations
        Error messages or some basic text would be used by the module itself. You can contribute by translating these files.
        Send us translation direclty.
        Or make a fork from the original github repository to your own repository. Add your work, then make Pull Request(PR) to the original repository. If the original author( - we) accept it, your working will be merged into the original repository.
        vocal patterns for locale on recipes.
        Recipe also might needs some translations. For example, with-MMM-Youtube.js recipe (https://github.com/eouia/MMM-AssistantMk2/blob/master/recipes/with-MMM-Youtube.js) is written in English. So, stop video as a pattern of transcriptionHook is used. If you could provide with-MMM-Youtube.PT_BR.js with translation of stop video, send us directly or make a PR as I’ve said above.

        P 1 Reply Last reply Feb 2, 2020, 6:15 PM Reply Quote 0
        • P Offline
          pnobrega @Guest
          last edited by Feb 2, 2020, 6:15 PM

          @Sean i’m gonna install now the module. After installed I’ll translate it.
          Wanna see context for better translate.

          I’ll send you the files after

          1 Reply Last reply Reply Quote 0
          • P Offline
            pnobrega
            last edited by Feb 2, 2020, 9:28 PM

            hi.
            What am i missing here?

            https://ibb.co/TcH3MHF

            current config never works. I’m shown 2 devices

            card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
            card 1: SB [HDA ATI SB], device 0: ALC269VB Analog [ALC269VB Analog]

            i’ve choosen different settings but never works.
            Sound it working good cause i hear it from youtube. Speakers are from the monitor through hdmi

            1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User
              last edited by Feb 4, 2020, 7:48 AM

              Hi, I wrote audio script with play plughw. If don’t work try manually to find your configuration

              1 Reply Last reply Reply Quote 0
              • K Offline
                Kevinho195
                last edited by Feb 4, 2020, 8:46 PM

                Hi @Sean
                I just updated from 3.0 to the latest version. I did git pull and npm install and did create the token.json again and store it as decribed in your manual. Version 3.0 did work great, but now I get this error: What am I doing wrong?

                0|MagicMirror  | [21:35:32.002] [LOG]    
                0|MagicMirror  | Starting MagicMirror: v2.10.0
                0|MagicMirror  | [21:35:32.032] [LOG]    
                0|MagicMirror  | Loading config ...
                0|MagicMirror  | [21:35:32.071] [LOG]    
                0|MagicMirror  | Loading module helpers ...
                0|MagicMirror  | [21:35:32.078] [LOG]    
                0|MagicMirror  | No helper found for module: MMM-pages.
                0|MagicMirror  | [21:35:36.901] [ERROR]  
                0|MagicMirror  | WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'play-sound'
                0|MagicMirror  | [21:35:36.903] [LOG]    Loading module helpers ...
                0|MagicMirror  | [21:35:36.906] [LOG]    No helper found for module: MMM-pages.
                0|MagicMirror  | [21:35:36.913] [ERROR]  App threw an error during load
                0|MagicMirror  | [21:35:36.919] [ERROR]  Error: Cannot find module 'play-sound'
                0|MagicMirror  |     at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
                0|MagicMirror  |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                0|MagicMirror  |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                0|MagicMirror  |     at Function.Module._load (internal/modules/cjs/loader.js:528:25)
                0|MagicMirror  |     at Module.require (internal/modules/cjs/loader.js:658:17)
                0|MagicMirror  |     at require (internal/modules/cjs/helpers.js:20:18)
                0|MagicMirror  |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_helper.js:12:19)
                0|MagicMirror  |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_helper.js:201:3)
                0|MagicMirror  |     at Module._compile (internal/modules/cjs/loader.js:711:30)
                0|MagicMirror  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
                0|MagicMirror  | [21:35:36.939] [LOG]    
                0|MagicMirror  | Whoops! There was an uncaught exception...
                0|MagicMirror  | [21:35:36.941] [ERROR]  
                0|MagicMirror  | { Error: Cannot find module 'play-sound'
                0|MagicMirror  |     at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
                0|MagicMirror  |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                0|MagicMirror  |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                0|MagicMirror  |     at Function.Module._load (internal/modules/cjs/loader.js:528:25)
                0|MagicMirror  |     at Module.require (internal/modules/cjs/loader.js:658:17)
                0|MagicMirror  |     at require (internal/modules/cjs/helpers.js:20:18)
                0|MagicMirror  |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_helper.js:12:19)
                0|MagicMirror  |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_helper.js:201:3)
                0|MagicMirror  |     at Module._compile (internal/modules/cjs/loader.js:711:30)
                0|MagicMirror  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) code: 'MODULE_NOT_FOUND' }
                0|MagicMirror  | [21:35:36.975] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                0|MagicMirror  | [21:35:36.977] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                0|MagicMirror  | Fontconfig error: "/home/pi/.config/fontconfig/fonts.conf", line 10: junk after document element
                0|MagicMirror  | [21:35:37.852] [LOG]    
                0|MagicMirror  | Launching application.
                
                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User
                  last edited by A Former User Feb 4, 2020, 9:24 PM Feb 4, 2020, 9:23 PM

                  Try this :

                  cd ~/MagicMirror/modules/MMM-AssistantMk2
                  
                  ./update
                  

                  I think package. Json and package-lock. Json are outdated. I wrote a script for this ;)

                  K 1 Reply Last reply Feb 5, 2020, 7:45 AM Reply Quote 0
                  • K Offline
                    Kevinho195 @Guest
                    last edited by Feb 5, 2020, 7:45 AM

                    @Bugsounet thanks for your help :)

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by A Former User Feb 7, 2020, 9:10 AM Feb 5, 2020, 7:30 PM

                      We have updated AMk2 to v3.1.0-2
                      Changes:

                      • Standby icon Touch to activate assistant
                      • AMk2 is now prepared to receive addons

                      Note: I prepare sample and template addons.
                      Coming soon ;)
                      Just a little patience and I will come back to you for the addons

                      EDIT
                      Addons repository is now online

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 13
                      • 14
                      • 5 / 14
                      5 / 14
                      • First post
                        42/135
                        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