A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • Language changer module

    1
    0 Votes
    1 Posts
    722 Views
    0
    Hey, I’m trying this again. I’ve wrote another post earlier this year, but it did not help me. What I’m trying to do is to change the language of the mirror on the fly. So have two pages, one in English, one in Polish and then change them every x seconds. Modules on both would be the same. This would also need to apply to stock modules, such as clock etc. Difficulty: Is there a way to do this w/o having to refresh the page every x seconds? There’s a ton of toggle/carousel/hide modules for modules, but they don’t help: if a module is hidden and shown, it’s config is not reloaded. Thanks for any help.
  • script or bash to exit MM and exit GUI and run a command in TTY mode

    4
    0 Votes
    4 Posts
    2k Views
    A
    @Ramez Thanks for your reply, i want to have only one app (either mm or Retropie/Emulationstation) run at one time due the pi ressources. But i will try your approach. AxLED
  • Font Awesome alert icons

    1
    0 Votes
    1 Posts
    689 Views
    R
    greetings, I’m building my first little module which sends a notification to Alert module by this.sendNotification("SHOW_ALERT", {title: "blah", imageFA: 'bullhorn', message: "blah", timer: 5000}); the problem is any icon in imageFA except bullhorn isn’t shown even with adding the proper getStyles: function() { return ['font-awesome.css']; }, to my_module.js file so the question is, does alert module fully handle the notification payload (which contains imageFA data) if so looks like there is a problem with the default module?, or something missing has to be configured first in my module??
  • Alexa Integration like QAIO Smart Mirror

    Moved
    3
    0 Votes
    3 Posts
    2k Views
    Z
    @danielnewy If you really want to have alexa voice control and would cost less and wouldn’t take up much time, I suggest you just buy the Qaio Smart Mirror. Easier, Faster, more Convenient. just a piece of my cake. :)
  • Issues with jplayer integration

    10
    0 Votes
    10 Posts
    2k Views
    A
    @strawberry-3-141, @sdetweil Thanks for your help and pointing me into the right directions. In the last 2 weeks I made massive steps forward with my first ever module. You’ve helped to get my head round havascript and to understand it better. Thanks! End result can be found here.
  • help converting code for module...

    21
    0 Votes
    21 Posts
    6k Views
    ?
    @justjim1220 const exec = require('child_process').exec var NodeHelper = require("node_helper") module.exports = NodeHelper.create({ socketNotificationReceived: function(noti, payload) { if (noti == "GIVE_ME_RESULT") { setTimeout(()=>{ exec("C:\WINDOWS\system32\get-temperature", //I don't know WINDOWS system at all. Is it right? (err, sto, ste) => { if (!err) { this.sendSocketNotification("HERE_IS_RESULT", sto) } else { console.log("Error", err) } } ) }, 1000) } } }) It isn’t tested. But you can catch the idea.
  • ALSA sound mix problem (Youtube)

    2
    2 Votes
    2 Posts
    879 Views
    ?
    UPDATE Weird thing. in RPI (model 3 B+ / Raspbian Stretch), in getDom() I rendered belows; < iframe width="560" height="315" src="https://www.youtube.com/embed/8CdcCD5V-d8" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen>< /iframe> This works. but < audio src="test.mp3" > < iframe width="560" height="315" src="https://www.youtube.com/embed/8CdcCD5V-d8" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen>< /iframe> This doesn’t work often. but I don’t know why and when. When audio tag exists before youtube, 100% failed. When after, sometime worked, sometime didn’t. I suspect Electron(Chromium) on RPI cannot handle multi-sound output. I’m rebuilding my MMM-AssistantMk2 more stable, lighter and independent from some annoying dependencies, but I’m stuck on this. I’m even considering to drop youtube features from module if I cannot solve this problem. (But who cares… -_- )
  • Change newsfeed title to image/logo?

    Moved
    58
    0 Votes
    58 Posts
    21k Views
    justjim1220J
    @striiker said in Change newsfeed title to image/logo?: opacity: 1.0; Well, you might think about changing the color or having no color. I just worked with it going all the way down to 0.1 and this is the result: [image: 1540513439682-screenshot-156.png] this is without a background color… [image: 1540513582949-screenshot-157.png] just change background-color: maroon; to background: none;
  • VW-CarNet module

    4
    1
    4 Votes
    4 Posts
    2k Views
    L
    That would be great! Just what I was looking for!
  • Dynamically update html

    2
    0 Votes
    2 Posts
    957 Views
    B
    I resolved it by implementing a updateBoard function that checks if tables has been rendered and if just updates the innerHTML of that div. Was great to read ANOTHER WAY TO CONTROL OUTPUT in the beginners KB, https://forum.magicmirror.builders/topic/8534/head-first-developing-mm-module-for-extreme-beginners
  • Help with inserting a script into a <div> element

    11
    0 Votes
    11 Posts
    2k Views
    Mykle1M
    @justjim1220 said in Help with inserting a script into a <div> element: It doesn’t allow clickable links to be clicked… Most people don’t use a mouse with their mirrors
  • 0 Votes
    1 Posts
    2k Views
    N
    I want to display live cricket score and sensex indices (Indian share market) to the magic mirror but there are no free or open api available for the same, after spending a lot of time I came to the conclusion that using website widget to do the same is the best and only option so is there any way or module to add the widgets like these ones available at these sites for live cricket score cricruns(dot)com/widget/ cricwaves(dot)com/cricket/widgetmaker.html for sensex indices moneycontrol(dot)com/stocks/company_info/indices_widget.php liveindex(dot)org/widgets/ the above widgets are not embedded in the iframe tags, so is there any way to use the other widgets that are available in the iframe tags? Can someone please write a module where I can add any website widget to the magic mirror, just like we can add any widget to website?
  • include npm module like firebase module into our own MM module

    9
    0 Votes
    9 Posts
    2k Views
    K
    @sean ok will try it out later =)
  • Learning Node.js

    2
    0 Votes
    2 Posts
    1k Views
    Mykle1M
    @timcadieux said in Learning Node.js: will I be able to do the development on my Windows PC (vs 2017) and merely copy it over to my PI Yes, you can. I was developing under Windows. I know some others that still do. I do my module work in ubuntu now.
  • how to detect main window size via code

    4
    0 Votes
    4 Posts
    1k Views
    S
    @sean said in how to detect main window size via code: clientHeight thanks… duh, so easy!..
  • can i inject javascript as part of my modules getDom content?

    7
    0 Votes
    7 Posts
    1k Views
    S
    @sdetweil well, that was easy and works great!.. gotta figure out how to have a div with a fill color to replace the black edges when the pics are not fulls screen. also the bottom edge of the pic is clipped by the bottom of the screen somehow… half the newsfeed line is over the clip line
  • Is there any callback for getDom execution ?

    3
    1 Votes
    3 Posts
    1k Views
    ?
    As I know, there is no callback or notification when getDom is executed. However, if you want to catch the changing of the output of the specific module, you can use MutationObserverin your module.
  • Raspberry Pi 0w Module Errors

    5
    0 Votes
    5 Posts
    2k Views
    E
    @ninjabreadman++ Thank you again for your reply, I will review the MM on the pi0w with the dir name the same as the Module.register(). That said, if this is truly the issue, wouldn’t the same issue persist when booting up the electron app locally on my mac? re loader.js error that appears to be coming from MagicMirror/js/loader.js which appears to be failing to load my MMM-my-module.js file AFAIK
  • Using Unicode Character and symbols in module

    2
    2
    0 Votes
    2 Posts
    1k Views
    A
    Hi to all, i found a solution. [image: 1536262930678-lock.jpg] I use font awesome (which comes with mm anyway) an the following css: .fa-lock1:after { content: "\f023"; } AxLED
  • Accesing config in node_helper

    3
    0 Votes
    3 Posts
    1k Views
    R
    @sean Yep, thats what i do now. Messaging config around :-) Thanks for clarifying so i can rest assured not to overlock something obvious :-)