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 614 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

      MMM-RocketLaunch

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

      mumblebajM 1 Reply Last reply Reply Quote 0
      • M Offline
        mmm-unknown
        last edited by

        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
        • mumblebajM Offline
          mumblebaj Module Developer @onis_uk
          last edited by

          @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 Reply Quote 0
          • O Offline
            onis_uk @mumblebaj
            last edited by

            @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

              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