• 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-temp-ds18b20 disable second sensor

Scheduled Pinned Locked Moved Unsolved Troubleshooting
8 Posts 2 Posters 230 Views 2 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.
  • B Offline
    briantogo
    last edited by sdetweil Jun 26, 2025, 5:06 PM Jun 26, 2025, 4:16 PM

    I am using MMM-temp-ds18b20, but would like to disable the second sensor. I am also trying to get rid of any headers, so only the temperature from the ds18b20 is showing. I’ve looked around the Developers window, hoping to find a way to hide everything but the one temp, and couldn’t find anything there. I’ve adjusted the config.js entry to show this;

    {
           module: 'MMM-temp-ds18b20',
           position: 'top_right',
           config: {
                refreshInterval: 10, // in seconds
                displayMode: 'x-stack',
                sensors:[
                    {
                        id: "28-021502d77aff",
                    },
                    {
                    }
                ]
            }
        },
    

    Any suggestions?
    Thanks,
    Brian

    S 1 Reply Last reply Jun 26, 2025, 5:07 PM Reply Quote 0
    • S Offline
      sdetweil @briantogo
      last edited by sdetweil Jun 26, 2025, 5:09 PM Jun 26, 2025, 5:07 PM

      @briantogo

      Remove this

                      {
                      }
      

      So there is only one object in the sensors:[] array

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • B Offline
        briantogo
        last edited by Jun 30, 2025, 3:28 PM

        Thanks Sam, that did remove the second sensor, but there is still undefined section above the temp to get rid of, as shown in the attachment. Any suggestions on that?20250630_10h39m23s_grim.jpg

        S 1 Reply Last reply Jun 30, 2025, 5:01 PM Reply Quote 0
        • S Offline
          sdetweil @briantogo
          last edited by sdetweil Jun 30, 2025, 5:02 PM Jun 30, 2025, 5:01 PM

          @briantogo i think that is the header or label option
          IMG_1684.png

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • B Offline
            briantogo
            last edited by Jul 1, 2025, 12:32 AM

            Thanks Sam, I had already changed “headers” field to ‘inside’, and I like it’s size and placement. I had removed the field “label” under the sensor field hoping to remove it from the config. Now I have re-added the label field, but left it blank. Now the config.js looks like this;

            sensors:[
            {
            id: “28-xxxxxxxxxxxx”,
            label: “”
            },

            Now, it just displays an extra line above the temp reading. Is there a way to, let’s say, zero out or cancel that field altogether? Is there perhaps a word I could type in between the quotes like Null or Void?

            Here is a screen grab from my mirror;
            20250630_20h22m06s_grim.png

            Thanks again,
            Brian

            S 3 Replies Last reply Jul 1, 2025, 12:45 AM Reply Quote 0
            • S Offline
              sdetweil @briantogo
              last edited by Jul 1, 2025, 12:45 AM

              @briantogo i dont know the exact answer, but using the developers window elements tab you can find the element
              and set it to

              display:none;
              

              in css/custom.css

              see the second link in my signature below for a quick guide on the dev window

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @briantogo
                last edited by Jul 1, 2025, 12:46 AM

                @briantogo or move the header to label with no header

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @briantogo
                  last edited by Jul 2, 2025, 5:03 PM

                  @briantogo did you get it fixed?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    8/8
                    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