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

MMM-Pages & MMM-Hotword



  • hi again,

    im back with more questions…

    i have hotword and assistant working together fine until i add pages into the mix. i have both of the in the fixed section correct number of pages etc everything is working fine except hot word… it catches the hotword phrase and records the command and saves it to the temp file then stops and so im kinda wondering if its not assistant picking it up either!!

    configs:

    
    // Pages Start
    
    		{
    			module: 'MMM-pages',
    			config: {
    			animationTime: 500,
    			rotationTime: 0,
    			rotationDelay: 0,
    			delaytime: 6000,
    				modules:
    					[["MMM-NetworkScanner"],["MMM-GoogleMapsTraffic"],["MMM-MyCommute", "MMM-NetworkScanner", "MMM-Spotify", "compliments", "calendar",
    					"newsfeed"], ["MMM-COVID-19", "MMM-NetworkScanner"]],
    				fixed: ["clock", "calendar_monthly", "currentweather", "weatherforecast", "MMM-pages",
    					"MMM-Hotword", "MMM-AssistantMk2", "notification", "alert", "MMM-page-indicator"],
    			}
    		},
    
    // HotWord Start
    
    {
    		 module: "MMM-Hotword",
    		  position: "bottom_center",
    		  config: {
    		    useDisplay: true,	
    		    chimeOnFinish: null,
    		    restart: true,
    		    autorestart: true,
    		    recipes: ["with-AMk2v3_computer.js","with-AMk2v3_Jarvis.js"],
    		    mic: {
    		      recordProgram: "arecord",
    		      device: "plughw:1,0"
    			 },
    
    			  },
    },
    
    
    // Assistant Start
    
    {
      module: "MMM-AssistantMk2",
      position: "fullscreen_above",
      config: {
        ui: "Fullscreen",
        assistantConfig: {
          latitude: xxxxxxx,
          longitude: xxxxxxx,
        },
        micConfig: { // put there configuration generated by auto-installer
          recorder: "arecord",
          device: "plughw:1",
        },
        recipes: [ "with-MMM-Hotword.js", "with-MMM-Spotify.js" ],
        profiles: {
          "default": {
            profileFile: "default.json",
            lang: "en-AU"
          }
        },
    
       addons: false,
      }
    }, 
    

    logs:

    
    pi@mirrorpi:~/MagicMirror $ npm start
    
    > magicmirror@2.10.1 start /home/pi/MagicMirror
    > ./run-start.sh
    
    [20:40:49.780] [LOG]    Starting MagicMirror: v2.10.1
    [20:40:49.788] [LOG]    Loading config ...
    [20:40:49.793] [LOG]    Loading module helpers ...
    [20:40:49.795] [LOG]    No helper found for module: MMM-pages.
    [20:40:50.166] [LOG]    Initializing new module helper ...
    [20:40:50.166] [LOG]    Module helper loaded: MMM-Spotify
    [20:40:50.197] [LOG]    Initializing new module helper ...
    [20:40:50.197] [LOG]    Module helper loaded: MMM-NetworkScanner
    [20:40:50.402] [LOG]    Initializing new module helper ...
    [20:40:50.403] [LOG]    Module helper loaded: MMM-Hotword
    [20:40:51.597] [LOG]    Initializing new module helper ...
    [20:40:51.598] [LOG]    Module helper loaded: MMM-AssistantMk2
    [20:40:51.598] [LOG]    No helper found for module: clock.
    [20:40:51.599] [LOG]    No helper found for module: calendar_monthly.
    [20:40:51.885] [LOG]    Initializing new module helper ...
    [20:40:51.886] [LOG]    Module helper loaded: MMM-MyCommute
    [20:40:51.887] [LOG]    No helper found for module: compliments.
    [20:40:51.887] [LOG]    No helper found for module: currentweather.
    [20:40:51.888] [LOG]    No helper found for module: weatherforecast.
    [20:40:51.924] [LOG]    Initializing new module helper ...
    [20:40:51.925] [LOG]    Module helper loaded: newsfeed
    [20:40:51.926] [LOG]    Initializing new module helper ...
    [20:40:51.927] [LOG]    Module helper loaded: MMM-GoogleMapsTraffic
    [20:40:51.927] [LOG]    No helper found for module: MMM-page-indicator.
    [20:40:51.928] [LOG]    All module helpers loaded.
    [20:40:51.928] [LOG]    Starting server on port 8080 ... 
    [20:40:51.941] [LOG]    Server started ...
    [20:40:51.942] [LOG]    Connecting socket for: MMM-Spotify
    [20:40:51.944] [LOG]    [SPOTIFY_AUTH] Token is fresh.
    [20:40:51.945] [LOG]    Connecting socket for: MMM-NetworkScanner
    [20:40:51.946] [LOG]    Starting module: MMM-NetworkScanner
    [20:40:51.946] [LOG]    Connecting socket for: MMM-Hotword
    [20:40:51.947] [LOG]    [HOTWORD] MMM-Hotword starts
    [20:40:51.948] [LOG]    Connecting socket for: MMM-AssistantMk2
    [20:40:51.948] [LOG]    Connecting socket for: MMM-MyCommute
    [20:40:51.949] [LOG]    ====================== Starting node_helper for module [MMM-MyCommute]
    [20:40:51.950] [LOG]    Connecting socket for: newsfeed
    [20:40:51.951] [LOG]    Starting module: newsfeed
    [20:40:51.951] [LOG]    Connecting socket for: MMM-GoogleMapsTraffic
    [20:40:51.952] [LOG]    Starting node_helper for module: MMM-GoogleMapsTraffic
    [20:40:51.952] [LOG]    Sockets connected & modules started ...
    [20:40:52.044] [LOG]    Launching application.
    [20:40:54.422] [LOG]    MMM-NetworkScanner received CONFIG
    [20:40:54.563] [LOG]    [HOTWORD] Recipe is loaded: with-AMk2v3_computer.js
    [20:40:54.566] [LOG]    [HOTWORD] Recipe is loaded: with-AMk2v3_Jarvis.js
    [20:40:54.570] [LOG]    Create new news fetcher for url: https://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
    [20:40:54.621] [LOG]    Create new news fetcher for url: https://www.stuff.co.nz/rss - Interval: 300000
    [20:40:54.625] [LOG]    Create new news fetcher for url: https://www.techmeme.com/feed.xml?x=1 - Interval: 300000
    [20:40:54.627] [LOG]    Create new news fetcher for url: https://www.tesla.com/blog/feed - Interval: 300000
    [20:40:54.629] [LOG]    Create new news fetcher for url: https://teslamotorsclub.com/feed/ - Interval: 300000
    [20:40:54.631] [LOG]    Create new news fetcher for url: https://www.teslarati.com/feed/ - Interval: 300000
    [20:40:54.633] [LOG]    Create new news fetcher for url: https://www.youtube.com/feeds/videos.xml?user=spacexchannel - Interval: 300000
    [20:40:54.635] [LOG]    Create new news fetcher for url: https://www.technologyreview.com/topnews.rss - Interval: 300000
    [20:40:54.640] [LOG]    Working notification system. Notification: MMM-GOOGLE_MAPS_TRAFFIC-GET payload:  { style: 'standard' }
    [20:40:54.659] [LOG]    [AMK2] MMM-AssistantMk2 Version: 3.1.2
    [20:40:54.719] [LOG]    [AMK2] AssistantMk2 is initialized.
    [20:40:55.122] [LOG]    [HOTWORD] begins.
    [20:40:55.126] [LOG]    [HOTWORD] Detector starts listening.
    [20:40:55.731] [LOG]    [MMM-Spotify] Starting
    [20:41:19.942] [LOG]    [HOTWORD] Detected: computer
    [20:41:20.755] [LOG]    [HOTWORD] After Recording: 4000
    [20:41:20.835] [LOG]    [HOTWORD] After Recording: 4000
    [20:41:20.964] [LOG]    [HOTWORD] After Recording: 4000
    [20:41:21.084] [LOG]    [HOTWORD] After Recording: 4000
    [20:41:21.201] [LOG]    [HOTWORD] After Recording: 4000
    [20:41:21.332] [LOG]    [HOTWORD] After Recording: 4000
    [20:41:21.451] [LOG]    [HOTWORD] After Recording: 4000
    [20:41:22.564] [LOG]    [HOTWORD] stops.
    [20:41:22.569] [LOG]    [HOTWORD] After Recording finised. size: 28050
    [20:41:22.576] [LOG]    [HOTWORD:B2W] WAV_FILE_CREATED: /home/pi/MagicMirror/modules/MMM-Hotword/temp/afterRecording.wav 28050
    [20:41:22.578] [LOG]    [HOTWORD] Final Result: {
     detected: true,
     hotword: 'computer',
     file: 'temp/afterRecording.wav'
    }
    
    

    pretty stumped on this one 😕 and help is appricated im getting s close to finishing the coding part, as you can see in the logs theres a good few modules on it!

    thanks again,
    Richie



  • @banbutcher

    turns out it was a bug in GoogleMapsTraffic, installed sdetweil version to fix it! 🙂


Log in to reply