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

Standar "weather" Module: Doesn't keep header setting?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
14 Posts 2 Posters 881 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.
  • R Offline
    rkorell
    last edited by Feb 1, 2025, 7:23 PM

    Good evening team,
    as I wrote in another post I’m playing around with the weather (standard) module and today I finally was a bit successful and able to change the default icons in a way I like.
    Works as aspected and different icons in different sizes are shown appropriately.

    But:
    after a while the header of both of the module-instances (I am using two instances of the module- one for current, one for forecast) switching back to default:

    CalandarWrongTitle.jpg

    Only a restart of the mirror corrects this and the header appears as wanted (the header of second instance - forecast - is empty):

    CalandarTitleAfterRestart.jpg .

    config.js for thes modules is as follows:

    // Wetter aktuell für xxx
    
    		{
    			module: "weather",
    			disabled: false,
    			position: "top_right", 
                header: "CityName",
                classes: "weather_current", 
    			config: {
    				weatherProvider: "openmeteo",
    				type: "current",
    				lat: x0.24127,
    				lon: 0x.61174403,
    				showSun: false,
    				debug: true,
    				debugging: true,
    
    			}
    		},
    
    // Wettervorherssage - 
    
    		{
    			module: "weather",
    			position: "top_right",
    			disabled: false,
    			//header: "Vorhersage",
    			classes: "weather_forecast",
    			config: {
    				weatherProvider: "openmeteo",
    				type: "forecast",
    				lat: x0.24127,
    				lon: xx.6174403,
    				debug: true,
    				debugging: true,				
    
    			}
    		},
    
    
    

    Any idea how to solve this?
    Thanks a LOT

    Regards,
    Ralf

    R 1 Reply Last reply Feb 1, 2025, 7:26 PM Reply Quote 0
    • R Offline
      rkorell @rkorell
      last edited by Feb 1, 2025, 7:26 PM

      Addition: I ran into “sync” problems in another module and the “debug” + “debugging” option has helped to resolve this - that’s the reason for being present in this config as well - to give it a try…

      R S 2 Replies Last reply Feb 1, 2025, 7:28 PM Reply Quote 0
      • R Offline
        rkorell @rkorell
        last edited by Feb 1, 2025, 7:28 PM

        After having an exact look on this - this happens immediatly if MMM-PIR switches off the monitor and first “wake-up” resets the headers.

        • So debug/debugging option doesn’t help here
        R 1 Reply Last reply Feb 1, 2025, 8:09 PM Reply Quote 0
        • R Offline
          rkorell @rkorell
          last edited by Feb 1, 2025, 8:09 PM

          Answer yourself is a nice sport :-)

          • sometimes structured telling hepls thinking - or in other words:
            How I can I know what I mean before I’ve heard what I’ve said …

          As I read my own words - I’ve seen that it might be a good idea to test, if the header must be set indentical in both instances…

          • Leaving them both commented - so “blank” doesn’t work.
            Setting both to something “not null” at least survives some PIR-switch-offs …

          Keep you posted.

          • nevertheless with two headers it do not look nice so I’m still looking for a hint, how to get this done properly …
            Thanks so far.

          Ralf

          R 2 Replies Last reply Feb 1, 2025, 10:05 PM Reply Quote 0
          • R Offline
            rkorell @rkorell
            last edited by Feb 1, 2025, 10:05 PM

            Additional question as CSS rookie:
            I’ve tried to identify the object of the header.
            KlassenBeispiel.png

            how can I address this correctly?
            Sorry, I’m not able to figure this out.

            My best guess is

            .weather_forecast .header {
              border-bottom-width: 0px;
              color: black;
              font-size: 0px;
            }
            
            
            

            but this doesn’t work.
            How do I make this right?

            Thanks!
            Ralf

            S 1 Reply Last reply Feb 1, 2025, 10:30 PM Reply Quote 0
            • S Offline
              sdetweil @rkorell
              last edited by Feb 1, 2025, 10:30 PM

              @rkorell .module_header

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              R 1 Reply Last reply Feb 2, 2025, 10:33 AM Reply Quote 0
              • R Offline
                rkorell @sdetweil
                last edited by Feb 2, 2025, 10:33 AM

                @sdetweil thanks.
                But this seems not to work.

                .weather_forecast .module_header {
                  border-bottom-width: 0px;
                  color: black;
                  font-size: 0px;
                }
                
                

                changes at least not, what I would like to happen: not visible regardless of content, so text color black and line below not visible, as well - line thickness (border-bottom-widht) 0 …
                What I’m doing wrong?
                Am I on the wrong properties?
                Thanks again,
                Ralf

                S 1 Reply Last reply Feb 2, 2025, 11:32 AM Reply Quote 0
                • R Offline
                  rkorell @rkorell
                  last edited by Feb 2, 2025, 10:41 AM

                  No, setting both headers to a text doesn’t help.
                  Any suggestion where THIS error comes from???

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @rkorell
                    last edited by Feb 2, 2025, 11:32 AM

                    @rkorell module header not displayed?

                    .weather_forecast  .module_header {
                        display: none;
                    }
                    

                    Before I was giving you the classname of the header element

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    R 1 Reply Last reply Feb 2, 2025, 2:15 PM Reply Quote 0
                    • S Offline
                      sdetweil @rkorell
                      last edited by Feb 2, 2025, 12:23 PM

                      @rkorell the debugging:true was my choice to provide info during execution cycle vs startup.

                      It’s not relevant for other modules

                      There is an option in weather, by default it will append the location(from the api data) to the header.
                      You can turn that off

                      appendLocationToHeader:false,
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      R 1 Reply Last reply Feb 2, 2025, 2:18 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        2/14
                        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