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.

    Current and Forecast Weather Animated Icons

    Scheduled Pinned Locked Moved Solved Troubleshooting
    8 Posts 2 Posters 901 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 Offline
      sdetweil @En-TACT
      last edited by sdetweil

      @En-TACT under each of those sections up at the top which has region is where the modules are located in the web content, the DOM. So if you expand those you should be able to find where those modules are that are that you’re talking about.

      an easier way is to use the pointer in the top left corner of the developer’s window elements tab and click that and then navigate over the content of the module that you’re interested in, and that part of the DOM will be expanded on the right hand side and then you’ll see the module entry with its ID

      In a CSS element, everything to the left of the open brace {, is called the selector clause.
      it’s selects the elements that everything inside the braces will apply to

      I use this cheat sheet to help me remember all the different options.

      https://www.w3schools.com/cssref/css_selectors.php

      and you can combine the statement elements to make very focused selections of content.
      One thing to remember is that the selector clause will ALWAYS select ALL elements in the DOM that match. You might want just one, but if it finds multiple it will select multiple.
      So you may have to be very specific about how you find things anyhow.

      a quick beginner on the selector clause:
      if you have a name with a dot in the front that means that’s a class name
      if you have a name with a pound sign in front that means it’s an ID
      if you have a name with nothing in front that means it’s an element name like a div or p for a paragraph, or li

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      E 2 Replies Last reply Reply Quote 0
      • E Offline
        En-TACT @sdetweil
        last edited by

        @sdetweil I found the div id for the current weather, module_4_weather. I’ll look into using that to change the icon this evening. Thanks.

        1 Reply Last reply Reply Quote 1
        • E Offline
          En-TACT @sdetweil
          last edited by

          @sdetweil got the animated weather icons working for current & forecast modules - thank you!

          S 1 Reply Last reply Reply Quote 1
          • S Offline
            sdetweil @En-TACT
            last edited by sdetweil

            @En-TACT awesome!!! thanks for the feedback,
            one thing to note on using the module ID , if you move any modules around (in config.js, not on screen w position) or add/delete near the top, the IDs WILL change… so if things stop working, consider looking here too…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            E 1 Reply Last reply Reply Quote 0
            • E Offline
              En-TACT @sdetweil
              last edited by

              @sdetweil ahh that makes sense … I’ll keep that in mind!

              1 Reply Last reply Reply Quote 0
              • S sdetweil referenced this topic on
              • 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