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

    Scheduled Pinned Locked Moved System
    421 Posts 61 Posters 630.8k Views 57 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.
    • M Offline
      mariecbilodeau
      last edited by

      this is part of my rebuild error

      pi@raspberrypi:~/MagicMirror/modules/MMM-AssistantMk2 $ npm install --save-dev electron-rebuild
      npm WARN MMM-AssistantMk2@1.0.1 No repository field.
      
      + electron-rebuild@1.8.2
      updated 1 package in 18.167s
      pi@raspberrypi:~/MagicMirror/modules/MMM-AssistantMk2 $ ./node_modules/.bin/electron-rebuild
      ✖ Rebuild Failed
      
      An unhandled error occurred inside electron-rebuild
      gyp info it worked if it ends with ok
      gyp info using node-gyp@3.8.0
      gyp info using node@9.11.2 | linux | arm
      gyp info spawn /usr/bin/python2
      gyp info spawn args [ '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/gyp/gyp_main.py',
      gyp info spawn args   'binding.gyp',
      gyp info spawn args   '-f',
      gyp info spawn args   'make',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build/config.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/addon.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/home/pi/.electron-gyp/.node-gyp/iojs-2.0.0/common.gypi',
      gyp info spawn args   '-Dlibrary=shared_library',
      gyp info spawn args   '-Dvisibility=default',
      gyp info spawn args   '-Dnode_root_dir=/home/pi/.electron-gyp/.node-gyp/iojs-2.0.0',
      gyp info spawn args   '-Dnode_gyp_dir=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp',
      gyp info spawn args   '-Dnode_lib_file=/home/pi/.electron-gyp/.node-gyp/iojs-2.0.0/<(target_arch)/iojs.lib',
      gyp info spawn args   '-Dmodule_root_dir=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc',
      gyp info spawn args   '-Dnode_engine=v8',
      gyp info spawn args   '--depth=.',
      gyp info spawn args   '--no-parallel',
      gyp info spawn args   '--generator-output',
      gyp info spawn args   'build',
      gyp info spawn args   '-Goutput_dir=.' ]
      gyp info spawn make
      gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
      make : on entre dans le répertoire « /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/build »
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/backoff/backoff.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_args.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_stack.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_stack_builder.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channel_trace.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channelz.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/channelz_registry.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/connected_channel.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/handshaker.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/handshaker_factory.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/handshaker_registry.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/channel/status_util.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/compression.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/compression_internal.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/message_compress.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/stream_compression.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/stream_compression_gzip.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/compression/stream_compression_identity.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/debug/stats.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/debug/stats_data.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/http/format_request.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/http/httpcli.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/http/parser.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/call_combiner.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/combiner.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint_pair_posix.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint_pair_uv.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/endpoint_pair_windows.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/error.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_epoll1_linux.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_epollex_linux.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_epollsig_linux.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_poll_posix.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_posix.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/ev_windows.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/exec_ctx.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/executor.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/fork_posix.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/fork_windows.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/gethostname_fallback.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/gethostname_host_name_max.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/gethostname_sysconf.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iocp_windows.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_custom.o
        CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/iomgr/iomgr_internal.o
      
      
      ? 1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @mariecbilodeau
        last edited by

        @mariecbilodeau
        “gyp ERR …” lines are needed. Your log is missing those infos.

        M 1 Reply Last reply Reply Quote 0
        • T Offline
          themc
          last edited by

          is there any way to play local stored mp3 files on the raspbery pi using the play … command

          currently when saying prhases like play mp3 it says oke and stops.

          im wondering if it is possible to play music mp3s from the music folder using the built in player of vlc player by sying the google command of a gaction

          would be a nice addition to the plugin

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

            @themc
            If you have a module to play mp3 and it is able to be activated by notification, it could. But adding some specific job to Assistant itself, I think it is not so good idea, because each circumstance is different.
            So have you a module which can play mp3? I can make gaction sample for it.

            1 Reply Last reply Reply Quote 0
            • D Offline
              dvbit @Guest
              last edited by

              @sean thanks for all the info.
              Just saw this after sending you request for info.
              will search better / more in the future :-)

              1 Reply Last reply Reply Quote 0
              • D Offline
                dvbit
                last edited by

                Looking for a solution for my vertical setup and browsing the file system I have seen that the cardsare stored in a temp_screen html file in the plugin folder.

                changing there font size from 40px to 20px makes already a big diff (no scroll bars… in the cards)

                is htere a way I can intercept that file and edit before presentation?

                that would already do a good trick :-)

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

                  @dvbit
                  I’ve already done that. screenZoom is that.
                  But anyway, That screenOutput was made for SmartTV, so it was optimized for Landscape mode. And unfortunately, the screenOutput is uncontrollable static HTML itself. There is no enough room for control.
                  I wish the next version of Google SDK could provide structured data instead static HTML for screenOutput.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dvbit
                    last edited by

                    Ok. Tx will use that parameter then :-)

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mariecbilodeau @Guest
                      last edited by

                      @sean here is my complete log
                      https://www.dropbox.com/s/7l4wd8xtb3t9odk/error log?dl=0
                      thank you for your help :)

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        mariecbilodeau
                        last edited by

                        I got it working with your solution in the troubleshooting section!!! thx

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          ToastedToasty
                          last edited by

                          @Sean Hi Sean I’ve been trying to setup MMM-Assistant however after renaming my client-secret.json file to credentials.json and running the auth_and_test.json the OAuth2 page to get my token gives me an error 500, any ideas?

                          ? D 2 Replies Last reply Reply Quote 0
                          • ? Offline
                            A Former User @ToastedToasty
                            last edited by

                            @toastedtoasty Usually, 500 error means your google project has something wrong. I suggest you remove your google project and recreate again. (I doubt you might have two or more projects and have some confusing about selecting them)

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              dvbit
                              last edited by

                              @Sean
                              I have all setup correctly and no error with the configs.
                              I think I have understood the correct working of transcriptionhook but it does not fire the related actions.
                              Can you confirm it is like this the logic:
                              I setup a keyword in the config (unicorn) in the example you provide.
                              Notification trigger catches the word if it is spoken after the hotword.
                              The related action is fired.

                              Unfortunately nothing is triggered . Also : should I see some feedback in the console windows if the hook triggers ?
                              Thanks as usual for the support

                              ? 1 Reply Last reply Reply Quote 0
                              • D Offline
                                dvbit @ToastedToasty
                                last edited by

                                @toastedtoasty I think you might have forgot to configure your mail in the oauth tab in google Dev console.
                                This happened to me.

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

                                  @dvbit You can add

                                  console.log("hook", k)
                                  

                                  in line 100 of node_helper.js to check whether hookstring be caught or not.

                                  D 1 Reply Last reply Reply Quote 2
                                  • D Offline
                                    dvbit @Guest
                                    last edited by

                                    @sean Thanks… guess what? assistant setup in my mother tongue did not catch english hook :-D

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      teitlebot @Guest
                                      last edited by

                                      @sean @JRCelis Im having the same issue with the buzz and im also using the HAT. Did you fix the issue? Is there a way to just not use the HAT I have a usb mic but Im new at the whole raspberry thing.
                                      Looks like a great module but im having small hickups along the way.

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        MarkV
                                        last edited by

                                        I’ve installed MMM-AssistantMk2 with MMM-Hotword and MMM-NotificationTrigger.
                                        Everything works fine except for the return audio.
                                        It stutters and i’m getting the idea that it isn’t procest quick eneough.

                                        Am i the only one with this problem and if not does somebody have the solution?

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

                                          @markv @teitlebot
                                          There could be many reasons for that case.
                                          Maybe too many modules or too many front-end refreshing or animating, too many background process or anything else, even including internet speed.
                                          I cannot point specific reason at this moment.
                                          Anyway in my device, I use BT speaker and I have no problem about that. Sorry.

                                          M T 2 Replies Last reply Reply Quote 0
                                          • M Offline
                                            MarkV @Guest
                                            last edited by

                                            @sean
                                            Thanks for the reply.
                                            I was scared of something like that. After a clean raspbian image i just installed MagicMirror and after that MMM-AssistantMK2, MMM-Hotword and MMM-TriggerNotification (with all the nmp rebuild errors). I’ve uninstalled the compleet LibreOffice and game packets wich come by default with raspbian.

                                            I allready made a .asoundrc file like you can find around the internet.
                                            aplay && arecord work fine without glitches.

                                            Result .asoundrc

                                            pcm.!default {
                                              type asym
                                              capture.pcm "mic"
                                              playback.pcm "speaker"
                                            }
                                            ctl.!default {
                                                    type hw
                                                    card 0
                                            }
                                            pcm.mic {
                                              type plug
                                              slave {
                                                pcm "hw:1,0"
                                              }
                                            }
                                            pcm.speaker {
                                              type plug
                                              slave {
                                                pcm "hw:0,0"
                                                rate 18000
                                              }
                                            }
                                            

                                            Results aplay -l && arecord -l

                                            pi@MagicMirror2:~ $ aplay -l
                                            **** List of PLAYBACK Hardware Devices ****
                                            card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
                                              Subdevices: 7/7
                                              Subdevice #0: subdevice #0
                                              Subdevice #1: subdevice #1
                                              Subdevice #2: subdevice #2
                                              Subdevice #3: subdevice #3
                                              Subdevice #4: subdevice #4
                                              Subdevice #5: subdevice #5
                                              Subdevice #6: subdevice #6
                                            card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
                                              Subdevices: 1/1
                                              Subdevice #0: subdevice #0
                                            pi@MagicMirror2:~ $ arecord -l
                                            **** List of CAPTURE Hardware Devices ****
                                            card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
                                              Subdevices: 1/1
                                              Subdevice #0: subdevice #0
                                            

                                            Result lsmod

                                            pi@MagicMirror2:~/MagicMirror $ lsmod
                                            Module                  Size  Used by
                                            fuse                  106496  3
                                            cfg80211              573440  0
                                            rfkill                 28672  2 cfg80211
                                            joydev                 20480  0
                                            ads7846                20480  0
                                            hwmon                  16384  1 ads7846
                                            snd_bcm2835            32768  1
                                            spi_bcm2835            16384  0
                                            i2c_bcm2835            16384  0
                                            fixed                  16384  0
                                            uio_pdrv_genirq        16384  0
                                            uio                    20480  1 uio_pdrv_genirq
                                            evdev                  24576  8
                                            snd_usb_audio         172032  0
                                            snd_hwdep              16384  1 snd_usb_audio
                                            snd_usbmidi_lib        32768  1 snd_usb_audio
                                            snd_rawmidi            32768  1 snd_usbmidi_lib
                                            snd_seq_device         16384  1 snd_rawmidi
                                            snd_pcm                98304  2 snd_usb_audio,snd_bcm2835
                                            snd_timer              32768  1 snd_pcm
                                            snd                    69632  10 snd_hwdep,snd_usb_audio,snd_timer,snd_rawmidi,snd_usbmidi_lib,snd_seq_device,snd_bcm2835,snd_pcm
                                            i2c_dev                16384  0
                                            ip_tables              24576  0
                                            x_tables               32768  1 ip_tables
                                            ipv6                  434176  22
                                            

                                            What would you suggest doing now? I’m a little stuck now, due to my lack of knowledge of Linux.

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 18
                                            • 19
                                            • 20
                                            • 21
                                            • 22
                                            • 22 / 22
                                            • 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