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.

    Modules suspending and never resuming after HotWord and MK2

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    2 Posts 2 Posters 1.1k Views 2 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
      numb3rs
      last edited by

      I am using a Sony PS Eye for my mic. I recently installed Hotword and MK2. All modules disappear after some time besides currentWeather. I looked through the console from chromium and found this:

      AssistantMk2 / HotWord
      module.js:154 calendar received a module notification: HOTWORD_PAUSE from sender: MMM-AssistantMk2
      module.js:154 MMM-NetworkScanner received a module notification: HOTWORD_PAUSE from sender: MMM-AssistantMk2
      module.js:205 alert is resumed.
      module.js:205 updatenotification is resumed.
      main.js:275 Will not show updatenotification. LockStrings active: module_4_MMM-iFrame-Ping
      module.js:205 clock is resumed.
      module.js:205 calendar is resumed.
      module.js:205 currentweather is resumed.
      module.js:205 MMM-NetworkScanner is resumed.
      module.js:205 mmm-nest-status is resumed.
      module.js:205 MMM-Hotword is resumed.
      module.js:205 MMM-AssistantMk2 is resumed.
      module.js:154 clock received a module notification: HOTWORD_LISTENING from sender: MMM-Hotword
      
      Then some time more later
      
      alert is suspended.
      module.js:198 MMM-Hotword is suspended.
      module.js:198 updatenotification is suspended.
      module.js:198 clock is suspended.
      module.js:198 calendar is suspended.
      module.js:198 currentweather is suspended.
      module.js:198 MMM-NetworkScanner is suspended.
      module.js:198 mmm-nest-status is suspended.
      module.js:198 MMM-AssistantMk2 is suspended.
      

      CurrentWeather eventually resumes and remains the only module. If I call HotWord and give it a command all the modules resume.

      Full Log from the console can be seen here:

      https://pastebin.com/xCw9J4W2

      My Module Config:

      //Hotword Module
      {
          module: "MMM-Hotword",
          config: {
            record: {
              recordProgram : "arecord",  
              device        : "plughw:1",
            },
            autostart:true,
            onDetected: {
              notification: function (payload) {
                return "ASSISTANT_ACTIVATE"
              },
              payload: function (payload){
                return {
                  profile: payload.hotword
                }
              }
            },
          },
        },
      
      //Google Assistant 2
      {
      		module: "MMM-AssistantMk2",
      		position: "bottom_bar",
      		config: {
      		record: {
              recordProgram : "arecord",  
              device        : "plughw:1",
            },
      	screenDuration: 5000,
            notifications: {
              ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
              ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
            },
      deviceLocation: {
            coordinates: { // set the latitude and longitude of the device to get localized information like weather or time. (ref. mygeoposition.com)
              latitude: 00.8, // -90.0 - +90.0
              longitude: -00.667821, // -180.0 - +180.0
            },
          },
                      
      }
      },
      

      Any insight would be helpful.
      MagicMirror 2 v 2.6.0
      All Modules Updated

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

        @numb3rs
        It might be due to “onIdle” and “onDetected” features. Disable them.(see the manual)

        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 / 1
        • 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