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.

    Kalliope assistant + MM

    Scheduled Pinned Locked Moved Fun & Games
    58 Posts 10 Posters 47.3k Views 12 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.
    • D Offline
      dmwilsonkc @sdetweil
      last edited by

      @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.

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil
        last edited by

        i have 5 lines of console.log on my MMM-kalliope.js

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @sispheor
          last edited by

          @sispheor well, as a new MM user, obvious is not so…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            sispheor
            last edited by

            Guys, don’t hesitate to send a pull request to the project with your update. Including the “port” documentation part.

            1 Reply Last reply Reply Quote 0
            • D Offline
              dmwilsonkc
              last edited by

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

              Here’s a short video.

              Cheers!

              1 Reply Last reply Reply Quote 1
              • D Offline
                dmwilsonkc
                last edited by dmwilsonkc

                @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:

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jchenaud
                  last edited by

                  Hello , I want to use Kalliope on my MM but I Have installed Kalliope (and its work i can say “hello” ) i Have MMM-kalliope on my modules.

                  i have made config.js but nothing display on my MM :(
                  what i suppose to do ?
                  my Englishis is not good so don’t blame me please
                  have a nice day !

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sispheor @jchenaud
                    last edited by

                    @jchenaud delete the line 86

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

                    I need to update this part.

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      jchenaud
                      last edited by

                      thk but i have the same problème i have check my console and i have 3 Error ! 0_1532422046242_Capture.PNG

                      sorry, but I am beginning with MM and Kaliope i think i have missed somthing

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sispheor @jchenaud
                        last edited by

                        @jchenaud Kalliope and MM are on the same host?

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          jchenaud
                          last edited by jchenaud

                          my MM are on http://localhost:8080/
                          i dont now for Kalliope
                          i try to find with --debug but nothing

                          i try to make my .yml but i have somme error.

                          
                          Traceback (most recent call last):
                            File "/usr/local/bin/kalliope", line 11, in <module>
                              load_entry_point('kalliope==0.5.1', 'console_scripts', 'kalliope')()
                            File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.1-py2.7.egg/kalliope/__init__.py", line 136, in main
                              brain_loader = BrainLoader(file_path=brain_file)
                            File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.1-py2.7.egg/kalliope/core/Models/Singleton.py", line 6, in __call__
                              cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
                            File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.1-py2.7.egg/kalliope/core/ConfigurationManager/BrainLoader.py", line 33, in __init__
                              sl = SettingLoader()
                            File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.1-py2.7.egg/kalliope/core/Models/Singleton.py", line 6, in __call__
                              cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
                            File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.1-py2.7.egg/kalliope/core/ConfigurationManager/SettingLoader.py", line 66, in __init__
                              self.settings = self._get_settings()
                            File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.1-py2.7.egg/kalliope/core/ConfigurationManager/SettingLoader.py", line 102, in _get_settings
                              default_stt_name = self._get_default_speech_to_text(settings)
                            File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.1-py2.7.egg/kalliope/core/ConfigurationManager/SettingLoader.py", line 161, in _get_default_speech_to_text
                              raise SettingNotFound("%s setting not found" % e)
                          kalliope.core.ConfigurationManager.SettingLoader.SettingNotFound: 'default_speech_to_text' setting not found
                          
                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            jchenaud
                            last edited by

                            what im suppose to do for juste Display hello when I say hello on MM since beginning
                            I am completely lost sorry
                            have a nice day

                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              sispheor @jchenaud
                              last edited by

                              @jchenaud support for kalliope here (FR)

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                dmwilsonkc
                                last edited by dmwilsonkc

                                @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!

                                1 Reply Last reply Reply Quote 0
                                • W Offline
                                  wfsaxton
                                  last edited by

                                  Apologies for necro’ing but this seems to be the “best” place to ask this.

                                  Is there a way to disable the TTS portion of Kalliope? I’d like to use it for its STT for my magic mirror, but I really don’t need the TTS responses (nor do I want the delay associated with it). The text responses from the MMM-Kalliope module are sufficient for communicating back with the user.

                                  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
                                  • 2
                                  • 3
                                  • 3 / 3
                                  • 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