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

    2
    0 Votes
    2 Posts
    793 Views
    bheplerB

    @ernst-jan - Is your error when you are trying to install the module or when you’re trying to run the module?

    Assuming the install went wrong, what command did you use to install it? Remember to use the markdown features when you reply.

  • Dom Update refresh take to long

    5
    0 Votes
    5 Posts
    2k Views
    S

    do NOT do XML requests IN the getDom function… do them outside (timer) and call updateDom to signal changes to be presented. getDom() should ONLY set info for presentation… nothing else.
    preparation should be done somewhere else… (timer, event handler, …)

    don’t replace the entire wrapper div each time, like ripping the heart out

    var wrapper = document.createElement("div"); don’t look up (getElementbyId) over and over… get it, use it multiple times
    6 lookups here, need only 2… note that you are searching the ENTIRE web page (document.), not YOUR modules content (wrapper .div), and from the very top… so as the page gets fuller and fuller, the search has more things to look thru… case 1783: document.getElementById("wohnzimmer_beamermodus_bezeichner").innerHTML = "Beamermodus:"; document.getElementById("wohnzimmer_beamermodus_bezeichner").style.float = "left"; document.getElementById("wohnzimmer_beamermodus_bezeichner").style.width = "94%"; document.getElementById("wohnzimmer_beamermodus").innerHTML = status; document.getElementById("wohnzimmer_beamermodus").style.float = "left"; document.getElementById("wohnzimmer_beamermodus").style.width = "6%"; don’t update stuff that didn’t change
    here u create these elements without consideration if they already exist… var schlafzimmer_heizungsgruppe_bezeichner = document.createElement("div"); don’t create lots of new content… (createElement) if you don’t need to.
    here u create these elements without consideration if they already exist…
  • MMM-Scrobbler adding last played song

    1
    0 Votes
    1 Posts
    501 Views
    G

    I’m using the MMM-Scrobbler and really liking it. I would also like to display the last played song if there is no current song playing. Now i wonder if somebody can help me with how I can make this work?

    Thank you for reading!

  • MagicMirror² Hackathon 2018

    11
    3 Votes
    11 Posts
    3k Views
    strawberry 3.141S

    Thanks to @justjim1220 for contributing in two issues and thanks to @idoodler for reviewing and testing an issue

    48h Hackathon recap

    Metric Total Ø per hour Issues handled 12 0.25 Projects changed 7 0.15 Lines added +1.587 +33 Lines removed -1,487 -31

    Merge requests that are still open for review and testing:
    https://github.com/fewieden/MMM-AlarmClock/pull/22
    https://github.com/fewieden/MMM-voice/pull/38
    https://github.com/fewieden/MMM-Fuel/pull/32

  • Notification between modules

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    G

    @idoodler thanks for the help.The console part in the dev tool does help a lot!

  • how and where should I use the hide&show function offered by MM?

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    A

    I use MMM-ModuleScheduler to show or hide modules. It works very simple out of the box.

  • MMM-Snow Activation at Month

    6
    0 Votes
    6 Posts
    2k Views
    S

    @cowboysdude said in MMM-Snow Activation at Month:

    var D = new Date();
    var month = D.getmonth;
    If (month === “11”) {
    magic happens here…
    }

    ok i found the Problem

    not var month = D.getmonth; but var month = D.getmonth();

  • Family Map - Location GPS coordinates tracker

    3
    0 Votes
    3 Posts
    2k Views
    P

    Ya, I did see that. I tried it … the Module wouldn’t load for me … I admit I didn’t try too hard though. For me the issue was 2 things.

    I didn’t like that I need to send my data to some server in Russia … I’ve already got a lot of Modules … I don’t really want to find the space for another map.

    So that’s why I want to combine my Traffic Map from Google (which is great for showing traffic), with a simple Marker overlay showing Family location.

    0_1545189493591_Magic Mirror Setup.png

  • Building my first module, using MMM-API

    6
    0 Votes
    6 Posts
    2k Views
    P

    Finally finished my first module.
    Nothing too fancy but fits my requirements.

    GitHub Link

  • Details about Nunjucks templating system?

    11
    0 Votes
    11 Posts
    5k Views
    J

    Seems to be no issues. I’ve released v1.6 of MMM-DarkSkyForecast using the Nunjucks templating system. Seems like my way forward from here :)

    I’ll have to go back and revisit MMM-MyCalendar to see what caused the issue.

  • Help needed - getting informations from XML File

    3
    0 Votes
    3 Posts
    1k Views
    A

    @Charley
    Thanks for your reply and your code in xml2json.js.
    Now i can get the requested values of my xml and can move forward in developing.

    If somebody knows a way to directly extract datas of xml could be an optimization afterwards, to reduce code.

    Regards

    AxLED

  • O365 task solution?

    Moved
    4
    0 Votes
    4 Posts
    1k Views
    schwoediauerS

    @yawns thats right I’d like to implement my O365 Task/Aufgaben like wunderlist tasks on the MM

  • run Linux command from a mm2 module

    20
    0 Votes
    20 Posts
    4k Views
    Mykle1M

    @sdetweil

    No worries, bro. I appreciate your interest and concern. I’m sure I’ll need help in the future. You can get in on that. :-)

  • Timer based on python script

    5
    0 Votes
    5 Posts
    1k Views
    S

    This is perfect!

    I need few hours on google now, to at least begin to comprehend what you just wrote…

    Thank you!! :) I’ll post when I get it somehow work (or get stuck :D )

  • Making a Timer Module!!

    3
  • Language changer module

    1
    0 Votes
    1 Posts
    714 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
    686 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.