MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. strawberry 3.141
    3. Posts
    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
    • MMM-ping

      To sum up the list here is also an unpublished module I did a while ago

      https://github.com/fewieden/MMM-ping

      alt text alt text

      [card:fewieden/MMM-ping]

      Requested from @amanzimdwini @Phate

      posted in Utilities voice control modal ping online offline hosts network
      strawberry 3.141S
      strawberry 3.141
    • MMM-ScottishPremierLeague

      Description:

      Due to no support for Scotland in the API MMM-soccer is using, this was requested from @McSorley

      Screenshots:

      alt text

      Download:

      [card:fewieden/MMM-ScottishPremierLeague]


      Initial Version

      posted in Sport soccer football scotland
      strawberry 3.141S
      strawberry 3.141
    • MMM-syslog

      Another unpublished module from @paviro, which I extended the last weeks

      alt text
      [card:paviro/MMM-syslog]

      Originally requested from @PointPubMedia

      posted in System logging home automation
      strawberry 3.141S
      strawberry 3.141
    • MMM-Fuel

      2d69a6d9-b875-46b9-8b3a-e4a96b0ad352-image.png
      c80d1baf-6aed-4c73-8fec-871c8a6e5567-image.png

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

      [card:fewieden/MMM-Fuel]

      requested from @bjoern @WeedWood

      posted in Transport fuel price gas station petrol station voice-control tankerkoenig spritpreisrechner nsw
      strawberry 3.141S
      strawberry 3.141
    • RE: Forum email's confirmation impossible

      there is another user having problems with the confirmation mail https://github.com/fewieden/MMM-NFL/issues/4#issuecomment-246044906

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

      after an issue on github i made a bugfix on a seperate branch so people can test if this will work for everyone

      cd ~/MagicMirror/modules/MMM-NFL
      git fetch
      git checkout bugfix/time-conversion
      npm install
      

      start your mirror and see if the match start datetime is correct for your timezone

      posted in Sport
      strawberry 3.141S
      strawberry 3.141
    • RE: Weatherunderground - currently - hourly - daily - configurable

      that is not a default module path should be ~/MagicMirror/modules/MMM-WunderGround

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: Weatherunderground - currently - hourly - daily - configurable

      are you on the master branch?

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: .txt file include

      in sensor.js you have the function getdom replace it with this

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Weatherunderground - currently - hourly - daily - configurable

      @Plati then there is no update and you are on the newest version

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: .txt file include
      getDom: function(){
      		var wrapper = document.createElement("div");
      		if(this.dataFile){
                              var humidityRegExp = /Humidity = (.*?) %/ig;
                              var humidity = humidityRegExp.exec(this.dataFile)[1];
      
                              var temperatureRegExp = /Temperature = (.*?) *C/ig;
                              var temperature = temperatureRegExp.exec(this.dataFile)[1];
      			wrapper.innerHTML = "Humidity: " + humidity + "% and Temperature: " + temperature + "°C";
      		} else {
      			wrapper.innerHTML = "No data";
      		}
      		return wrapper;
      	}
      
      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Weatherunderground - currently - hourly - daily - configurable

      @Plati go into the modules directory and type git pull

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: Need some advise. Digital Ocean Modules

      @andrewchumchal this is all untested and should give you just a direction on how it could be solved. make sure you update the dom when receiving data

      socketNotificationReceived: function(notification, payload){
          if(notification === "DATA"){
             this.droplets = payload;
             this.updateDom();
          }
      },
      
      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Need some advise. Digital Ocean Modules

      @andrewchumchal

      getDom: function() {
          var wrapper = document.createElement("div");
          if(this.droplets){
              var table = document.createElement("table");
              for(var i = 0; i < this.droplets.droplets.length; i++){
                  var row = document.createElement("tr");
                  var name = document.createElement("td");
                  name.innerHTML = this.droplets.droplets[i].name;
                  row.appendChild(name);
                  var status = document.createElement("td");
                  status.innerHTML = this.droplets.droplets[i].status;
                  row.appendChild(status);
                  var ips = '';
                  for(var n = 0; n < this.droplets.droplets[i].networks['v4'].length; n++;){
                      ips += this.droplets.droplets[i].networks['v4'][n].ip_address + ' | ';
                  }
                  for(var n = 0; n < this.droplets.droplets[i].networks['v6'].length; n++;){
                      ips += this.droplets.droplets[i].networks['v6'][n].ip_address + ' | ';
                  }
                  ips = ips.replace(/ | $/, '');
                  var ip = document.createElement("td");
                  ip.innerHTML = ips;
                  row.appendChild(ip);
                  table.appendChild(row);
              }
              wrapper.appendChild(table);
          } else {
              wrapper.innerHTML = "No data to show!";
          }
          return wrapper;
      },
      
      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Search - Module for fuel-prices

      @bjoern sounds like a great module idea, if you want I can assist you with that

      posted in Requests
      strawberry 3.141S
      strawberry 3.141
    • RE: This might be a daft question, but...

      @Mitchfarino

      url: "", //Insert your url here
      result: false,
      
      defaults: {
          updateInterval: 30 * 60 * 1000 //Every 30 mins
      },
      
      start: function(){
          this.getData();
          setInterval(()=>{
              this.getData();
          }, this.config.updateInterval);
      },
      
      getDom: function() {
          var wrapper = document.createElement("div");
          if(this.result){
              var table = document.createElement("table");
              for (var i = 0; i < this.result.length; i++) {
                  var row = document.createElement("tr");
                  var name = document.createElement("td");
                  name.innerHTML = this.result[i].name;
                  row.appendChild(name);
                  table.appendChild(row);
              }
              wrapper.appendChild(table);
          } else {
              wrapper.innerHTML = "No data to show!";
          }
          return wrapper;
      },
      
      getData: function(){
          $.getJSON(this.url, (data) => {
              this.result = data;
              this.updateDom();
          });
      }
      
      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: This might be a daft question, but...

      @Mitchfarino

      getDom: function () {
          var wrapper = document.createElement("div");
          var table = document.createElement("table");
      
          $.getJSON(this.url,
              function (data) {
                  for (var i = 0; i < data.length; i++) {
                      var row = document.createElement("tr");
                      var name = document.createElement("td");
                      name.innerHTML = data[i].name;
                      row.appendChild(name);
                      table.appendChild(row);
                  }
                  wrapper.appendChild(table);
                  return wrapper;
              });
      

      but I’m pretty sure that this will not work, because the return is in an asynchronous callback, i would do a different structure call your url in an interval somewhere else and save your data into an module variable and call the updateDom function after a result, then in getDom you iterate over the data.

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Need some advise. Digital Ocean Modules

      @andrewchumchal this is just how you can access status name and the ip in getDom for example but you still need to render this

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Need some advise. Digital Ocean Modules

      @andrewchumchal

      for(var i = 0; i < this.droplets.droplets.length; i++;){
          var name = this.droplets.droplets[i].name;
          var status = this.droplets.droplets[i].status;
          var ip = '';
          for(var n = 0; n < this.droplets.droplets[i].networks['v4'].length; n++;){
              ip += this.droplets.droplets[i].networks['v4'].ip_address + ' | ';
          }
          for(var n = 0; n < this.droplets.droplets[i].networks['v6'].length; n++;){
              ip += this.droplets.droplets[i].networks['v6'].ip_address + ' | ';
          }
          ip = ip.replace(/ | $/, '');
      }
      
      
      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Need some advise. Digital Ocean Modules

      @andrewchumchal

      socketNotificationReceived: function(notification, payload){
          if(notification === "DATA"){
             this.droplets = payload;
          }
      },
      
      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • 1
    • 2
    • 74
    • 75
    • 76
    • 77
    • 78
    • 84
    • 85
    • 76 / 85