MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Patex
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 15
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Stuck in development

      @Baxer said in Stuck in development:

      var standings = {};
      this.sendSocketNotification(‘STANDINGS’, standings);

      You are almost there. This is the one bit where you currently are missing code. You need to send the teams data via the socket notification system to the module.

      Since I have no idea how the data exactly looks like I can only give you the hint that you can either populate the standings object yourself (maybe it’s worth to take a look at arrays in javascript)

      var standings = [];
      
      for(myLoopCodition){
        standings.push(teams[i] ...);
      }
      

      or send the entire teams data via the socket and let the module handle it. Now in the getDom() function you can maybe create a nice table to display the data in a fitting way.

      posted in Development
      PatexP
      Patex
    • RE: 24h weather forecast graph

      @feedparakeet For such a basic functionality we should not reinvent the wheel. There are a lot of javascript graphing libraries available which are far more sophisticated than anything we will be able to code for the mm in a reasonable manner. They usually render the result in a canvas which can simply be added to the mirror e.g. http://www.chartjs.org/

      posted in Requests
      PatexP
      Patex
    • RE: digital photo frame

      @schlachtkreuzer6 I created a picture module which loads pictures from a local folder and downscales them to show 1,2 or 4 of them at the same time. The issue being that electron crashes after some time due to being out of memory. The images have a very high resolution (3000 px) and if the 4 image layout is chosen actually 8 pictures are loaded at a time. Maybe time will tell if these issues can be fixed (http://stackoverflow.com/questions/27321997/how-to-request-the-garbage-collector-in-node-js-to-run).

      posted in Requests
      PatexP
      Patex
    • 1 / 1