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.

    Version 2.30.0 weather module, stuck loading, worked fine before upgrade

    Scheduled Pinned Locked Moved Troubleshooting
    52 Posts 6 Posters 20.1k Views 7 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.
    • S Offline
      sdetweil @Richard238
      last edited by sdetweil

      @Richard238 again show the whole config, xxx out the api key

      Start w
      position
      and config
      provider
      type ( default is current)
      apikey
      lat
      lon

      the 3.0 apikey requires a credit card backing, right?

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

        @sdetweil

        		{
        			module: 'weather',
        			header: 'Current zzzzzzzzzzzzz  weather: ',			
        			position: 'top_right',
        			config: {
        				weatherProvider: "openweathermap",
        				lat: 111111111111111, 
        				lon: 1111111111111111111111,
        				apiKey: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        				type: 'current',
        				units: 'config.units'
        				//location: 'zzzzzzzzzzzzzzz',
        		}
        		},
        
        

        I must have had that API key for aeons, don’t ever remember it having a c/card behind it.
        Maybe it’s out-of-date.

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

          @Richard238 yes they told us the old free api was being terminated. only the new api exists, so we changed the defaults

          but other users have reported the 2.5 apikey still works
          see the 1st post on this topic

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S sdetweil referenced this topic on
          • S sdetweil referenced this topic on
          • R Offline
            Rberry91 @sdetweil
            last edited by

            @sdetweil hi Sam,

            I have added a credit card and added the extra codes from the article and it doesn’t load.20250308_055711.jpg

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

              @Rberry91 if you have the 3.0 apikey you dont add any extra parms

              just type, apikey, lat and lon

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

                @sdetweil
                It still says invalid date

                20250309_080117.jpg 20250309_080401.jpg

                Sorry so many questions

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

                  @Rberry91 open the developers window, ctrl-shift-i,
                  select the console tab,
                  and enter weath in the filter field

                  do you see errors? like 401, 403

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

                    @sdetweil
                    Hi yes error 40120250309_110348.jpg

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

                      @Rberry91 401 means the apikey is invalid

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

                        @sdetweil
                        Hi Sam,

                        So I got it to work however the header is Australia/Brisbane, which is not correct. But the weather details are correct, how do I change the name of the header. I have added location and locationID

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

                          @Rberry91 v3 does not return the right location,
                          location/id are not used in v3, only lat/lon

                          use the module header property

                          module:…
                          header:“…”

                          the set the weather config option

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

                            @sdetweil
                            Hi Sam,

                            Now I have an message to update the MMM-GooglePhotos module. How do I do that without causing problems like before. I did try your code and it didn’t seem to work but I am most likely doing something incorrect

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

                              @Rberry91 didnt try my code? i do not supply anything that will update modules.

                              my upgrade script is only for base MagicMirror

                              every module upgrade is the same

                              cd ~/MagicMirror/modules/modulename
                              git pull
                              xxx see the module doc on what to do after
                              sometimes you need an npm install, sometimes not
                              

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

                                @sdetweil

                                Hi again,
                                The MMM- GoohlePhotos was not updating so I re installed and am know getting a error of missing creditionals please help20250313_050643.jpg

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

                                  @Rberry91 now you have to follow the module instructions to get authorization again

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

                                    @sdetweil
                                    I reverted to the older version and I have tried updating using your command and other ones and still doesn’t update tell me that “pulling without specifying how to reconcile divergent branches is etc”

                                    The other problem I am having is the weather, the forecast works but the current Weather doesn’t and they are the same code.20250313_055015.jpg 20250313_055058.jpg

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

                                      @Rberry91 divergent branches sounds like you have both modules trying to merge to the same folder

                                      delete then git clone again
                                      the nan says the apikey is wrong

                                      and you have a typo, MagicMirror is case sensitive

                                      IMG_0841.png

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0
                                      • butchkemperB Offline
                                        butchkemper
                                        last edited by

                                        The configuration parameters I use are:

                                        module "MMM-OpenWeatherForecase"
                                        latitude and NOT lat
                                        longitude and NOT lon
                                        apikey and NOT apiKey   <----  Notice the "K"
                                        

                                        Some MM configuration keywords have abbreviations but not all. The module README file gives the values for the keywords.

                                        Also, since your apikey has been revealed to the world, you should cancel the posted key and generate a new key. Always keep the apikey secret.

                                        Butch

                                        Resistance is not Futile!
                                        It is voltage divided by current.

                                        1 Reply Last reply Reply Quote 0
                                        • butchkemperB Offline
                                          butchkemper
                                          last edited by

                                          @sdetweil I noticed this discretion between the Weather module documentation:

                                          • The “Weather” documentation has “apiKey” - large case “K”,
                                          • The “MMM-OpenWeatherForecast” documentation has “apikey” - small case “k”.

                                          Butch

                                          Resistance is not Futile!
                                          It is voltage divided by current.

                                          S 1 Reply Last reply Reply Quote 0
                                          • S sdetweil referenced this topic on
                                          • S Offline
                                            sdetweil @butchkemper
                                            last edited by sdetweil

                                            @butchkemper modules can go anything they want
                                            what is used internally can be anything required

                                            I looked at the doc for the default weather module before posting above. as there are two instances, one works the other doesn’t. apikey is the issue

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            1 Reply Last reply Reply Quote 0
                                            • S sdetweil marked this topic as a regular topic on
                                            • S sdetweil referenced this topic on
                                            • S sdetweil referenced this topic on

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