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.

    2.29.0 Weather Module w/api v3.0 works, sort of…

    Scheduled Pinned Locked Moved Solved Troubleshooting
    25 Posts 5 Posters 4.6k Views 5 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
      reilley @sdetweil
      last edited by

      @sdetweil - sure, I’d be happy to force my header if that’s possible. So for example, with forecast I would want it to say:

      Forecast - Canton, GA

      Or similar, of course. I could test it if you could let me know where to insert that line of code.

      S 1 Reply Last reply Reply Quote 0
      • R Offline
        reilley @HeikoGr
        last edited by

        @HeikoGr - sorry, I didn’t copy/paste from the actual editor. I typed all that in and made a few errors! Sorry for the goose chase!

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

          @reilley header is a property beside module
          IMG_0382.png

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • H Offline
            HeikoGr
            last edited by

            I just tested it. You can pass a header by yourself but need to add

            appendLocationNameToHeader: false,
            

            Otherwise it will add the timezone again.

            
             
                    {
                        disabled: false,
                        module: "weather",
                        header: "YOURCITY",
                        position: "top_right",
                        config:
                        {
                            // See 'Configuration options' for more information.
                            weatherProvider: 'openweathermap',
                            appendLocationNameToHeader: false,
                            weatherEndpoint: '/onecall',
                            apiKey: 'API',
                            apiVersion: '3.0',
                            lat: '51.5',
                            lon: '9.52',
                            type: 'forecast',
                            colored: true,
                            fade: false,
                            maxNumberOfDays: 3,
                            degreeLabel: 'true',
                            showWindDirectionAsArrow: 'true',
                            decimalSymbol: ','
                        }
                    },
            
            
            R 1 Reply Last reply Reply Quote 1
            • R Offline
              reilley @HeikoGr
              last edited by

              @HeikoGr - lol, adjusted my headers and saw that the timezone was concatenated to the header. Snapped a photo to post and saw your comment. That fixed it!!! Thank you and Sam both!!!

              P 1 Reply Last reply Reply Quote 1
              • P Offline
                Peter @reilley
                last edited by Peter

                @reilley here it works also!
                Thank you, everyone who helped.
                My MM is up and running great!
                Peter

                1 Reply Last reply Reply Quote 1
                • S sdetweil referenced this topic on
                • 1
                • 2
                • 3
                • 2 / 3
                • 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