MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. summergab
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 0

    summergab

    @summergab

    0
    Reputation
    25
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    summergab Unfollow Follow

    Latest posts made by summergab

    • RE: MMM-AI

      sorry,
      it happens to me that the trigger does not work, ie the jarvis-standbye2.gif image always remains even when the assistant speaks.
      I use both MMM-Hotword (2.1.0) and MMM-AssistentMk2 (3.1.1-1).
      could someone help me?
      my config is:

      {
            module: "MMM-AI",
            position: "top_center",
            config: {
              width: "300px",
              height: "300px",
              refresh_interval_sec: 0, // you should not refresh, because content will be back to default value.
              content: `<img id="MY_ANIMATION" src="modules/MMM-AI/jarvis-standby2.gif"/>`,
              triggers: [
      
           {
                  trigger: "ASSISTANT_RESPONSE_END", 
                  fires: [
                   {
                      fire: "standby_Image",
                      payload: payload => {
                        var img = document.getElementById("MY_ANIMATION");
                       img.src = "modules/MMM-AI/jarvis-standby2.gif";
                        return payload;
                      }
                    }
                  ]
      
                },		
      		 {
                  trigger: "ASSISTANT_UNDERSTOOD", 
                  fires: [
                    {
                      fire: "talk Image",
                    payload: payload => {
                        var img = document.getElementById("MY_ANIMATION");
                        img.src = "modules/MMM-AI/jarvis-talk2.gif";
                      return payload;	
                     }
                    }
                  ]
                }
              
       
              ]
            }
          },
      
      posted in Fun & Games
      S
      summergab