A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
  • Module Developer Challenge - I surrender!

    Solved
    33
    0 Votes
    33 Posts
    20k Views
    cowboysdudeC
    @Mykle1 said in Module Developer Challenge - I surrender!: @E3V3A said in Module Developer Challenge - I surrender!: I’m very impressed with your progress. I appreciate that. Frankly, I’m amazed that I’ve gotten any of my modules to work. I joined this forum 13 months ago without the slightest idea of what linux or a raspberry pi even was. I realized quickly enough that I wanted to learn how things worked and started reading and asking questions. With the help of some very nice people I was able to make my first module, MMM-Cocktails. At this point, I was totally hooked. It’s still magic to me and I enjoy every minute of the learning process. HEYYYYYYYYYYYYYYYY hands above the desk…ABOVE…LOL
  • Homematic XMLAPI read system variable

    1
    0 Votes
    1 Posts
    876 Views
    M
    Hello, I just started with my first magic mirror project and I’m already using Homematic to control my smart home. Within there I have many system variables in order to summarize the status of several actors and collect informations. Now I want to display these variables on my mirror and for sure there must be a solution to access this via XMLAPI but until now I did not find the right way … I saw already two solutions in this forum to display actors (devices not variables) in the mirror, and I spend some hours to use them as a basis, but however I was not able to rework them by myself. Maybe someone of you has already a solution in place or can support me here to get such kind of variable data out of the Homematic XMLAPI?
  • Display values from a JSON file hosted online

    10
    0 Votes
    10 Posts
    6k Views
    E
    @yawns Was that re-load issue ever resolved? I have my own basic issues and I’m considering using this code instead…
  • Display a .png saved on the raspberry pi hard drive

    8
    0 Votes
    8 Posts
    5k Views
    N
    @snowman @cruunnerr You’re right. It is however baked into MMM-SimpleLogo. There is a time stamp query parameter appended to the image, so that it fetches a new version every time and does not load the cached version. Also, it has a refreshInterval config parameter to set how often it updates (e.g. "5*60*1000" for 5 minutes).
  • How to input a text from the user?

    keyboard input
    1
    0 Votes
    1 Posts
    1k Views
    H
    Dear all, I can imagine this is not a hard problem, but I haveing trouble to solve this. I am using the face recognition and when a face is detected, I would like to user to input his name. If the face is known, the view will switch to a personalized content. Can anybady help me, please?
  • Getting keyboard input

    2
    0 Votes
    2 Posts
    2k Views
    H
    Did you find a solution? I will make a new post because I have the same issue.
  • Newsfeeds module

    4
    0 Votes
    4 Posts
    2k Views
    S
    it worked ty
  • Wrote 2 modules already, but don't know where to start for another...

    4
    0 Votes
    4 Posts
    2k Views
    D
    Check the code of those modules that can switch modules on/off (if they don’t just hide them, that is). Basically, after changing the config, the browser has to be refreshed in order to load the the new configuration. What you want could be compared to that. Instead of removing a module, you change the language.
  • Simple welcome script

    4
    0 Votes
    4 Posts
    2k Views
    cruunnerrC
    You’re welcome ;)
  • call API (no CORS), used to do it with php proxy

    12
    0 Votes
    12 Posts
    13k 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
    959 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
    7k 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
    994 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
    7k 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
    983 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.