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

      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 Reply Quote 0
      • S Offline
        sdetweil @briantogo
        last edited by sdetweil

        @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

          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 Reply Quote 0
          • S Offline
            sdetweil @briantogo
            last edited by sdetweil

            @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

              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 Reply Quote 0
              • S Offline
                sdetweil @briantogo
                last edited by

                @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

                  @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

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