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

Changing icons of the modules Current Weather and Weather Forecast

Scheduled Pinned Locked Moved Development
301 Posts 30 Posters 1.2m Views 33 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.
  • M Offline
    Manu85 @sdetweil
    last edited by Jan 17, 2024, 5:31 PM

    @sdetweil my js config says that!

    fig = {
    	address: "localhost", // Address to listen on, can be:
    	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
    	                      // - another specific IPv4/6 to listen on a specific interface
    	                      // - "", "0.0.0.0", "::" to listen on any interface
    	                      // Default, when address config is left out, is "localhost"
    	port: 8080,
    	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
    	                                                       // or add a specific IPv4 of 192.168.1.5 :
    	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
    	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
    	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
    
    S 1 Reply Last reply Jan 17, 2024, 5:39 PM Reply Quote 0
    • S Away
      sdetweil @Manu85
      last edited by Jan 17, 2024, 5:39 PM

      @Manu85 yes, that means only apps INSIDE the same machine can connect

      change

      address:"localhost",  // means only inside same machine
      

      to

      address:"0.0.0.0",  // alows any device on any network this machine is connected to to connect
      

      then also the whitelist

      comment out the current line

      // ipWhitelist: [ 127.....
      

      and add a new line

         ipWhitelist:[],  // don't filter any connecting client addresses
      

      then restart mm…
      if you know the ip address of the pi (and u had to use it for vnc)
      then open a tab on you pc browser and do

      http://MM_ip_address????:8080
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 2 Replies Last reply Jan 17, 2024, 5:41 PM Reply Quote 0
      • M Offline
        Manu85 @sdetweil
        last edited by Jan 17, 2024, 5:41 PM

        @sdetweil ok it’s done and it’s actually much better

        1 Reply Last reply Reply Quote 1
        • M Offline
          Manu85 @sdetweil
          last edited by Jan 17, 2024, 5:49 PM

          @sdetweil by doing ctrl shift i my window opened like this

          a17db184-a179-47b4-a584-27f667f11577-image.png

          S 1 Reply Last reply Jan 17, 2024, 5:53 PM Reply Quote 0
          • S Away
            sdetweil @Manu85
            last edited by sdetweil Jan 17, 2024, 5:53 PM Jan 17, 2024, 5:53 PM

            @Manu85 yes, it just has the developers window docked on the bottom…

            helps when trying to do layout… nothing changes

            if you want it docked on the right, use the … menu top right of the dev window and change it…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Jan 17, 2024, 5:58 PM Reply Quote 0
            • M Offline
              Manu85 @sdetweil
              last edited by Jan 17, 2024, 5:58 PM

              @sdetweil
              when I position myself on a weather icon, it gives this, I cannot choose several I have a “grid” which follows the mouse and which changes when I move

              25dba6e0-b76b-4971-85bf-1db193f140d1-image.png

              S 1 Reply Last reply Jan 17, 2024, 6:03 PM Reply Quote 0
              • S Away
                sdetweil @Manu85
                last edited by Jan 17, 2024, 6:03 PM

                @Manu85 yes, you have to drag the windows around/resize them in the developers window

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Jan 17, 2024, 6:17 PM Reply Quote 0
                • M Offline
                  Manu85 @sdetweil
                  last edited by Jan 17, 2024, 6:17 PM

                  @sdetweil like that ?

                  54d16384-db6b-4456-ac6f-8e41a3e2e114-image.png

                  S 1 Reply Last reply Jan 17, 2024, 6:24 PM Reply Quote 0
                  • S Away
                    sdetweil @Manu85
                    last edited by Jan 17, 2024, 6:24 PM

                    @Manu85 yes, very good…

                    now, up two lines is the module entry in the content,
                    and you can see that the extra class name has been added
                    (in pink)
                    mm2.png

                    so, in custom.css

                    .current  xxx
                    

                    will target (select) content in that element tree

                    if you move down to one of the spans of the content
                    in green, and expand that , you will see the icon line,
                    if you select that in the next pane to the right you will see where the info comes from
                    mm2.png

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    M 1 Reply Last reply Jan 17, 2024, 6:43 PM Reply Quote 0
                    • M Offline
                      Manu85 @sdetweil
                      last edited by Jan 17, 2024, 6:43 PM

                      @sdetweil
                      I do what you tell me, but I must admit that I’m lost :-) I actually saw the “current” in the lines so that means that the icon is in the custom css, it’s that right? if so why can’t I manage it? you are too strong

                      cea5c83f-c7c4-4d90-9051-606f3df0a6dd-image.png

                      S 1 Reply Last reply Jan 17, 2024, 6:50 PM Reply Quote 0
                      • 1
                      • 2
                      • 9
                      • 10
                      • 11
                      • 12
                      • 13
                      • 30
                      • 31
                      • 11 / 31
                      11 / 31
                      • First post
                        103/301
                        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