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
    • RE: Kalliope assistant + MM

      @sdetweil Thanks for the info, I didn’t see it in time. I deleted the entire line of code. It worked after that. I will replace the line with your suggestion this evening.

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

      @sispheor So… I figured out how to get rid of the error. I deleted line 86 of MMM-kalliope.js .

      console.log(this.name + " received a socket notification: " + notification + " - Payload: " + payload);
      

      Everything works fine for now. Not sure why this is, but I’m assuming the chromium browser does not like the console.log code, but I could be wrong.

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

      @sispheor So using the ctrl-shift-i I was able to find the error that it is throwing.

      Uncaught TypeError: console.log is not a function
      

      This error is repeated in the log each time it receives the post request.

      What are your suggestions?

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

      @sispheor I’ve tried multiple positions for the module, still nothing gets displayed. Not sure why though. I’ve tried refresh, reboot etc. still nothing. Maybe I should delete the module and try a fresh install. The curl should work with just the module installed right?

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

      @sispheor I am interested in duplicating your work for a different AI. So I figured the best place to start is to install your module and get it working before I make changes to suit my needs with the other AI. I have installed the MMM-Kalliope module, but the curl commands do not display on my mirror. I am not sure what I am doing wrong. Here’s my entry in config.js

      {
          module: "MMM-kalliope",
          position: "upper_third",
                              config: {
                                      max: "5",
                                      keep_seconds: "8",
                                      title: "Kalliope"
                                      }
      
      },
      

      I do receive a json response indicating success, however, nothing gets displayed on the mirror.

      Here’s the curl command:

      curl -H "Content-Type: application/json" -X POST -d '{"notification":"KALLIOPE", "payload": "my message"}' http://localhost:8080/kalliope
      

      Here’s the response:

      {"status": "success"}
      

      Yet nothing gets displayed. Do you have any suggestions?

      posted in Fun & Games
      D
      dmwilsonkc
    • RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror

      @jopyth I just want to thank you again for your work on this module! Your module rocks!

      BTW - It doesn’t have to be a mobile/tablet, I wrote an AI skill for Mycroft that uses your MMM-Remote-Control module to pass verbal commands to the MagicMirror.

      If you’d like, check out the 2 min. video here.

      And here’s a link to the repo if anyone would like to check out the Python code that interacts with the MMM-Remote-Control module.

      Thanks again!
      Cheers!

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

      @cyberphox Yes to the RPi. It’s a RPi 3b. Both the MagicMirror and the Mycroft-core fit onto a 16gb sd card with loads of room to spare. It’s running Debian Jesse (not lite) with the Pixel desktop. For the most part, it’s pretty responsive. Occasionally it takes a few seconds like you see in the video. Part of the lag is my hardware is not put together and the video was done by using RealVNC and remoting into the RPi. All of the history is in the link above, including links to all the software.

      posted in Show your Mirror
      D
      dmwilsonkc
    • Yet another AI for MagicMirror: This time it's Mycroft.

      Hello everyone! I just thought I’d share what I’ve been working on. Thanks to @strawberry-3-141 and @Mykle1 for pointing me in the right direction from the very beginning. And of course thanks to @Jopyth for the great work on the MMM-Remote-Control module that I’m using to communicate commands to the MagicMirror’s modules from Mycroft.

      Here’s a little video:
      https://www.youtube.com/watch?v=wshzsd5hOMA

      And here’s the complete history of how I got here, and a roadmap of how you can use Mycroft to control your MagicMirror.

      I got the idea from seeing the really cool MMM-voice module @strawberry-3-141 created with the Hello-Lucy modifications @Mykle1 created. And while I like the idea of having the voice recognition on board (not sending it off to Google or Alexa), I wanted the ability to do more than control the Mirror. You know, an AI that could do other things. So that’s how I found Mycroft, an open source AI that I’m more comfortable with using.

      Let me know what you think. I would love suggestions or ideas to improve on the combination of MagicMirror and Mycroft.

      Cheers!

      posted in Show your Mirror
      D
      dmwilsonkc
    • RE: MMM-voice

      @ime90 I am running MMM-voice on a RPi3b and while it is not as fast as my Mycroft-core in responding to its wake word, it is much faster than the times you have stated. I turned the debug = true so that I could see what it is doing. I would say the times you have stated are at least double what it takes MMM-voice on my Pi. I changed my wake word to Hey Jarvis. I don’t know if that made any difference in how fast it recognizes the wake word. I also added the Hello-Lucy modifications to the MMM-voice module. It is not “fast” in responding to commands, but it only takes a few seconds (5 to 6sec.) to Hide/Show modules if I remember right.

      posted in Utilities
      D
      dmwilsonkc
    • RE: MMM-voice

      @strawberry-3.141 I didn’t realize that was a possibility. I currently start Mycroft when the pi boots up in a virtualenv as was recommended by the mycroft folks. Both the MM and Mycroft run exactly as they should. The only exception is the microphone issue- not being able to access the microphone from two processes at the same time. I have no idea how I would start Mycroft from the node_helper.js.

      At this point I am very confused on the best way to go. To me, it seems like the socket communication between two concurrently running processes would be easier. But you are the expert.

      Any advice you suggest would be welcomed. Thanks again.

      posted in Utilities
      D
      dmwilsonkc
    • 1 / 1