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.

    Extra Text in Weather Module Header

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 2 Posters 747 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.
    • E Offline
      EHelberg88
      last edited by

      I am very much new to Magic Mirror, been running for about 2 weeks. I have it mostly setup the way I want, but there is on thing that I have not been able to figure out. On the weather module it displays AMERICA/DENVER to the right of the header I have set and can’t see to figure out how to make that go away.

      8bd979fa-e90d-43c2-b1eb-97059519785f-image.png

      Below is the code for the weather modules. If anyone has any assistance it would be great.

      5bf49720-c68b-4e5f-9936-fa3b1da6471d-image.png

      S 1 Reply Last reply Reply Quote 1
      • S Offline
        sdetweil @EHelberg88
        last edited by

        @EHelberg88 no. you have it set to ‘false’, not false

        quotes make it a string, which is always true

        true, false and numbers do not use quotes

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        E 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @EHelberg88
          last edited by

          @EHelberg88 in the documentation for the module is a setting to display (or not) the location

          true by default

          Screenshot_20221011-075810_Chrome.jpg

          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
            EHelberg88 @sdetweil
            last edited by

            @sdetweil the appendLocationNameToHeader is set to false in my code as shown above.

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

              @EHelberg88 no. you have it set to ‘false’, not false

              quotes make it a string, which is always true

              true, false and numbers do not use quotes

              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
                EHelberg88 @sdetweil
                last edited by

                @sdetweil I will also have to go through and remove the quotes from the other lines, but the other lines I work with the quotes, which is why I was confused. Removal of the quotes worked and the location disappears. Thank you so much!

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

                  @EHelberg88 ‘true’ is a string which evaluates to true… boolean 1

                  ‘false’ is also a string which evaluates to true, boolean 1

                  false, no quotes, is a boolean , 0

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • 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