A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • 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
    912 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
    937 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
  • Looking for Austrian Testers

    16
    1 Votes
    16 Posts
    9k Views
    schlachtkreuzer6S
    @strawberry-3.141 works great!
  • Forcing language translations in module

    1
    0 Votes
    1 Posts
    1k Views
    brobergB
    How do I go about forcing translations in a module? I want my configuration option to overwrite the main config language setting, how do I do that in the code? I have included translation json files in the module and include them using getTranslations: function() { return { en: "translations/en.json", sv: "translations/sv.json" } }, and then use this.translate('word') I guess this is really simple, but I’m lost
  • MMM-Alexa No Media Stream connected

    mmm-alexa
    1
    0 Votes
    1 Posts
    1k Views
    romainR
    Hello, I try to make MMM-Alexa work (I don’t have a button, so I use another module to send the start recording notification for now). But I got an exeption Uncaught (in promise) Error: No Media Stream connected. :8080/modules/MMM-alexa//alexaRunner.babel.js:527 at Promise (:8080/modules/MMM-alexa//alexaRunner.babel.js:527) at AVS.startRecording (:8080/modules/MMM-alexa//alexaRunner.babel.js:525) at alexaRunner.notificationReceived (:8080/modules/MMM-alexa//alexaRunner.babel.js:4326) at Class.notificationReceived (:8080/modules/MMM-alexa//MMM-alexa.js:59) at sendNotification (main.js:87) at Object.sendNotification (main.js:454) at Class.sendNotification (module.js:301) at Class.notificationReceived (:8080/modules/shemur//shemur.js:43) at sendNotification (main.js:87) at Object.sendNotification (main.js:454) TypeError: Cannot read property 'byteLength' of undefined alexaRunner.babel.js:4468 at Promise (alexaRunner.babel.js:670) at AVS.sendAudio (alexaRunner.babel.js:601) at alexaRunner.avs.stopRecording.then.dataView (alexaRunner.babel.js:4435) The color of the square is red. I receive the following notification in that Order : ALL_MODULES_STARTED DOM_OBJECTS_CREATED ALEXA_CREATED ALEXA_TOKEN_SET (When I receive this one I send the ALEXA_START_RECORDING notification) ALEXA_VAD_VOICE_DETECTION_START ALEXA_VAD_VOICE_DETECTION_STOP (I receive this one immediatly after the start one) ALEXA_RECORD_STOP ALEXA_STOP_RECORDING If I don’t send the alexa start recording notification, I have no exception so It must be related to the recording right ? I do have a mic and I can record a sound with arecord and play that sound with aplay or play in my terminal. So why is the vad voice detection stoping immediatly ? why do I receive the “No media stream connected” exception ? Is the module dosn’t detect my mic ? How can I solve this? Little update: If I send the notification again (with about 30 second spacing) I am able to have an answer from Alexa.if I speak quickly enough at the moment the notification is send. So… I’m guessing the first time is for initialization and after that it’s ok to talk. Still not sure why I got exception but I guess it’s fine… I need to find a way to trigger it with a wake up world now. Also, Is there a way to see when it’s ok to talk ? (kinda like the MMM-AlexaPi module that show you the mic status and a little symbole that show Alexa is processing your request)