A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
MMM-Rocketlaunch- image removal?
-
How would i go about removing the loaded image in the module and just keep all the text?!
-
I had the same idea. I added a boolean variable to disable outputting row 9.
diff --git a/MMM-Rocketlaunch.js b/MMM-Rocketlaunch.js index c65b2c5..31f5faa 100644 --- a/MMM-Rocketlaunch.js +++ b/MMM-Rocketlaunch.js @@ -25,6 +25,7 @@ Module.register('MMM-Rocketlaunch',{ apiParmVerbose: '&format=json', missiondesc: true, imggray: true, + imgdisplay: true, launches: "1", statusTable: { @@ -229,7 +230,7 @@ Module.register('MMM-Rocketlaunch',{ } // row 9 - if (currentLaunche.image) { + if (currentLaunche.image && this.config.imgdisplay) { var row = document.createElement("tr"); table.appendChild(row);
-
@onis_uk You would probably have to comment out the code that adds the image in the MMM-Rocketlaunch.js. Lines 232 - 252. Would be best to request a change from the developer of the module on the module Github page to make the image an optional feature.
-
@mumblebaj yeah i tried that but seemed to break the module! submitted a request now
-
I had the same idea. I added a boolean variable to disable outputting row 9.
diff --git a/MMM-Rocketlaunch.js b/MMM-Rocketlaunch.js index c65b2c5..31f5faa 100644 --- a/MMM-Rocketlaunch.js +++ b/MMM-Rocketlaunch.js @@ -25,6 +25,7 @@ Module.register('MMM-Rocketlaunch',{ apiParmVerbose: '&format=json', missiondesc: true, imggray: true, + imgdisplay: true, launches: "1", statusTable: { @@ -229,7 +230,7 @@ Module.register('MMM-Rocketlaunch',{ } // row 9 - if (currentLaunche.image) { + if (currentLaunche.image && this.config.imgdisplay) { var row = document.createElement("tr"); table.appendChild(row);