{
module: 'MMM-voice',
position: 'bottom_bar',
config: {
microphone: 1,
debug: true
}
},
post your error and debug log, it’s huge so maybe on pastebin
{
module: 'MMM-voice',
position: 'bottom_bar',
config: {
microphone: 1,
debug: true
}
},
post your error and debug log, it’s huge so maybe on pastebin
@Stoffbeuteluwe to not touch any source files of the module you can add the following to the custom.css file
.MMM-Fuel th:nth-child(2) span { /* Replace 2 with the correct column */
visibility: hidden;
}
.MMM-Fuel th:nth-child(2) span:after { /* Replace 2 with the correct column */
visibility: visible;
content: "Super";
margin-left: -21px; /* Pixels that the original text occupies */
}
@Mykle1 https://github.com/alexyak/camera#setup
npm install
in your module directory ~/MagicMirror/modules/camera
@Privacywonk i would do it like this, copy your schedule update to node helper
this.sendSocketNotification("CONFIG", this.config);
socketNotificationReceived: function(notification, payload) {
if (notification === 'CONFIG') {
this.config = payload;
if (this.started !== true) {
this.started = true;
this.scheduleUpdate();
}
}
}
the started flag makes sure it gets called only once, even if you’re connecting multiple clients.
https://github.com/fewieden/MMM-Fuel
[card: fewieden/MMM-Fuel]
@wizz Ok I digged a little bit deeper than last time. As it points out the config option in MMM-Wunderground has an usage in the node_helper I didn’t check before. The problem is that Wunderground uses for some languages some uncommon language codes
{
module: "MMM-WunderGround",
position: "top_left",
config: {
lang: "sw"
}
}
the full list can be found here https://www.wunderground.com/weather/api/d/docs?d=language-support
@joe84maiden be aware, that when you add more modules for voice recognition, the module will create a new dictionairy automatically. So all your adjustments would be lost if you don’t backup them somewhere ;)
@seansation this is currently not supported, feel free to send a pr.
@nobita I get the changed language
@mykle1 what you describe above is actually not an array, it’s an object (hash). Arrays are always defined with []
not {}
.
Now to your problem. you can create an array from your config value and save it in a variable e.g. var lifeForms = this.config.lifeForm.split(',');
. it would look like this ['Cats', 'Bats', 'Bears']
. Then you can loop over it to get the ids and save it into another variable
var lifeFormIds =[];
for (let lifeForm of lifeForms) {
if (this.config.lifeFormArray[lifeForm]) {
lifeFormIds.push(this.config.lifeFormArray[lifeForm]);
}
}
To create the id list you just join it comma seoerated like lifeFormIds.join(',');