• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Rocketlaunch- image removal?

Scheduled Pinned Locked Moved Solved Troubleshooting
4 Posts 3 Posters 580 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    onis_uk
    last edited by Jan 19, 2022, 5:13 PM

    MMM-RocketLaunch

    How would i go about removing the loaded image in the module and just keep all the text?!

    M 1 Reply Last reply Jan 19, 2022, 5:41 PM Reply Quote 0
    • M Offline
      mmm-unknown
      last edited by Sep 9, 2022, 3:51 AM

      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);
      
      
      1 Reply Last reply Reply Quote 1
      • M Offline
        mumblebaj Module Developer @onis_uk
        last edited by Jan 19, 2022, 5:41 PM

        @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.

        Check out my modules at: https://github.com/mumblebaj?tab=repositories

        O 1 Reply Last reply Jan 20, 2022, 11:57 AM Reply Quote 0
        • O Offline
          onis_uk @mumblebaj
          last edited by Jan 20, 2022, 11:57 AM

          @mumblebaj yeah i tried that but seemed to break the module! submitted a request now

          1 Reply Last reply Reply Quote 0
          • M Offline
            mmm-unknown
            last edited by Sep 9, 2022, 3:51 AM

            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);
            
            
            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy