A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • Having trouble showing modules.

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    Mykle1M
    @AndrewS097 Always helps to have another set of eyes look at it. We’ve all done that. :thumbsup:
  • Displaying a Shared iCloud calendar with default calendar module - possible?

    Unsolved
    11
    0 Votes
    11 Posts
    6k Views
    V
    @htilburgs ok, I will try again following your procedure exactly and will let you know - thanks!
  • 0 Votes
    1 Posts
    1k Views
    A
    Hey guys, since a few days i try to change the size of my shown Instagram-Account. So, at first i have changed the instaMaxWidht and -Height in config.js. If i set the values absolute from 300px to 100px it get smaller but if i set the values >300px nothing happens. Next step was, to change the values in the json-file in the module folder. I set it to 1200x1200px but nothing happens too. Have anyone some ideas how i can manage my problem or now, if its limited because of some reasons? Lot of thanks ahead…
  • modules[i].show isn't runnig

    Unsolved
    1
    0 Votes
    1 Posts
    553 Views
    E
    I use MMM-Modulebar. To briefly explain the Modulebar Module, create several buttons and press each button to show each module and hide it once again. The following code was added from the original Modulebar code(99th-108th lines): if(num==1){ Modulebarr.sendNotification('CHANGE_POSITIONS', modules = { 'clock':{ visible: 'true', position: 'top_left', }, } ); } num is the button’s unique number I sent a notification from Modulebar to MMM-Dynamic-Modules. Dynamic-Modules notification worked well. But the next cord line, modules[i]Show didn’t work. Error details are as follows: [image: 1554791375604-c0fc6e84-cc73-451c-8937-bc3e56c11f19-image.png] var Modulebarr; Module.register("MMM-Modulebar",{ requiresVersion: "2.1.0", defaults: { // Allow the module to force modules to be shown (if hidden and locked by another module ex. profile-switcher). allowForce: false, // Determines if the border around the buttons should be shown. showBorder: true, // The minimum width for all the buttons. minWidth: "0px", // The minimum height for all the buttons. minHeight: "0px", // The location of the symbol relative to the text. Options: left, right, top or bottom picturePlacement: "left", // The direction of the bar. Options: row, column, row-reverse or column-reverse direction: "row", // The speed of the hide and show animation. animationSpeed: 1000, // The default button 1. Add your buttons in the config. buttons: { "1": { // The modules exact name to be affected. module: "clock", // The text to be displayed in the button. text: "Clock", // Then symbol from font-awesome! symbol: "clock-o" } } }, start(){ Modulebarr=this; }, // Define required styles. getStyles: function(){ return ["font-awesome.css", "MMM-Modulebar.css"]; }, // Override dom generator. getDom: function() { var menu = document.createElement("span"); menu.className = "modulebar-menu"; menu.id = this.identifier + "_menu"; menu.style.flexDirection = this.config.direction; // Sends each button to the "createButton" function be created. for (var num in this.config.buttons) { menu.appendChild(this.createButton(this, num, this.config.buttons[num], this.config.picturePlacement)); } return menu; }, // Creates the buttons. createButton: function (self, num, data, placement) { // Creates the span elemet to contain all the buttons. var item = document.createElement("span"); // Builds a uniqe indentity / button. item.id = self.identifier + "_button_" + num; // Sets a class to all buttons. item.className = "modulebar-button"; // Makes sure the width and height is at least the defined minimum. item.style.minWidth = self.config.minWidth; item.style.minHeight = self.config.minHeight; // Collects all modules loaded in MagicMirror. var modules = MM.getModules(); // When a button is clicked, the module either gets hidden or shown depending on current module status. item.addEventListener("click", function () { // Lists through all modules for testing. for (var i = 0; i < modules.length; i++) { // Check if the curent module is the one. if (modules[i].name === data.module) { // Splits out the module number of the module with the same name. var idnr = modules[i].data.identifier.split("_"); // Checks if idnum is set in config.js. If it is, it only hides that module, if not hides all modules with the same name. if (idnr[1] == data.idnum || data.idnum == null) { // Check if the module is hidden. if (modules[i].hidden) { // Check if there is a "showURL" defined. if (data.showUrl != null) { // Visiting the show URL. fetch(data.showUrl); // Prints the visited hideURL. console.log("Visiting show URL: "+data.showUrl); } // add code if(num==1){ Modulebarr.sendNotification('CHANGE_POSITIONS', modules = { 'clock':{ visible: 'true', position: 'top_left', }, } ); } // modules[i].show(self.config.animationSpeed, {force: self.config.allowForce}); // Prints in the console what just happend (adding the ID). console.log("Showing "+modules[i].name+" ID: "+idnr[1]); }else{ // Hides the module. modules[i].hide(self.config.animationSpeed, {force: self.config.allowForce}); // Prints in the console what just happend (adding the ID). console.log("Hiding "+modules[i].name+" ID: "+idnr[1]); // Check if there is a "hideURL" defined. if (data.hideUrl != null) { // Visiting the the URL. fetch(data.hideUrl); // Prints the visited hideURL. console.log("Visiting hide URL: "+data.hideUrl); } } } } } }); // Fixes the aligning. item.style.flexDirection = { "right" : "row-reverse", "left" : "row", "top" : "column", "bottom" : "column-reverse" }[placement]; // Sets the border around the symbol/picture/text to black. if (!self.config.showBorder) { item.style.borderColor = "black"; } // Adds the Font-Awesome symbol if specified. if (data.symbol) { var symbol = document.createElement("span"); symbol.className = "modulebar-picture fa fa-" + data.symbol; // Sets the size on the symbol if specified. if (data.size) { symbol.className += " fa-" + data.size; symbol.className += data.size == 1 ? "g" : "x"; } // Align the symbol with a margin. if (data.text && placement === "left") { symbol.style.marginRight = "4px"; } // Adds the symbol to the item. item.appendChild(symbol); // Adds a picture if specified. } else if (data.img) { var image = document.createElement("img"); image.className = "modulebar-picture"; image.src = data.img; // Sets the size of the picture if specified. if (data.width) image.width = data.width; if (data.height) image.height = data.height; // Align the picture with a margin. if (data.text && placement === "left") { image.style.marginRight = "4px"; } // Adds the picture to the item. item.appendChild(image); } // Adds the text if specified. if (data.text) { var text = document.createElement("span"); text.className = "modulebar-text"; text.innerHTML = data.text; // Align the text with a margin. if ((data.symbol || data.img) && placement === "right") { text.style.marginRight = "4px"; } // Adds the text to the item. item.appendChild(text); } // All done. :) return item; }, notificationReceived: function(notification, payload) { if(notification === "DOM_OBJECTS_CREATED"){ this.hide() } } }); config is { module: "MMM-Modulebar", position: "top_left", classes: "default everyone", config: { showBorder:false, direction:"column", buttons: { "1": { module: "MMM-EmbedYoutube1", width:"50", height:"50", text:"먹방", \ img:"https://image.flaticon.com/icons/svg/1643/1643011.svg", }, }, } },
  • modules.data.position is not changed

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    S
    @emrhssla if you did this kind of change, the module code should not know…
  • Modules Shifting position on their own.

    Unsolved
    1
    0 Votes
    1 Posts
    625 Views
    D
    I could really use some help here guys. I have everything set up and working and am just having issues with final touches on position. Here are my two issues. I have 2 google route modules in my bottom_left position and the stock news in the botom. any time there is a headline that is longer…it takes up two lines and shifts the entire bottom left area up the screen…it then returns to normal on the next shorter headline. In a similar situation using the MMM-0SharportMeta Data modules…it looks great until I choose a song that is titled long…it shifts it self to the left until the next song comes up. any trouble shooting help would be wonderful
  • mmm-trakt

    Unsolved
    1
    0 Votes
    1 Posts
    626 Views
    D
    is there any way to have this module pull the upcoming schedule info…ie shows I watch that are airing today?
  • Default calendar and fading

    Unsolved
    5
    0 Votes
    5 Posts
    4k Views
    V
    @sonicgoose hah, yes. It happened to me about 2 weeks back, and I was staring at similar lines of config over and over :)
  • MMM-AssistantMk2 breaks with MM v2.7.0

    Solved
    4
    1 Votes
    4 Posts
    2k Views
    S
    @Sean Doing this with both MMM-AssistantMk2 and MMM-Hotword (snowboy) did the trick. Thanks!
  • Trying to get old MMM-MPD module to work. Debug? How?

    Moved
    1
    0 Votes
    1 Posts
    700 Views
    D
    Re: MMM-MPD Hey folks. Just stumbled onto MM yesterday and it’s pretty cool. I have a rPi running Dakboard and MM seems like a perfect solution and I won’t have to have my data running through a pay site. I would love to get MPD status showing on my MM but the only module I found is MMM-MPD and I can’t get it to work. Just blank. Where are debug logs for MM? I’m not familiar with how the node.js framework works so I don’t know where to start looking. Thanks for any advice. edit: just found the How To Troubleshoot section but it looks like that is for module developers and not users… still looking
  • MMM-MSSQL

    Unsolved
    1
    0 Votes
    1 Posts
    750 Views
    N
    Hi, is there any Module for connection to a Microsoft SQL Database? If not, how can i create this Module? Thanks
  • MM Modules except MMM-RTSP don't show after several days of use.

    10
    0 Votes
    10 Posts
    4k Views
    V
    Out of curiosity what did you do to get the MMM- RTSP to work? I ended up giving up on this project due to it not working for me. Thank you
  • MMM-GooglePhotos - Config help

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    B
    @MwMagicMirror , THANKS for taking the time to verify it was working for you. Somehow I didn’t enable the Google Photo API but created OAuth and .json file. Works now!!
  • Error in Magic mirror display of some modules

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    S
    @Mykle1 400
  • US Holidays calendar not working

    Moved Solved
    4
    0 Votes
    4 Posts
    3k Views
    jcasmanJ
    @MwMagicMirror Thanks for posting. I had the same problem as @richland007 . Your URL fixed it for me.
  • Google Birthdays

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    B
    Hi, I’m doing it without any module but using Google script : link text
  • MMM-DigitalAlarmClock Upcoming alarm Format

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    R
    Awesome. Thank you.
  • 0 Votes
    3 Posts
    1k Views
    L
    Hi @sdetweil , I am using this ‘https://github.com/Jopyth/MMM-Remote-Control/tree/master/API’ . And i’m writing my webapplication in angular. And i’m aware that i need to give ‘Access-Control-Allow-Origin’: ‘*’ with the headers but i don’t know where you need to do this.
  • MMM-NetworkScanner - arp-scan not working

    Unsolved
    1
    0 Votes
    1 Posts
    3k Views
    S
    Just installed MMM-NetworkScanner but it keeps reporting NO DEVICES ONLINE, even though all devices on my network are assigned static ip addresses and I tried both ip and mac address in the config file. I went back to the install instructions and tried running arps2mm.sh (after updating arp-scan) and got this error: ERROR: failed to send packet: Resource temporarily unavailable So I tried running the arp-scan manually (same command that’s in arps2mm.sh) and I got the same error. Is arp-scan broken? Shouldn’t matter, though, because ping works, and isn’t that what MMM-NetworkScanner should be using?
  • MMM-CalendarExt2 not showing icons in calendar

    Unsolved
    14
    0 Votes
    14 Posts
    6k Views
    B
    @sworrs no problem. I will try the debugging method proposed by @Sean this week and keep both of you posted.