Read the statement by Michael Teeuw here.
Kalliope assistant + MM
-
Guys, don’t hesitate to send a pull request to the project with your update. Including the “port” documentation part.
-
@sispheor @sdetweil Hey guys, thanks for your help! I got things working over the weekend.
Here’s a short video.
Cheers!
-
@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: -
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 ! -
@jchenaud delete the line 86
console.log(this.name + " received a socket notification: " + notification + " - Payload: " + payload);
I need to update this part.
-
thk but i have the same problème i have check my console and i have 3 Error !
sorry, but I am beginning with MM and Kaliope i think i have missed somthing
-
@jchenaud Kalliope and MM are on the same host?
-
my MM are on http://localhost:8080/
i dont now for Kalliope
i try to find with --debug but nothingi 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
-
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 -