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.

    Weather, how to remove GB-ENG from the header?

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 2 Posters 262 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
      Richard238
      last edited by

      Using openmeteo, weather display, header line commented out.
      MM shows “city, GB-ENG”

      How do I remove, disable the GB-ENG bit?

      S 1 Reply Last reply
      Reply Quote 0
      • R
        Richard238 @sdetweil
        last edited by

        @sdetweil

        The comma, it’s always the comma. Thank you.

        1 Reply Last reply
        Reply Quote 0
        • S
          sdetweil @Richard238
          last edited by

          @Richard238 there is a weather module property

          appendLocationToHeader

          Set it to false,

          Check the spelling in the module documentation

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil said:

            appendLocationToHeader

            			module: "weather",
            			---->appendLocationNameToHeader: false
            			//header: 'Current My_City weather: ',	
            			position: "top_right",
            			config: {
            				weatherProvider: "openmeteo",
            				----> appendLocationNameToHeader: false
            				type: "current",
            				lat: 51.12345
            				lon: -0.12345
            			}
            

            Spelling shown in docs is appendLocationNameToHeader
            Neither of the two position above work, mirror fails to load.

            S 1 Reply Last reply
            Reply Quote 0
            • S
              sdetweil @Richard238
              last edited by

              @Richard238 parameters TO module always go inside the config:{} section
              parameters to MagicMirror runtime are outside the config section

                 module
                 position
                 header
                 ... 
              

              and, like always, javascript demands a trailing comma on lines when there are more lines following… (comma means more to follow)

              config: {
              				weatherProvider: "openmeteo",
              				appendLocationNameToHeader: false, //<---add comma
              				type: "current",
              				lat: 51.12345 //<--- missing comma (there is more to follow this line)
              				lon: -0.12345
              			}
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil

                The comma, it’s always the comma. Thank you.

                1 Reply Last reply
                Reply Quote 0
                • S sdetweil has marked this topic as solved

                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