@sdetweil only a few thing such as turn off screen and also communicate with another module MMM-SelfieShoot
Read the statement by Michael Teeuw here.
Posts made by Alyx
-
RE: Mic keeps smapping on and off
-
RE: Mic keeps smapping on and off
@sdetweil ah ok, would there be a direction you can point me to? Ive been working on this for over a week now with no luck sadly.
-
RE: Mic keeps smapping on and off
@sdetweil yes thats it its comes up as chromium input, is there a way to change this? Its happening to all the voice assistants.
I assumed that would be the case with the modules, I’m kinda desperate on just getting the voice commands working although
-
RE: Mic keeps smapping on and off
@sdetweil Ah ok thanks for confirming.
I actually did a fresh install on a fresh OS. Still experiencing the same issue. I only have the modules I know I need also.
I have:
Made sure power saving is off for the usb ports
Made the input im using default
configured my .asoundrc file
installed pulse GUI to view and make changesThe Module is MMM-Hello-Mirror, I went to the issues tab and it seems the dev has never really been active past the initial post…
Its weird how pulse is having that popping issue but in Mint ( my distro) the sound settings are saying nothing is recording…
-
RE: Mic keeps smapping on and off
@sdetweil I have one called MMM-Hello-Mirror.
Although you have me thinking (im very new btw), I have 2 other modules installed but they arent called in the conf file. Would them being there still run? I thought not as they werent called in my conf, would I have to uninstall them with npm also?
To uninstall ive just deleted the directory in modules and removed the entry in my conf. Is that enough or will I have to uninstall via NPM? If this is the case then I’ll have to do a fresh NPM as I’ve deleted many in this way…
-
Mic keeps smapping on and off
Hello guys,
Been stuck on this issue and cant seem to resolve it with any of my searches. I have the connected USB mic working fine on all other applications and I can interact with it and all fine.
Although once I go into magic mirror it starts spamming on and off. In pulse I can see it popping up and away in 1 second intervals. I want to use a voice recognition module but I cant really diagnose the issues until I can get this working…
Any help would be appreciated.
-
RE: Alexa to Selfie
@sdetweil Sound advise I’ll be sure to remember it! Honeslty makes thing easier too I hate having to edit scripts to communicate to each other in other forms of development haha
-
RE: Alexa to Selfie
@sdetweil Yes I did try that but it was when my source script for the alexa module was tampered with. I’ll give it another shot and let you guys know how it goes!
-
Alexa to Selfie
Hi Guys,
I’m quite new to magic mirror and would be considered new to Linux also.
I’ve been playing around with modules and I llove the work that out but the documentation is hard to understand my my level. I want to control MMM-SelfieShoot with MMM-AlexaControl.
I was able to work out the default start stop PM2 process for the Magic Mirror bur I dont know how to incorporate new notifications. Also I kinda broke the config file while playing around but sure thats the fun of it all I suppose.
Any help would be great I’ve been quite some time with this!
Please see below for my configs.
MAagicMirror config/* Magic Mirror Config Sample * * By Michael Teeuw https://michaelteeuw.nl * MIT Licensed. * * For more information on how you can configure this file * see https://docs.magicmirror.builders/getting-started/configuration.html#general * and https://docs.magicmirror.builders/modules/configuration.html */ let config = { address: "localhost", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "0.0.0.0", "::" to listen on any interface // Default, when address config is left out or empty, is "localhost" port: 8080, basePath: "/", // The URL path where MagicMirror is hosted. If you are using a Reverse proxy // you must set the sub path here. basePath must end with a / ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], useHttps: false, // Support HTTPS or not, default "false" will use HTTP httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true language: "en", locale: "en-UK", logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging timeFormat: 12, units: "metric", // serverOnly: true/false/"local" , // local for armv6l processors, default // starts serveronly and then starts chrome browser // false, default for all NON-armv6l devices // true, force serveronly mode, because you want to.. no UI on this device modules: [ { disabled: false, module: 'MMM-Astro', position: 'top_left', config: { sign: "leo", iconset: "4", extend: false, } }, { module: 'MMM-AlexaControl', position: 'middle_center', config:{ image: false, pm2ProcessName: "Smart_Mirror", monitorToggle: true, vcgencmd: "hide", deviceName: "Smart Mirror" } }, { module: 'MMM-SleepWake', config:{ mode: 'DPMS' } }, { module: "MMM-MotionDetector", config: { captureIntervalTime: 1000, scoreThreshold: 20, timeout: 12 }, }, { disabled: false, module: "MMM-Selfieshot", config: { storePath: "./Storage/Photos", width:1280, height:720, quality: 100, device: null, shootMessage: "Smile!", shootCountdown: 3, displayCountdown: true, displayResult: true, playShutter: true, shutterSound: "shutter.mp3", } }, { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_center" }, { module: "MMM-OpenWeatherMapForecast", header: "Weather", position: "top_right", classes: "default everyone", disabled: false, config: { apikey: "f, latitude: " iconset: "4c", units: "metric", useAnimatedIcons: true, concise: false, forecastLayout: "table", showWind: true } }, ], }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
MMM-AlexaControl config
/** * Magic Mirror * Module: MMM-AlexaControl * * By JoChef2 * MIT Licensed. */ Module.register("MMM-AlexaControl",{ defaults:{ image: true, // shows the image height: 265, // heigth of the image width: 265, // width of the image pages: 0, // number off pages in MMM-Pages module. 0 means you doesn't use it devices: { // empty object for your custom devices devices: [] }, notifications: [ { name: 'Seflie', port: 11100, OnOff: false, notification: [this.sendNotification("SELFIE_SHOOT")] } ], // empty array for your notification devices commands: [this.sendNotification("SELFIE_SHOOT")], // empty array for your command devices startPort: 11000, // the lowest used port refresh: false, // refresh your Mirror restart: false, selfie: true, // restart your Mirror with pm2 stop: false, // stops your Mirror with pm2 reboot: false, // reboot your pi shutdown: false, // shutdown your pi pm2ProcessName: "Selfie", // name of your pm2 process monitorToggle: false, // switch your monitor on and off vcgencmd: 'vcgencmd', // command you use for monitor toggle cecAddress: "0.0.0.0", // Address for the cec-client usb: false // toggle usb power of your pi }, getTranslations: function(){ // add more translations return { en: "translations/en.json", de: "translations/de.json" } }, start: function(){ Log.log('Starting module: ' + this.name); // send all translations to node_helper this.sendSocketNotification('TRANSLATIONS', {"monitor": this.translate("MONITOR"), "shutdown": this.translate("SHUTDOWN"), "reboot": this.translate("REBOOT"), "page": this.translate("PAGE"), "refresh": this.translate("REFRESH"), "restart": this.translate("RESTART"), "stop": this.translate("STOP"), "selfie": this.translate("SELFIE_SHOOT"), "usb": this.translate("USB"), "deviceName":this.translate(this.config.deviceName)}); this.sendSocketNotification('SET_DEVICE', this.config); // send the config to node_helper }, getDom: function(){ // returns only an image or an empty div (necessary for MMM-Pages) if(this.config.image){ let img = document.createElement("img"); img.classList = "img"; img.src = "MMM-AlexaControl/AlexaLogoGrey.png"; img.height = this.config.height; img.width = this.config.width; return img; }else{ return document.createElement("div"); } }, socketNotificationReceived: function(notification, payload) { if(notification === "PAGE_CHANGED"){ // change pages of MMM-Pages this.sendNotification("PAGE_CHANGED", payload); } if(notification === "ACTION"){ // refresh the Mirror if(payload === "refresh"){ window.location.reload(true); } } if(notification === "selfie"){ this.sendNotification("SELFIE_SHOOT"); // send any notification to any module } if(notification =='MONITOR_ACTION'){ Log.log('RECEIVE monitor NOTIFICATION='+payload) this.sendNotification(notification,payload) } } });