A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • New to Modules, Need help

    Solved
    9
    0 Votes
    9 Posts
    5k Views
    Mykle1M
    @cowboysdude said in New to Modules, Need help: LOTS OF MADNESS LOL And your fair share of genius! (Guru)
  • Youtube Embed API

    4
    0 Votes
    4 Posts
    4k Views
    A
    @Stubbsy1994 The link you provided describes how to embed youtube API into HTML sites using iframe-Tags in two ways. It seems, the module shown in the thread above uses the first method (iframe with source http:// www.youtube. com/embed/VIDEO_ID?parameters). I guess, the pure JS method ultimatively also uses an iframe since its called IFrame Player API. As far as I can see, both have equal functionality. It’s not really documented, but it seems like you can call all the functions for the player-object listed here in the direct iframe approach (first method), too. See parameter enablejsapi=1. For example pause or seek-to (not verified for all functions!): $('#video1')[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*'); $('#video1')[0].contentWindow.postMessage('{"event":"command","func":"seekTo","args":[20, true]}', '*'); Compare sendCommand function in youtube.js of the module described in the thread above. So even though the module may not satisfy all your needs by now, maybe you can take it as a starting point to develop your own solution?!
  • Show/Hide my own module in combination with MMM-Facial-Recognition

    2
    1 Votes
    2 Posts
    1k Views
    J
    For more context on this, in fact my understanding above is correct. I modified both MMM-Facial-Recognition and my own module to use a lockString option, and the module is showing and hiding as I expect / want now. However it doesn’t address my second question – could I have accomplished this without modifying MMM-Facial-Recognition?
  • TESTERS WANTED - Multi-sport Scoreboard module

    15
    0 Votes
    15 Posts
    10k Views
    J
    @d3r looks like I won’t be able to add MLS. Turns out there is no public API available, and I don’t really want to go down the route of scraping a web site. Still going to add NFL, and hopefully CFL (still looking for an API). The good news, is that I’ve set this up to be modular. Adding sports is a fairly easy thing to do when an API becomes available. If MLS decides to make available an API, it’s maybe a couple of hour’s worth of effort to get it set up.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    77 Views
  • sendSocketNotification is not working from node_helper to main module

    1
    0 Votes
    1 Posts
    1k Views
    P
    Hi, I am new to node.js.I am trying to create new sample module “test”.I am sending notification from test module to node_helper and trying to receive notification back to test module.From test module to node_helper notification works fine, but test module does not receive any notification from node_helper. Here is my module code: test.js: Module.register("test",{ defaults:{ text:"Happy Birthday!!!!" }, getDom: function() { var wrapper = document.createElement("div"); wrapper.innerHTML =this.config.text; return wrapper; }, start:function(){ this.sendSocketNotification("main",{message:"test1"}); }, socketNotificationReceived: function(notification, payload) { console.log('socketNotificationReceived() in main module..'+notification); if (notification === "test2") { console.log('test2 socket notification received...'); } } }); Here is node_helper.js: var NodeHelper = require("node_helper"); module.exports = NodeHelper.create({ // Override start method. start: function() { }, // Override socketNotificationReceived method. socketNotificationReceived: function(notification, payload) { var self=this; console.log('*Starting socketNotificationReceived()*'+notification); if (notification === "main") { console.log(notification+' socket notification received...'); this.function1(); } }, function1:function(){ console.log('inside function1'); this.sendSocketNotification("test2",{message:"test2"}); } }); Here is config.js: var config = { port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses. language: "en", timeFormat: 24, units: "metric", modules: [ { module: "test", position: "top_right" } ] }; I am stuck there since last 3-4 days.If something is missing or wrong please correct me.Any help appreciated
  • Can I control a relay on MagicMirror2?

    9
    0 Votes
    9 Posts
    6k Views
    johnsonkaoJ
    Using WebIOPI is simple way to control GPIOs . The followings is my solution. To install WebIOPI to your raspberry Pi. webiopi Installation Note: if you use webiopi 0.7 and rasp 2, you have to run the patch. In the node_help.js of your module, use ‘http post’ to control the GPIOs. WebIOPI rest api ex: SET ‘GPIO 3’ to ‘IN’ , the request as below: HTTP POST http:/192.168.1.200:8000/GPIO/3/function/in
  • MMM-Todoist Refresh Completed Tasks

    1
    0 Votes
    1 Posts
    1k Views
    joela85J
    Currently the MMM-Todoist module does not remove tasks from Todoist once you complete them on the app. Only if you add another task will it remove the completed task. Is anybody able to take a look at the code and work out if this can be rectified?
  • Rasperry + AlexaPi = Modul ???

    3
    0 Votes
    3 Posts
    2k Views
    M
    Hy, but There is no description for the modul or anything Else. The modul in The Forum have i Seen. But There is no configuration or description how to
  • How to create a module using unity webgl app ?

    unity module html
    1
    0 Votes
    1 Posts
    2k Views
    S
    Hello everyone, i have a unity application that opens camera and inserting some effects to the preview. i want to insert that build (html file and js scripts) into a module and use it within my magic mirror project. Is that possible ? any suggestions ? Thanks.
  • A Module To display grid-based Content

    3
    0 Votes
    3 Posts
    2k Views
    J
    Wow, no replys. I have not found much, for a directory of classes you may want to look into a web page, the raspberry pi can host a local web server and display what you want… (I used https://www.w3schools.com/html/html_basic.asp to help set up the page). Then you can just display the page or put the page in your MM with iframe. Or some kind of note module like Wunderlist, that way it will display classes, and you can change them on your phone/pc.
  • which programation language do i need to add and improve alexa's skills?

    1
    0 Votes
    1 Posts
    923 Views
    I
    Hiii! i read that i only need PYTHON to edit and add whatever i want to alexa’s program, is PYTHON enough!?, because i’ve learned it before so if it’s just it i’ll find it easy to learn it again, especially that it’s the easiest language, am afraid if the answer is gonna be Java, it needs time to learn. Thanks. kind regards
  • XML Module

    1
    0 Votes
    1 Posts
    949 Views
    H
    Hey i need someone to help me building a module the module will get xml content wich will be like this: pool1: 25ºC, 7pH, 0.8Cl pool2: 28ºC, 7pH, 0.2Cl and to display it in magicMirror with fancy icons and etc. please contact me hugopontesmiranda@gmail.com its urgent!!
  • Alert from inside function

    6
    0 Votes
    6 Posts
    3k Views
    strawberry 3.141S
    @Luukth https://github.com/MichMich/MagicMirror/tree/master/modules or you also can checkout some modules
  • Calendar module fetchInterval

    12
    0 Votes
    12 Posts
    9k Views
    C
    @Anhalter42 I spend some time going through the calendar module code, i can read it fairly well, for the syntax i dont understand there is always google. After review, I see why there are no separate fetchInterval’s for each calendar. Each calendar’s events are added to an array, then sorted together also the dom (html table) is created from scratch on each interval. Without a tremendous restructuring of code, setting up separate interval timers, persisting the ical events array, etc. the value to adding this is limited. Your comments help me immensely, thank you. I reviewed the template module, i’l start playing with that and do a Hello World module exercise when i return home at the end of the month.
  • MMM-EFA development

    1
    0 Votes
    1 Posts
    1k Views
    D
    Hey All, As you might have seen, i added MMM-EFA-departures to the module overview. I can display real-time data and is now well formatted. But, i need your help to improve it. -replace the Destination name using key/value pairs in config.js, so everyone could use it, depending on their scenario. -change the default view, when toogling is disable. (switch between absolute and relative time) -display delay in a seperate column (realtime-departure is nice, but some might prefer to display the scheduled departure and the delay) https://github.com/Dom1n1c/MMM-EFA-departures/issues Thanks :smile:
  • resume()

    12
    0 Votes
    12 Posts
    6k Views
    brobergB
    @Anhalter42 Yes, open an issue on github or if you already have made changes to either the documentation or written code that does your first suggestion then you would suggest a Pull Request to implement the changes you’ve made
  • Calendar Broadcast

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    D
    Apologies for not being specific enough. Was having troubles unpacking the notification payload. Found that this method works: notificationReceived:function(notification, payload, sender) { if (notification === 'CALENDAR_EVENTS' && sender.name === 'calendar') { var x = payload; for (let value of x) { then I was able to use variables such as x[0] or value.title/startDate/endDate etc, to access the data.
  • multiple module instances overwrites itself values

    Unsolved
    13
    1 Votes
    13 Posts
    11k Views
    strawberry 3.141S
    every instance has already a unique identifier see here https://github.com/MichMich/MagicMirror/tree/master/modules#available-module-instance-properties also the discussion in here is related to the issue https://forum.magicmirror.builders/topic/960/london-bus-status/14
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    28 Views