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.

    Default weather module - only showing one location

    Scheduled Pinned Locked Moved Troubleshooting
    11 Posts 2 Posters 375 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.
    • A Offline
      Ausnet
      last edited by sdetweil

      Newb.

      Have my MagicMirror2 up and running with a few different modules. I have local weather working with openmeteo. Trying to add a second location (bottom_right) but it stays stuck on “Loading…”.

      I set up an openweathermap.org API key but I don’t get any weather data using the openweathermap provider for local or remote locations

      Should I be able to see multiple locations?

      Current config below. I’ve also tried a copy of the openmeteo modules to get the Brisbane weather but it did not work.

      I searched for similar issues but couldn’t find anything newer than 2022 and the advice on that post didn’t help.


                      {
                              module: "weather",
                              position: "top_left",
                              header: "Current Weather",
                              config: {
                                      weatherProvider: "openmeteo",
                                      type: "current",
                                      lat: [myLat],
                                      lon: [myLong],
                                      showPrecipitationAmount: true,
                                      showPreciptitationProbability: true,
                                      showUVIndex: true,
                                      degreeLabel: true,
                                      colored: true,
                              }
                      },
                      {
                              module: "weather",
                              position: "top_left",
                              header: "Forecast",
                              config: {
                                      weatherProvider: "openmeteo",
                                      type: "forecast",
                                      lat: [myLat],
                                      lon: [myLong],
                                      showUVIndex: true,
                                      fadePoint: 0.33,
                                      maxNumberOfDays: 6,
                                      degreeLabel: true,
                                      colored: true,
                              }
                      },
      
                      {
                              module: "weather",
                              classes: "brisWeather",
                              position: "bottom_right",
                              header: "Current Weather",
                              config: {
                                      weatherProvider: "openweathermap",
                                      type: "current",
                                      location: "Brisbane, AU",
                                      locationID: "2174003",
                                      showPrecipitationAmount: true,
                                      showPreciptitationProbability: true,
                                      degreeLabel: true,
                                      colored: true,
                                      units: "metric",
                                      apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                              }
                      },
                      {
                              module: "weather",
                              classes: "brisWeather",
                              position: "bottom_right",
                              header: "Forecast",
                              config: {
                                      weatherProvider: "openweathermap",
                                      type: "forecast",
                                      location: "Brisbane, AU",
                                      locationID: "2174003",
                                      showUVIndex: true,
                                      fadePoint: 0.33,
                                      maxNumberOfDays: 5,
                                      degreeLabel: true,
                                      colored: true,
                                      units: "metric",
                                      apiKey: "xxxxxxxxxxxxxxxxxxxxxxxx",
                              }
                      },
      
      S 2 Replies Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Ausnet
        last edited by

        @Ausnet OpenWeathermap new v3 apikey uses
        lat/lon instead of location

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @Ausnet are you using MMM-Pages? (classes: properties)
          the openmeteo don’t have classes: and wouldn’t be displayed by default on pages

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • A Offline
            Ausnet
            last edited by

            Ok - so I tried the following - still said “Loading…”

            Replaced it with the same location as my local area and it came up.

            Restored it to the Australian location and now it’s working :/

            The only thing left is that it’s still displaying in Fahrenheit for Australia even though units are set to metric for those modules.

                            {
                                    module: "weather",
                                    position: "bottom_right",
                                    header: "Current Weather",
                                    config: {
                                            weatherProvider: "openmeteo",
                                            type: "current",
                                            lat: -27.24796,
                                            lon: 153.00886,
                                            showPrecipitationAmount: true,
                                            showPreciptitationProbability: true,
                                            degreeLabel: true,
                                            colored: true,
                                            units: "metric",
                                    }
                            },
                            {
                                    module: "weather",
                                    position: "bottom_right",
                                    header: "Forecast",
                                    config: {
                                            weatherProvider: "openmeteo",
                                            type: "forecast",
                                            lat: -27.24796,
                                            lon: 153.00886,
                                            showUVIndex: true,
                                            fadePoint: 0.33,
                                            maxNumberOfDays: 7,
                                            degreeLabel: true,
                                            colored: true,
                                            units: "metric",
                                    }
                            },
            
            

            b0dcb7fc-f11d-4aab-b451-55c4bd9a5a79-image.png

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

              @Ausnet what is units: above the module list set to?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                Ausnet @sdetweil
                last edited by

                @sdetweil before the modules it’s set to imperial. Do the settings in the inner modules not override the outer setting?

                        timeFormat: 12,
                        showperiod: true,
                        units: "imperial",
                
                        modules: [
                
                
                S 2 Replies Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @Ausnet
                  last edited by sdetweil

                  @Ausnet I thought so, but this module looks at the global value for some reason

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @Ausnet can you tell me what version of MM you are running

                    grep version ~/MagicMirror/package.json
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      also set tempUnits:“metric”

                      from the doc

                      tempUnits

                      What units to use for temperature.

                      If not specified, the module uses the units value from config.js. <-----

                      Possible values: config.units = Specified by config.js, metric = Celsius, imperial = Fahrenheit

                      Default value: config.units <-----

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        Ausnet @sdetweil
                        last edited by

                        @sdetweil said in Default weather module - only showing one location:

                        grep version ~/MagicMirror/package.json

                        It’s showing 2.34.0

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          Ausnet @sdetweil
                          last edited by

                          @sdetweil That did it. Thanks!

                          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