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 temp font size

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    6 Posts 2 Posters 187 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.
    • S Do not disturb
      sdetweil @briantogo
      last edited by

      @briantogo best thing in the case of the reset is to make the refresh rate very long while you are debugging

      Remember you use the pointer next to the elements tab label.
      Then you use that pointer to point to the content you want to manipulate

      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. How do I make refresh rate very long?

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @briantogo
          last edited by

          @briantogo change the refreshInterval property

          See the module doc

          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

            I was able to change the refresh rate on the module Sam, so I could drill down into the developers window . It looks like the temperature font is inherited from the main.css file, so I added the following to the custom.css file;

            .MMM-temp-ds18b20 .small.dimmed.w1.w1-thermometer (
            :root {
            –color-text: #999;
            –color-text-dimmed: #666;
            –color-text-bright: #fff;
            –color-background: #000;
            –font-primary: “Roboto Condensed”;
            –font-secondary: “Roboto”;
            –font-size: 80px;
            –font-size-xsmall: 0.75rem;
            –font-size-small: 1rem;
            –font-size-medium: 1.5rem;
            –font-size-large: 3.25rem;
            –font-size-xlarge: 3.75rem;
            –gap-body-top: 60px;
            –gap-body-right: 60px;
            –gap-body-bottom: 60px;
            –gap-body-left: 60px;
            –gap-modules: 30px;

            Font is still too small. Suggestions?
            Thanks,
            Brian
            }

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @briantogo
              last edited by sdetweil

              @briantogo what style is it that was inherited?

              Only need to fix that one

              I see
              .MMM-temp-ds18b20 .small.dimmed.w1.w1-thermometer

              now, the things with . are classes…

              and the css rules are if the things have NO spaces between them, then ONLY a SPECIFIC element with ALL those thing specified together will be selected…

              so, small, dimmed, w1 w1-therometer ALL specified as part of class=“…” on the SAME SINGLE element

              I THINK what you need is to override small
              looking at the code

              tempCell.innerHTML = '<i class="' + this.config.iconSize + ' dimmed wi wi-thermometer"></i>       ';
              

              so I think

              .MMM-temp-ds18b20  .small .wi-thermometer {
                 fontsize: 2em;
              }
              

              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