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 85.3k 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.
    • E Offline
      electros Project Sponsor @Guest
      last edited by electros

      @Bugsounet
      Hello again. I tried what you recommended but without much success. First I made the settings for A2D as you recommended and now when I ask something after the assistant answers me an internet window opens with reference to the answer this being a new and very good thing. But when the assistant starts saying the answer, it hides the modules on the screen apart of calendarext. I was talking about this in the post above. I put a short video on youtube.
      https://youtu.be/DOIkuA60tKo
      As for the radio, I tried after that tutorial but without success.
      I tried to use that file “with-radio_fr.js” but when I say “cheriefm” the assistant shows me the website of the radio station “cheriefm” saying “here is what I found on the web” without starting the radio station.
      Thank you.

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

        @electros said in MMM-AssistantMk2 (v3):

        it hides the modules on the screen apart of calendarext

        it’s a know bug of calendarext

        I tried to use that file “with-radio_fr.js” but when I say “cheriefm”

        ah … “cheriefm” is the name of the block (like a landmark)
        the think to say is “mets chérie fm” in the sample.
        you can try to change it for your language with pattern value

        exemple: if you change pattern value to radio test
        if you say : radio test it will reconize the cheriefm command and execute it (send to A2D mp3 link of the radio and img)

        E 2 Replies Last reply Reply Quote 0
        • E Offline
          electros Project Sponsor @Guest
          last edited by

          @Bugsounet said in MMM-AssistantMk2 (v3):

          it’s a know bug of calendarext

          okay but couldn’t remain all the modules on the screen behind the assistant window?

          ah … “cheriefm” is the name of the block (like a landmark)

          the think to say is “mets chérie fm” in the sample.

          you can try to change it for your language with pattern value

          exemple: if you change pattern value to radio test

          if you say : radio test it will reconize the cheriefm command and execute it (send to A2D mp3 link of the radio and img)

          Well I need to practice more with this. for a start I think I should look for another microphone, the assistant doesn’t really understand what I’m saying.
          Do you think a respeaker board with 2 microphones would be better than a USB microphone?

          SergeS 1 Reply Last reply Reply Quote 0
          • SergeS Offline
            Serge @electros
            last edited by Serge

            @electros said in MMM-AssistantMk2 (v3):

            I think I should look for another microphone, the assistant doesn’t really understand what I’m saying

            One possible solution for mic

            Working on getting a good hardware solution for MMM-AssistantMK2

            E 1 Reply Last reply Reply Quote 0
            • E Offline
              electros Project Sponsor @Serge
              last edited by

              @Serge Thank you for the link i was looking for a solution like that.

              1 Reply Last reply Reply Quote 0
              • J Offline
                jimmydew
                last edited by sdetweil

                Hey everyone, I have a problem with the MMM-assistantMk2:
                The Icon is showing on the mirror, when i click on it in VNC it activates,and works. but it doesnt activate by my voice on the mirror.
                any ideas? these are my configs:

                var config = {
                	address: "localhost", // Address to listen on, can be:
                	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                	                      // - another specific IPv4/6 to listen on a specific interface
                	                      // - "0.0.0.0", "::" to listen on any interface
                	                      // Default, when address config is left out or empty, is "localhost"
                	port: 8080,
                	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
                	                                                       // or add a specific IPv4 of 192.168.1.5 :
                	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
                
                	useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
                	httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
                	httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true
                
                	language: "en",
                	timeFormat: 24,
                	units: "metric",
                	// serverOnly:  true/false/"local" ,
                			     // local for armv6l processors, default
                			     //   starts serveronly and then starts chrome browser
                			     // false, default for all  NON-armv6l devices
                			     // true, force serveronly mode, because you want to.. no UI on this device
                
                	modules: [
                
                		{
                			module: "clock",
                			position: "top_left"
                		},
                		{
                			module: "calendar",
                			header: "US Holidays",
                			position: "top_left",
                			config: {
                				calendars: [
                					{
                						symbol: "calendar-check",
                						url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"					}
                				]
                			}
                		},
                		{
                			module: "compliments",
                			position: "lower_third"
                		},
                		{
                			module: "currentweather",
                			position: "top_right",
                			config: {
                				location: "New York",
                				locationID: "", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                				appid: "YOUR_OPENWEATHER_API_KEY"
                			}
                		},
                		{
                			module: "weatherforecast",
                			position: "top_right",
                			header: "Weather Forecast",
                			config: {
                				location: "New York",
                				locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                				appid: "YOUR_OPENWEATHER_API_KEY"
                			}
                		},
                		{
                			module: "newsfeed",
                			position: "bottom_bar",
                			config: {
                				feeds: [
                					{
                						title: "New York Times",
                						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                					}
                				],
                				showSourceTitle: true,
                				showPublishDate: true,
                				broadcastNewsFeeds: true,
                				broadcastNewsUpdates: true
                			}
                		},{
                  module: "MMM-AssistantMk2",
                  position: "top_left",
                  config: {
                    debug: false,
                    ui: "Classic", // Classic2, Classic or Simple
                    // if you want Google Nest ui style
                    // set Fullscreen ui AND fullscreen_above position
                    assistantConfig: {
                      projectId: "", // Required to use gaction.
                      modelId: "", // (OPTIONAL for gaction)
                      instanceId: "", // (OPTIONAL for gaction)
                      latitude: 52.0955919,
                      longitude: 4.4711253,
                    },
                    responseConfig: {
                      useHTML5: true, // sound render by HTML5
                      useScreenOutput: true,
                      useAudioOutput: true,
                      useChime: true,
                      timer: 5000,
                      myMagicWord: true,
                      //Your prefer sound play program.
                      //By example, if you are running this on OSX, `afplay` could be available.
                      //by default mpg321 play program is enabled
                      //if audio output cutting try with mpg123 or cvlc program
                      playProgram: "mpg321",
                      chime: {
                        beep: "beep.mp3",
                        error: "error.mp3",
                        continue: "continue.mp3",
                        open: "Google_beep_open.mp3",
                        close: "Google_beep_close.mp3",
                      },
                      // false - animated icons, 'standby' - static icons only for standby state, true - all static icons
                      useStaticIcons: false
                    },
                    micConfig: { // put there configuration generated by auto-installer
                      recorder: "arecord",
                      device: "plughw:1",
                    },
                    customActionConfig: {
                      autoMakeAction: false,
                      autoUpdateAction: false, // in RPI, gaction CLI might have some trouble.(current version should be 2.2.4, but for linux-arm, Google haven't updated) so leave this as false in RPI. I don't know it is solved or not.
                      actionLocale: "en-US", // At this moment, multi-languages are not supported, sorry. Someday I'll work.
                    },
                    recipes: [ "with-MMM-TelegramBot.js" ],
                    profiles: {
                      "default": {
                        profileFile: "default.json",
                        lang: "en-US"
                      }
                    },
                    useA2D: false,
                    A2DStopCommand: "stop",
                    useSnowboy: true,
                    snowboy: {
                      audioGain: 2.0,
                      Frontend: true,
                      Model: "jarvis",
                      Sensitivity: null
                    },
                  },
                },
                
                	]
                
                };
                
                /*************** DO NOT EDIT THE LINE BELOW ***************/
                if (typeof module !== "undefined") {module.exports = config;}
                
                

                (it’s running on raspberry pi 4b)

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

                  useSnowboy: true,

                  if you use this feature, you need to update AMk2

                  npm run update
                  

                  try this in AMk2 directory
                  and enable snowboy library (and electron rebuild for snowboy)

                  J 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @jimmydew
                    last edited by

                    @jimmydew in the future please use the markdown for code

                    select the text and hit the </> icon above the editor

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      jimmydew @Guest
                      last edited by

                      @Bugsounet
                      i got quite a few errors on the rebuild:

                      ✖ Rebuild Failed
                      
                      An unhandled error occurred inside electron-rebuild
                      make: Entering directory '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/@bugsounet/snowboy/build'
                        CXX(target) Release/obj.target/snowboy/lib/snowboy.o
                      In file included from /home/pi/.electron-gyp/6.1.7/include/node/v8-internal.h:14,
                                       from /home/pi/.electron-gyp/6.1.7/include/node/v8.h:25,
                                       from /home/pi/.electron-gyp/6.1.7/include/node/node.h:63,
                                       from ../../../nan/nan.h:56,
                                       from ../lib/snowboy.cc:1:
                      /home/pi/.electron-gyp/6.1.7/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
                         declarator __attribute__((deprecated(message)))
                                                                       ^
                      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:8205:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
                         V8_DEPRECATE_SOON("Use *WithData version.",
                         ^~~~~~~~~~~~~~~~~
                      /home/pi/.electron-gyp/6.1.7/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
                         declarator __attribute__((deprecated(message)))
                                                                       ^
                      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:8214:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
                         V8_DEPRECATE_SOON("Use *WithData version.",
                         ^~~~~~~~~~~~~~~~~
                      In file included from ../lib/snowboy.cc:1:
                      ../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                      ../../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                           , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                    ^
                      ../lib/snowboy.cc: In constructor ‘SnowboyDetect::SnowboyDetect(const string&, const string&)’:
                      ../lib/snowboy.cc:38:31: warning: catching polymorphic type ‘class std::runtime_error’ by value [-Wcatch-value=]
                         } catch (std::runtime_error e) {
                                                     ^
                      In file included from ../../../nan/nan.h:56,
                                       from ../lib/snowboy.cc:1:
                      ../lib/snowboy.cc: At global scope:
                      /home/pi/.electron-gyp/6.1.7/include/node/node.h:572:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                             (node::addon_register_func) (regfunc),                          \
                                                                 ^
                      /home/pi/.electron-gyp/6.1.7/include/node/node.h:606:3: note: in expansion of macro ‘NODE_MODULE_X’
                         NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                         ^~~~~~~~~~~~~
                      ../lib/snowboy.cc:183:1: note: in expansion of macro ‘NODE_MODULE’
                       NODE_MODULE(SnowboyDetect, SnowboyDetect::Init)
                       ^~~~~~~~~~~
                      In file included from /home/pi/.electron-gyp/6.1.7/include/node/node.h:63,
                                       from ../../../nan/nan.h:56,
                                       from ../lib/snowboy.cc:1:
                      /home/pi/.electron-gyp/6.1.7/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                      /home/pi/.electron-gyp/6.1.7/include/node/node_object_wrap.h:84:78:   required from here
                      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:9810:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                      reinterpret_cast<Callback>(callback), type);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      /home/pi/.electron-gyp/6.1.7/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                      ../../../nan/nan_object_wrap.h:65:61:   required from here
                      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:9810:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                        SOLINK_MODULE(target) Release/obj.target/snowboy.node
                      /usr/bin/ld: cannot find -lcblas
                      collect2: error: ld returned 1 exit status
                      make: *** [snowboy.target.mk:143: Release/obj.target/snowboy.node] Error 1
                      make: Leaving directory '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/@bugsounet/snowboy/build'
                      gyp ERR! build error 
                      gyp ERR! stack Error: `make` failed with exit code: 2
                      gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/lib/build.js:194:23)
                      gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                      gyp ERR! System Linux 5.4.35-v7l+
                      gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp" "rebuild" "--target=6.1.7" "--arch=arm" "--dist-url=https://www.electronjs.org/headers" "--build-from-source" "--module_name=snowboy" "--module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/@bugsounet/snowboy/lib/node/binding/Release/electron-v6.1-linux-arm" "--remote_path=./snowboy/v1.4.7/Release/" "--package_name=snowboy-v1.4.7-electron-v6.1-linux-arm.tar.gz" "--host=https://github.com/bugsounet/snowboy"
                      gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/@bugsounet/snowboy
                      gyp ERR! node -v v10.20.1
                      gyp ERR! node-gyp -v v6.1.0
                      gyp ERR! not ok 
                      
                      Failed with exit code: 1
                      
                      Error: make: Entering directory '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/@bugsounet/snowboy/build'
                        CXX(target) Release/obj.target/snowboy/lib/snowboy.o
                      In file included from /home/pi/.electron-gyp/6.1.7/include/node/v8-internal.h:14,
                                       from /home/pi/.electron-gyp/6.1.7/include/node/v8.h:25,
                                       from /home/pi/.electron-gyp/6.1.7/include/node/node.h:63,
                                       from ../../../nan/nan.h:56,
                                       from ../lib/snowboy.cc:1:
                      /home/pi/.electron-gyp/6.1.7/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
                         declarator __attribute__((deprecated(message)))
                                                                       ^
                      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:8205:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
                         V8_DEPRECATE_SOON("Use *WithData version.",
                         ^~~~~~~~~~~~~~~~~
                      /home/pi/.electron-gyp/6.1.7/include/node/v8config.h:326:49: warning: ‘MicrotasksCompletedCallback’ is deprecated [-Wdeprecated-declarations]
                         declarator __attribute__((deprecated(message)))
                                                                       ^
                      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:8214:3: note: in expansion of macro ‘V8_DEPRECATE_SOON’
                         V8_DEPRECATE_SOON("Use *WithData version.",
                         ^~~~~~~~~~~~~~~~~
                      In file included from ../lib/snowboy.cc:1:
                      ../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                      ../../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                           , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                    ^
                      ../lib/snowboy.cc: In constructor ‘SnowboyDetect::SnowboyDetect(const string&, const string&)’:
                      ../lib/snowboy.cc:38:31: warning: catching polymorphic type ‘class std::runtime_error’ by value [-Wcatch-value=]
                         } catch (std::runtime_error e) {
                                                     ^
                      In file included from ../../../nan/nan.h:56,
                                       from ../lib/snowboy.cc:1:
                      ../lib/snowboy.cc: At global scope:
                      /home/pi/.electron-gyp/6.1.7/include/node/node.h:572:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                             (node::addon_register_func) (regfunc),                          \
                                                                 ^
                      /home/pi/.electron-gyp/6.1.7/include/node/node.h:606:3: note: in expansion of macro ‘NODE_MODULE_X’
                         NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                         ^~~~~~~~~~~~~
                      ../lib/snowboy.cc:183:1: note: in expansion of macro ‘NODE_MODULE’
                       NODE_MODULE(SnowboyDetect, SnowboyDetect::Init)
                       ^~~~~~~~~~~
                      In file included from /home/pi/.electron-gyp/6.1.7/include/node/node.h:63,
                                       from ../../../nan/nan.h:56,
                                       from ../lib/snowboy.cc:1:
                      /home/pi/.electron-gyp/6.1.7/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                      /home/pi/.electron-gyp/6.1.7/include/node/node_object_wrap.h:84:78:   required from here
                      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:9810:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                      reinterpret_cast<Callback>(callback), type);
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      /home/pi/.electron-gyp/6.1.7/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                      ../../../nan/nan_object_wrap.h:65:61:   required from here
                      /home/pi/.electron-gyp/6.1.7/include/node/v8.h:9810:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                        SOLINK_MODULE(target) Release/obj.target/snowboy.node
                      /usr/bin/ld: cannot find -lcblas
                      collect2: error: ld returned 1 exit status
                      make: *** [snowboy.target.mk:143: Release/obj.target/snowboy.node] Error 1
                      make: Leaving directory '/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/@bugsounet/snowboy/build'
                      gyp ERR! build error 
                      gyp ERR! stack Error: `make` failed with exit code: 2
                      gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/node-gyp/lib/build.js:194:23)
                      gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                      gyp ERR! System Linux 5.4.35-v7l+
                      gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/.bin/node-gyp" "rebuild" "--target=6.1.7" "--arch=arm" "--dist-url=https://www.electronjs.org/headers" "--build-from-source" "--module_name=snowboy" "--module_path=/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/@bugsounet/snowboy/lib/node/binding/Release/electron-v6.1-linux-arm" "--remote_path=./snowboy/v1.4.7/Release/" "--package_name=snowboy-v1.4.7-electron-v6.1-linux-arm.tar.gz" "--host=https://github.com/bugsounet/snowboy"
                      gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/@bugsounet/snowboy
                      gyp ERR! node -v v10.20.1
                      gyp ERR! node-gyp -v v6.1.0
                      gyp ERR! not ok 
                      
                      Failed with exit code: 1
                          at SafeSubscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:267:84)
                          at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:205:16)
                          at SafeSubscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:156:26)
                          at Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:92:26)
                          at Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:72:18)
                          at MapSubscriber.Subscriber._error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:92:26)
                          at MapSubscriber.Subscriber.error (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:72:18)
                          at SafeSubscriber._next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/spawn-rx/lib/src/index.js:242:65)
                          at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:205:16)
                          at SafeSubscriber.next (/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/rxjs/internal/Subscriber.js:143:22)
                      
                      > @bugsounet/snowboy@1.4.7 postinstall /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/@bugsounet/snowboy
                      > tsc -p tsconfig.json
                      
                      + @bugsounet/snowboy@1.4.7
                      added 20 packages from 25 contributors and audited 315 packages in 38.481s
                      
                      3 packages are looking for funding
                        run `npm fund` for details
                      
                      found 6 low severity vulnerabilities
                        run `npm audit fix` to fix them, or `npm audit` for details
                      @bugsounet/snowboy library installed
                      
                      1 Reply Last reply Reply Quote 0
                      • ? Offline
                        A Former User
                        last edited by A Former User

                        @jimmydew said in MMM-AssistantMk2 (v3):

                        Linux 5.4.35-v7l+

                        ah …

                        and what version of gcc do you use ?

                        try gcc --version in console

                        J 1 Reply Last reply Reply Quote 0
                        • J Offline
                          jimmydew @Guest
                          last edited by

                          @Bugsounet

                          pi@raspberrypi:~/MagicMirror $ gcc --version
                          gcc (Raspbian 7.3.0-19) 7.3.0
                          Copyright (C) 2017 Free Software Foundation, Inc.
                          This is free software; see the source for copying conditions.  There is NO
                          warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
                          
                          1 Reply Last reply Reply Quote 0
                          • E Offline
                            electros Project Sponsor @Guest
                            last edited by

                            @Bugsounet Hi, again. I managed to make my radio station list and everything works fine, just I don’t know how to stop the radio. Can you please explain me how to add a stop radio command?
                            Thank you

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

                              @jimmydew can you do this command for more informations, please ?

                              cat /etc/*release

                              @electros :
                              Good job !

                              For stop radio (and other A2D module), i create a feature in AMk2 (A2D Server part)
                              You can define your prefered stop command
                              by default it’s stop but … it’s depend of your language !
                              for exemple in french language, when i say stop, google transcript stoppe

                              you have an exemple in AMk2 structure sample

                              E J 2 Replies Last reply Reply Quote 0
                              • E Offline
                                electros Project Sponsor @Guest
                                last edited by

                                @Bugsounet OK I understand that but if I configure that “stop” in english for example just I must say " jarvis stop" or “jarvis stop radio” ?

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

                                  It’s depend what’s google return in transcription
                                  for verify what it return
                                  You have 2 solutions:

                                  1. turn Fullscreen ui , activate jarvis and say stop.
                                    AMk2 will display in real time what it understand, so if it display stop, it’s ok
                                    en french it display stoppe then i have to modify A2DStopCommand: "stoppe",
                                  2. in console and debug mode actived
                                    activate jarvis and say stop.
                                    you will see the transcription of google
                                    transcription: { transcription: 'stoppe', done: true },

                                  notes:

                                  • if you say stop and method 1 or 2 result is stop too
                                    no A2DStopCommand configuration require
                                  • stop command defined in A2DStopCommand stops all process of A2D : weblinks, cast, youtube, radio, photos (and MMM-FreeboxTV for french user)

                                  Use:

                                  just say jarvis (for activating) … stop (or your prefered A2DStopCommand)

                                  E 1 Reply Last reply Reply Quote 0
                                  • E Offline
                                    electros Project Sponsor @Guest
                                    last edited by

                                    @Bugsounet OK, thank you

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      jimmydew @Guest
                                      last edited by

                                      @Bugsounet

                                      sure:

                                      pi@raspberrypi:~/MagicMirror $ cat /etc/*release
                                      PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
                                      NAME="Raspbian GNU/Linux"
                                      VERSION_ID="10"
                                      VERSION="10 (buster)"
                                      VERSION_CODENAME=buster
                                      ID=raspbian
                                      ID_LIKE=debian
                                      HOME_URL="http://www.raspbian.org/"
                                      SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
                                      BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • ? Offline
                                        A Former User
                                        last edited by

                                        gyp ERR! System Linux 5.4.35-v7l+

                                        in the raspbian web site i see this:

                                        Raspbian Buster with desktop
                                        Image with desktop based on Debian Buster
                                        Version:February 2020
                                        Release date:2020-02-13
                                        Kernel version:4.19
                                        

                                        i don’t know why you are the 5.4.x kernel version and it seams the problem
                                        I don’t try to compile it with it so … sorry, i can’t help
                                        retry with 4.19.x kernel version

                                        J 1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          jimmydew @Guest
                                          last edited by

                                          @Bugsounet

                                          hmm okay, is there a way to change my kernel version??

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @jimmydew
                                            last edited by

                                            @jimmydew load a different version of the OS

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            J 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
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 5 / 7
                                            • 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