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

    Posts

    Recent Best Controversial
    • RE: issue with installing MMM-awesome-alexa

      @jmartin1009 I am using Mycroft. Great open source AI and I created a skill to control the Mirror that requires the MMM-Remote-control module. It can be installed on the same RPi but works much snappier on a separate RPi.

      You can see a video and instructions Here

      Not sure if you are interested in an open source assistant, but this one works well.

      posted in Troubleshooting
      D
      dmwilsonkc
    • RE: [MMM-NowPlayingOnSpotify] – Display the currently on Spotify playing song

      @raywo Dude! I just found your module! This is freaking amazing! Followed your setup instructions and it works like magic! Awesome job man!

      posted in Entertainment
      D
      dmwilsonkc
    • RE: Magicmirror - Mycroft

      @ezeraj Oh yeah, here’s another post you may like as well.

      https://forum.magicmirror.builders/topic/6615/kalliope-assistant-mm/57

      I have a fork of the MMM-kalliope module that I have modified to work with Mycroft as well to display the user and Mycroft utterances on the Magic Mirror as well. @sispheor did some great work that I modified for use with Mycroft. You can find it here.

      posted in General Discussion
      D
      dmwilsonkc
    • RE: Magicmirror - Mycroft

      @ezeraj check out this post.

      https://forum.magicmirror.builders/topic/7366/yet-another-ai-for-magicmirror-this-time-it-s-mycroft/4

      posted in General Discussion
      D
      dmwilsonkc
    • RE: Kalliope assistant + MM

      @sispheor I just wanted to let you know that I’ve worked out how to have the text display longer based on how long the reply from Mycroft is in my fork of your module. I thought I would share the solution I came up with just in case it would be something you could use.

      First I set the keep_seconds to 0 in the config.js to stop the module from clearing out the messages. Then in my Mycroft skill, when the audio_output_end event gets triggered I send a notification to the kalliope module “REMOVE_MESSAGE”. Then added a bit of code to the kalliope module to process the notification like so:

      if (notification == "REMOVE_MESSAGE"){
                  // When Mycroft signals the AUDIO_OUTPUT_END remove the message from the screen
                  this.messages.splice(0, this.messages.length);
      

      I’ll see if I can do a short video to show the results.

      Cheers!

      posted in Fun & Games
      D
      dmwilsonkc
    • RE: Kalliope assistant + MM

      @sispheor I have made a minor tweak in your code on my fork to display the mycroft icon just above the title, which in my case I have changed to Mycroft. But I was wondering, any ideas on how I could tweak your code to display the message for an interval based on how long the message is? I played with it a little bit, but I think I’m missing exactly how it works. I tried to add an if statement for example:

      for(var i = 0; i < this.messages.length; i++){
                  var dif = currentDate.getTime() - this.messages[i].timestamp.getTime();
                  if (this.message.length > 30){
                    var secondsFromCurrentDateToMessageDate = dif / 1500;
                    }else{
                      var secondsFromCurrentDateToMessageDate = dif / 1000;
                    }
                  var secondsBetweenDates = Math.abs(secondsFromCurrentDateToMessageDate);
      
                  // delete the message if to old
                  if (secondsBetweenDates > this.config.keep_seconds){
                      this.messages.splice(i, 1);
                  }
              }
          },
      

      But the old messages never get cleaned off the mirror.

      Any thoughts about how to increase the time interval that the message is displayed based on the length of the message?

      Any help would be much appreciated!

      Edit:
      Nevermind, I see what I’m doing wrong here. I will work on getting messages to display for different intervals based on how long they are and let you know what I come up with.:face_savouring_delicious_food:

      posted in Fun & Games
      D
      dmwilsonkc
    • RE: Yet another AI for MagicMirror: This time it's Mycroft.

      @cowboysdude Yes! Once I get the code worked into a skill instead of the current hack. I will require installing Mycroft on the same pi/ or another pi on the same network. Could be used just about anywhere you can use Mycroft. I will keep the forum posted. I’m going to be out of town for the next week so… maybe in a couple of weeks.:slightly_smiling_face:

      posted in Show your Mirror
      D
      dmwilsonkc
    • RE: Kalliope assistant + MM

      @sispheor @sdetweil Hey guys, thanks for your help! I got things working over the weekend.

      Here’s a short video.

      Cheers!

      posted in Fun & Games
      D
      dmwilsonkc
    • RE: Yet another AI for MagicMirror: This time it's Mycroft.

      Thanks to @sispheor 's MMM-kalliope module and a few modifications, I’ve added additional functionality to the MagicMirror - Mycroft interaction.

      Here’s another short video.

      It requires a hack of the Mycroft-core, and I’m looking to add that functionality to the Mycroft skill. That is as soon as I figure out how.

      posted in Show your Mirror
      D
      dmwilsonkc
    • RE: MMM-Assistant (updated) -- Your voice to the world!

      @richland007 If all you want to do is control the modules I would recommend using MMM-voice with the Hello-Lucy modifications. You may run into the same problem that I had though. Two services cannot use the same resource at the same time (microphone). In the end, I wrote a skill for Mycroft and just decided to use the open-source AI Mycroft to also control the mirror.

      Here’s a short video.

      Here’s a thread on the Mycroft forum that covers the history of how I got there.

      I have not used the MMM-assistant, but my guess is you will run into the same Error: Resource busy that I had with Mycroft and the MMM-voice module.

      I hope this post helps.

      posted in Utilities
      D
      dmwilsonkc
    • 1 / 1