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 2.8k 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

      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 Reply Quote 0
      • R Offline
        rkorell @rkorell
        last edited by

        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 Reply Quote 0
        • R Offline
          rkorell @rkorell
          last edited by

          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 Reply Quote 0
          • R Offline
            rkorell @rkorell
            last edited by

            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 Reply Quote 0
            • R Offline
              rkorell @rkorell
              last edited by

              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 Reply Quote 0
              • S Do not disturb
                sdetweil @rkorell
                last edited by

                @rkorell .module_header

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  rkorell @sdetweil
                  last edited by

                  @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 Reply Quote 0
                  • R Offline
                    rkorell @rkorell
                    last edited by

                    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 Do not disturb
                      sdetweil @rkorell
                      last edited by

                      @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 Reply Quote 0
                      • S Do not disturb
                        sdetweil @rkorell
                        last edited by

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

                          module header not displayed?

                          .weather_forecast  .module_header {
                              display: none;
                          }
                          

                          sorry doesn’t work, either :-(
                          I’ve even copied your phrase to avoid typos - nothing happens.
                          Sounds feasible and plausible, but don’t do the job…
                          Ive tried

                          .weather  .module_header {
                              display: none;
                          }
                          

                          Didn’t work, too…

                          really strange…
                          Thanks for any additional idea…

                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            rkorell @sdetweil
                            last edited by

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

                            It’s not relevant for other modules

                            OK - Just a trial :-) - will delete, especially as no debug info is sent by module

                            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,
                            

                            This is an interesting addional hint, thanks.

                            The REAL problem/question is: Why do the module override my settings?
                            Reagrds,
                            Ralf

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

                              @rkorell weather is a complex mix of properties
                              I’ve never seen anyone complain about headers.

                              That property is the only one I know that manipulates the header

                              Also, weather is all in browser, so any debug will be shown there unless you use MMM-Logging or some such to redirect them to the startup log

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              R 1 Reply Last reply Reply Quote 0
                              • R Offline
                                rkorell @sdetweil
                                last edited by

                                @sdetweil OK, tanks anyway.
                                It seems there is something special in my mirror.
                                Not that magic but unfortunate…

                                1 Reply Last reply Reply Quote 0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                • 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