A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • call API (no CORS), used to do it with php proxy

    12
    0 Votes
    12 Posts
    12k Views
    D
    Sorry, but that doesn’t work. (It throws response.statusCode = 403, forbidden.) And it’s not surprising. As I said, the API source server doesn’t allow CORS and is not serving JSONP. So JavaScript calls are blocked. There are a lot of fine tools for specific jobs, XMLHttpRequest, fetch, request, fs, …, and they work if CORS is set up correctly on the server, allowing you access, or it’s giving you JSONP to handle, but PHP’s file_get_contents is the hammer in your toolbox. If everything else fails, you still can throw this at your problem (provided you have allow_url_fopen). And I know, it’s not always wise to use (or even throw) a hammer, access might be forbidden (to scripts) for a reason. But if you can read it in your browser, PHP can read, stringify and proxy it to your JS.
  • How to dynamically show/hide and configure other modules from my module?

    2
    0 Votes
    2 Posts
    2k Views
    D
    Sounds like you want the configuration from a json instead of the config.js – because then you can change the content. Or json first and config.js as fallback (and default after that as the last fallback). So the weather module would have to read it’s config from that json and you can create a module that writes to this json something like weather_source: “location”, and triggers the weather module to reload. Interesting idea. EDIT: I found this module while looking for help with something similar: https://github.com/Jopyth/MMM-Remote-Control
  • Display countdown at event

    1
    0 Votes
    1 Posts
    916 Views
    J
    Hi! I’ve a python script running, and when I press a button it takes a photo. I want to display a 3 seconds countdown after that. The easiest way (not the best) maybe that a module of MagicMirror display dynamically the content of a text file, and in python script I write to that file. How can i do that? Do you know any way to do that? Regards.
  • Question to Log.info in js file

    2
    0 Votes
    2 Posts
    1k Views
    P
    Log.Info will print to the Browser Console. In Firefox or Chrome hit: Ctrl+Shift+I and then click the “console button”
  • Voice control

    9
    1 Votes
    9 Posts
    6k Views
    Mykle1M
    @wireshark https://github.com/fewieden/MMM-voice And there are others here as well https://github.com/MichMich/MagicMirror/wiki/MagicMirror²-Modules#3rd-party-modules
  • Alexa vs Google AIY Voice kit

    2
    0 Votes
    2 Posts
    2k Views
    C
    I’m going on the basis of who has better youtube support and whether or not I can disable the module when I don’t want it to prevent spying. That said, I havent decided yet either.
  • Help getting started

    1
    0 Votes
    1 Posts
    952 Views
    B
    I trying to create a module for stats from the Swedish hockey league, im new to programming but im trying to learn as i go since there is such good documentation on creating a module, but im wondering one thing The Api from SHL already have a npm client and as i understand the files in the “lib” subfolder handles all the connection. How do i make so my module to load these files?
  • How to change Time zone of default clock?

    2
    0 Votes
    2 Posts
    7k Views
    Mykle1M
    @PRECIOUS-VIRAL https://github.com/MichMich/MagicMirror/tree/master/modules/default/clock
  • Problems with rss

    4
    2
    0 Votes
    4 Posts
    2k Views
    R
    To follow up… I got it to work by comparing parsed.feed.entries.length to the number of parsed entries, and when all entries were passed I called a callback that sent the notifications. I’m new to javascript so there’s still a lot to learn.
  • Multiple Pages of Modules using CSS

    6
    3
    1 Votes
    6 Posts
    6k Views
    A
    Hello, I installed your fork and it works just fine. That was what I was looking for with a touchscreen: D But now I have a problem. If I take the comment to activate other pages and check to a widget, the reference to page 3 is not displayed and the points to touch are just two. Is there anything else to modify in the main.js file? Thank you, Alberto
  • How to pass extra variable to a Https Get Request

    1
    0 Votes
    1 Posts
    935 Views
    P
    Hello everyone, I’m pretty new to NodeJS, but I’m working on a module for the Home automation JEEDOM. I’m stuck at being able to do a simple GET and having the context during async GET response in order to know from where my request came from var req = https.get("https://JEEDOMURL/core/api/jeeApi.php?apikey=...&type=cmd&id=127"); req.idx = "127"; req.on("response", function(res){ res.on('data', (d) => { console.log("DEBUG : " + req.idx +" / "+ typeof (d)); console.log("DEBUG : " + req.idx +" / "+ d); }) }); var req = https.get("https://JEEDOMURL/core/api/jeeApi.php?apikey=...&type=cmd&id=695"); req.idx = "695"; req.on("response", function(res){ res.on('data', (d) => { console.log("DEBUG : " + req.idx +" / "+ typeof (d)); console.log("DEBUG : " + req.idx +" / "+ d); }) }); With no surprise I’m getting DEBUG : 695 / object DEBUG : 695 / 5515 DEBUG : 695 / object DEBUG : 695 / 19.8 instead of getting DEBUG : 695 / object DEBUG : 127 / 5515 DEBUG : 695 / object DEBUG : 695 / 19.8 I know that is expected by JS async guru, but How can I explicitly pass a variable and getting my http get DATA synchronize. I’ve read a lot of module code, and unfortunately for me JEEDOM is not giving me any context information in the GET answer https://JEEDOMURL/core/api/jeeApi.php?apikey=...&type=cmd&id=127" is only responding 5515 and https://JEEDOMURL/core/api/jeeApi.php?apikey=...&type=cmd&id=695" is responding 19.8 Any help would be appreciate ? Thanks in advance for your time. I’m really stuck, and I don’t want to parse the URL to get back my ID.
  • C# Module Ideas for project

    1
    0 Votes
    1 Posts
    1k Views
    S
    I am making a mirror to showcase for a class project. Part of the requirements are that I actually develop something, specifically in C#. I know I can use C# through the Mono framework but past that, I’m not sure what to do. I’ve thought about creating a module for BlackBoard. Any ideas on what I could work on?
  • Including socketNotificationReceived in getDom function

    8
    0 Votes
    8 Posts
    3k Views
    ?
    @yours.mukul I think it is not good to put the noti into start() of node_helper.js. Because after finishing module loaded and DOM created, updateDOM() would be working properly, but your code tried too early. As you’ve said, you had your code in node_helper.js to get REAL latitude & longitude, isn’t it? My code was just an example. Send your REAL lat & lng to main module when your node_helper code gathers real target values.
  • How can I see the HTML that being generated?

    11
    0 Votes
    11 Posts
    7k Views
    Mykle1M
    @Zooooooom said in How can I see the HTML that being generated?: Thanks! I was missing the address from config. You’re welcome mate
  • Need help for testing modules

    14
    0 Votes
    14 Posts
    6k Views
    ?
    @Txukie as i know google assistant doesn’t support spanish yet(at least, in current grpc api). In configuration, spanish is available in ‘recognition on command mode’ and ‘speech response of command mode’, not ‘google assistant mode’.
  • Communication from node helper to module: Taking too long

    7
    0 Votes
    7 Posts
    3k Views
    S
    I am calling : Node_helper: self.sendSocketNotification(‘SONUS’, sonus); Module: socketNotificationReceived: function (notification, payload) { receivedNotification(this,notification,payload); } It is taking seven seconds from Node helper to Module
  • MMM-Alexa

    4
    0 Votes
    4 Posts
    4k Views
    G
    @bartalluyn Sorry for kicking this old topic but I couldn’t find on your blog how to configure Alexa and MM. Can you provide more information?
  • Better way to use HTML in module development

    3
    0 Votes
    3 Posts
    2k Views
    E
    Thanks buddy, That looks nice, any idea when it’s coming out in release ?
  • How to detect SBC model?

    13
    0 Votes
    13 Posts
    5k Views
    ?
    @edubey Yes. 99% works. The performance is better than rpi.
  • [Help Needed: Core Module] Developing a new default weather module.

    5
    0 Votes
    5 Posts
    3k Views
    tbbearT
    have a look at MMM-NOAA i think this is the most interesting weather app of all!!!