• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-AI

Scheduled Pinned Locked Moved Fun & Games
19 Posts 7 Posters 9.2k Views 10 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
    ejay-ibm Project Sponsor Module Developer @teitlebot
    last edited by Mar 22, 2019, 10:28 AM

    @teitlebot You need to export as a movie, Then make an import as frame in photoshop
    This will give you an idea
    https://graphicdesign.stackexchange.com/questions/46656/how-to-convert-a-video-file-into-an-animated-gif-in-photoshop

    Ejay

    1 Reply Last reply Reply Quote 0
    • E Offline
      ejay-ibm Project Sponsor Module Developer @teitlebot
      last edited by Mar 22, 2019, 10:31 AM

      @teitlebot I would use a black pixel image as no image
      you can find all you need here
      https://github.com/aureooms/pixels

      Ejay

      T 1 Reply Last reply Mar 22, 2019, 12:48 PM Reply Quote 0
      • T Offline
        teitlebot @ejay-ibm
        last edited by Mar 22, 2019, 12:48 PM

        @ejay-ibm thanks. I figured there was a proper way to code a picture to be gone but this will work I guess. Thanks

        T 1 Reply Last reply Mar 22, 2019, 4:59 PM Reply Quote 0
        • T Offline
          teitlebot @teitlebot
          last edited by Mar 22, 2019, 4:59 PM

          @teitlebot @Sean Any idea how I can get it to fade the face on and off from the black pixel?

          E 1 Reply Last reply Mar 22, 2019, 6:06 PM Reply Quote 0
          • E Offline
            ejay-ibm Project Sponsor Module Developer @teitlebot
            last edited by Mar 22, 2019, 6:06 PM

            @teitlebot Hi would do it from photophop as part of the animation . But their’s maybe a way to do it in javascript but that would need some additional implementation in the modules .

            Working with the gif is more flexible in my taste .

            Ejay

            1 Reply Last reply Reply Quote 1
            • B Offline
              bibi
              last edited by bibi Apr 27, 2019, 2:28 PM Apr 25, 2019, 4:31 PM

              update to Sean,
              Hi @Sean , Hi @ejay-ibm y sorry for the possible stupid question but it’s not clear to me what i should put in config file esp. in both trigger lines.
              I am using both Mk2 AND hotword together… so a bit confusion here…

              trigger: "HOTWORD_RESUME", // HOTWORD_LISTENING if you use MMM-HOTWORD  or HOTWORD_RESUME if you use MMM-AssistantMk2
              
              trigger: "ASSISTANT_UNDERSTOOD", // HOTWORD_SLEEPING if you use MMM-HOTWORD  or HOTWORD_PAUSE if you use MMM-AssistantMk2
              

              Also the i am not able to make the jarvis-talk2.gif “talk”
              thx for your clarification

              S 1 Reply Last reply Jul 17, 2019, 10:53 PM Reply Quote 0
              • S Offline
                smarthome @bibi
                last edited by Jul 17, 2019, 10:53 PM

                @bibi
                This is my code, it workes well

                        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;	
                                }
                              }
                            ]
                          }
                        ]
                
                1 Reply Last reply Reply Quote 0
                • S Offline
                  summergab
                  last edited by Mar 5, 2020, 7:16 PM

                  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;	
                                 }
                                }
                              ]
                            }
                          
                   
                          ]
                        }
                      },
                  
                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    JeanMichelC
                    last edited by Mar 13, 2023, 11:29 PM

                    Hi,
                    How do you use this module? Do you need Alexa?
                    What changes are required to make it work?

                    Thank you,
                    JM

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 2 / 2
                    • 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