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);
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login