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

    Posts

    Recent Best Controversial
    • RE: Weatherunderground - currently - hourly - daily - configurable

      @bminer1

      @strawberry-3.141 said in Throwing down the gauntlet:

      if someone wants to achieve the same, actually there is the module wunderground twice (center and right), but once the forecast and the other time the current weather is hidden

      .region.top.center .MMM-WunderGround table.small, //selector for forecast
      .region.top.right .MMM-WunderGround table:not(.small), //selector for current weather
      .region.top.right .MMM-WunderGround table.small td:nth-child(6) { //selector for rain amount
        display:none;
      }
      `
      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: Alert from inside function

      @Luukth thats an issue of accessing the right scope, you can fix that by using an arrow function

      setInterval(() => {
        updateOV();
        this.sendNotification("SHOW_ALERT", {title: "OV", message: "Bustijden ge-update.", timer: "1000"});
      }, 10000);
      
      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-OlympicGames

      @sirfm @KristjanESPERANTO I found an API

      1.4.0

      Added

      • Data provider: paralympic

      Changed

      • Default provider: paralympic
      • Default title: Paralympic Winter Games 2022

      Link to module: https://github.com/fewieden/MMM-OlympicGames

      posted in Sport
      strawberry 3.141S
      strawberry 3.141
    • RE: Controlling Embedded Youtube Video on MM

      @zichao92 I cleaned up your module

      Module.register("youtube",{
      
          start: function() {
              Log.info("Starting module: " + this.name);
          },
      
          getStyles: function() {
              return ['script.css'];
          },
      
          sendCommand: function(cmd){
              var myPlayer = document.getElementById('my-video');
              if(myPlayer){
                  myPlayer.contentWindow.postMessage(JSON.stringify({
                      "event": "command",
                      "func": cmd
                  }), "*");
              }
          },
      
          notificationReceived: function(notification, payload) {
              if (notification === "PAUSE_VIDEO"){
                  this.sendCommand("pauseVideo");
              }
              if (notification === "PLAY_VIDEO"){
                  this.sendCommand("playVideo");
              }
          },
          
          getDom: function() {
      
              var wrapper = document.createElement("div");
      
              var background = document.createElement("div");
              background.classList.add("video-background");
      
              var foreground = document.createElement("div");
              foreground.classList.add("video-foreground");
      
              var iframe = document.createElement("iframe");
              iframe.setAttribute("id", "my-video");
              iframe.setAttribute("src", "https://www.youtube.com/embed/5kIe6UZHSXw?enablejsapi=1&autoplay=1");
              iframe.setAttribute("frameborder", "0");
              iframe.setAttribute("type", "text/html");
      
              foreground.appendChild(iframe);
              background.appendChild(foreground);
              wrapper.appendChild(background);
      
              return wrapper;
          }
      });
      
      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Weatherunderground - currently - hourly - daily - configurable

      @bminer1 your config leads to a different layout

      .region.top.left .MMM-WunderGround div.module-content > div > :not(table),
      .region.top.center .MMM-WunderGround div.module-content > div > table {
      	display: none;
      }
      
      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: Multiple Pages of Modules using CSS

      @shbatm did you try the module carousel? That should do the trick without modifying files and can help you to implement your solution

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: NFL Score Module

      Link to module https://github.com/fewieden/MMM-NFL

      1.3.1

      Fixed

      • Config option focus_on didn’t filter match list

      Removed

      • TravisCI integration
      posted in Sport
      strawberry 3.141S
      strawberry 3.141
    • RE: config entry that skips loading of module - forgotten

      @Mykle1 do you mean disable: true?

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-doomsDay - The countdown module,

      @Mykle1 git pull

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: New to Modules, Need help

      @randal-io you can view your logs by starting the mirror with npm start dev or by pressing cmd+shift+i

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-NHL

      v2.4.0

      Thanks to @parnic @dannoh for their contributions.

      Fixed

      • Updated module to work with the new NHL API.

      Link to module https://github.com/fewieden/MMM-NHL

      posted in Sport
      strawberry 3.141S
      strawberry 3.141
    • RE: Unable to import 3rd modules party in config.js

      @giulianomondin comma missing after updateinterval

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-doomsDay - The countdown module,

      @broberg date and time stuff can get really painful, that’s why I’m using moment for those tasks. there are some clever brains that thought about all kind of edge cases etc. you might want to check it out http://momentjs.com/docs/#/displaying/to/

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: Can I use Chrome for Magicmirror?

      electron is build up on chromium

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-OlympicGames

      1.5.0

      Fixed

      • Data provider: nbc
      • Data provider: bloomberg

      Removed

      • Data provider: paralympic

      Link to module: https://github.com/fewieden/MMM-OlympicGames

      posted in Sport
      strawberry 3.141S
      strawberry 3.141
    • RE: How to go back to previous version of a module?

      @Mykle1 yes then do git checkout COMMITID the commitid can be found on the right side of the list

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-voice

      @Mykle1 yes you can change it, that’s why it is configurable. try to apply the rule text-align: right; in custom.css

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: Custom module bases helloworld

      @roma-cezar you need to put your code into a node_helper as it is based on node dependencies. Then you can communicate via sockets between the helper and the module. you can have a look in other modules which have a node_helper file how the communication works. also you can have a look in the developer guide here https://github.com/MichMich/MagicMirror/blob/master/modules/README.md

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: How to start?

      @antonia If you want it to work similar to MagicMirror then you will build a web page.

      There you will render the modules.

      To update the modules you can ask the server for updates (ajax, long-polling) or you use websockets to get updates on the fly.

      On the server you need to get the data for the modules which can be rendered on the webpage.

      posted in Tutorials
      strawberry 3.141S
      strawberry 3.141
    • RE: remoteFile in compliments module

      @jm I can’t see that this is still happening on the current code base. Every time it tries to update an array will be generated with all possible values, after that the garbage collector will do his job and delete the array after usage.

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • 1
    • 2
    • 15
    • 16
    • 17
    • 18
    • 19
    • 26
    • 27
    • 17 / 27