@sdetweil Yes you are right. That’s a good idea. I will do it in the next week.
Read the statement by Michael Teeuw here.
Latest posts made by JoChef2
-
RE: MMM-Pages and Alexa
-
RE: MMM-Pages and Alexa
@radioman Hi. You made one mistake in the configuration for your page devices. You set OnOff to true. If it’s set to true you can send different notifications for on and off. So you have to set it to false for this two devices. Your config looks then like this:
{ module: 'MMM-AlexaControl', position: 'bottom_left', config:{ image: false, pm2ProcessName: "mm", refresh: true, restart: true, reboot: false, monitorToggle: true, vcgencmd: 'vcgencmd', deviceName: "Spiegel", startPort: 12000, notifications: [ { name: 'Radar', port: 11101, OnOff: true, notification: [["SHOW_RADAR", null],["HIDE_RADAR", null]] }, { name: 'Seite eins', port: 11102, OnOff: false, notification: ["PAGE_CHANGED", 0] }, { name: 'Seite zwei', port: 11103, OnOff: false, notification: ["PAGE_CHANGED", 1] } ] } },
Instead of this you could also use the pages option and set it to the number of pages you have. You can then change the names in the Alexa app.
-
RE: Hi, there is a new Alexa Module
@Stevent Hi, you made one mistake in your config. The apostrophes for the option pages are wrong. You have to write only a number there.
pages: 2
-
RE: Hi, there is a new Alexa Module
@sgarg15 Hi, I don’t know if it works with a google home mini because I don’t have one. But I think the wemos devices I emulate should work with a google home. So test it. You could use the default config and test the preconfigured devices. Let me know if it works.
-
RE: Hi, there is a new Alexa Module
@minomit Hi, no that’s not directly possible with my module because it emulates only smart home devices and haven’t anything to do with the speech of Alexa. It’s possible that you add to the compliments module notification support and then you can create devices with my module that sends notifications to the compliments module. You can complete this with routines in the Alexa app. So then you have a few sentences. But I think that’s not the thing you asked for. If you want to see all the answers of Alexa you should use MMM-awesome-alexa. I’m not sure if my module works with it but that’s the only way I see to realize that. Maybe someone else have a better idea.
-
RE: Hi, there is a new Alexa Module
@rubenix Hi, I don’t really know why it doesn’t work. The syntax seems to be right. That’s the hole edit part around line 199. Maybe it helps. I tested this and it works great.
device.handler = function(action) { if(action === 1){ exec("vcgencmd display_power 1 && echo '1-1' |sudo tee /sys/bus/usb/drivers/usb/bind", opts, (error, stdout, stderr) => { _this.checkForExecError(error, stdout, stderr); }); }if(action === 0){ exec("vcgencmd display_power 0 && echo '1-1' |sudo tee /sys/bus/usb/drivers/usb/unbind", opts, (error, stdout, stderr) => { _this.checkForExecError(error, stdout, stderr); }); } }
-
RE: Hi, there is a new Alexa Module
@rubenix Hi, I think I have good news for you. I tested the MMM-CalenderExt2 and I had problems with my module, too. I found on the link I send you the solution. The only thing you have to do is add a notification. I added this to your config and I hope it works.
{ module: 'MMM-CalendarExt2', position: "middle_center", config: { rotateInterval: 0, updateInterval: 1000 * 60 * 60, calendars : [ { name: "Family", url: "mycalendar.ics", //obviously my correct ics address here }, ], views: [ { name: "VIEW1", mode: "month", position: "middle_center", locale: "es_ES", slotCount: 1, calendars: ["Family"], }, ], scenes: [ { name: "PAGE1", views:["VIEW1"], className: "fakeScene" }, { name: "PAGE2", views:["VIEW1"], }, { name: "PAGE3", views:["VIEW1"], className: "fakeScene" }, { name: "PAGE4", views:["VIEW1"], className: "fakeScene" }, { name: "PAGE5", views:["VIEW1"], className: "fakeScene" }, ], notifications: { "PAGE_INCREMENT" : { exec: "sceneNext", }, "PAGE_DECREMENT" : { exec: "scenePrevious", }, "PAGE_CHANGED" : { exec: "changeSceneById", payload: (payload) => {return payload} } }, }, },
-
RE: Hi, there is a new Alexa Module
@rubenix I don’t really know the MMM-CalenderExt2 module and first I was wondering why you use this config. I read a little bit the documention and I understand why you use this config. The problem is that you added the notifications “PAGE_INCREMENT” and “PAGE_DECREMENT”. My module use “PAGE_CHANGED” I found this in the documention. I hope that helps you.
-
RE: Hi, there is a new Alexa Module
@rubenix Hi, have you tested MMM-Pages without my module and the Calender? Because my module only sends a notification to the Pages module. I think also there is a problem with the Calender module.
-
RE: Hi, there is a new Alexa Module
@KJHedges Hi, yes that should work but then some other devices couldn’t work. For that I made some changes. You have to update the repository. For that run in
/MagicMirror/modules/MMM-AlexaControl
the following command:git pull
. Then you can change the number of pages without any problems. But you have to delete all your devices one time after updating and discover them new.