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 not showing after MM update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    25 Posts 7 Posters 9.5k 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.
    • 0 Offline
      01ZerosOnes01
      last edited by

      Please help after updating to MagicMirror² version v2.20.0 today the default weather modules are no longer displaying. Does anyone know of the fix for this issue?
      TIA John Janis

      mumblebajM 1 Reply Last reply Reply Quote 0
      • 0 Offline
        01ZerosOnes01 @Jarhead96097
        last edited by

        @Jarhead96097 I was lucky I had a backup of my config. So just a reinstall and copy and paste. Everything is working fine now.
        All the best.

        1 Reply Last reply Reply Quote 1
        • mumblebajM Offline
          mumblebaj Module Developer @01ZerosOnes01
          last edited by

          @01ZerosOnes01 Are there any errors? If you used npm start then see for any errors in the terminal. If you used pm2 then check the pm2 log for errors. The guys would require more information to be able to assist.

          Check out my modules at: https://github.com/mumblebaj?tab=repositories
          Check my blog-post: https://mumblebaj.xyz/
          Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

          0 1 Reply Last reply Reply Quote 0
          • 0 Offline
            01ZerosOnes01
            last edited by

            Here is the entry in the config file
            {
            module: “weather”,
            position: “top_right”,
            config: {
            weatherProvider: “openweathermap”,
            type: “current”,
            location: “Elmhurst”,
            locationID: “4891010”, //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
            apiKey: “a77f2dd7cf1c2e3b156b4d757fb6axxx”
            }
            },
            {
            module: “weather”,
            position: “top_right”,
            header: “Weather Forecast”,
            config: {
            weatherProvider: “openweathermap”,
            type: “forecast”,
            location: “Elmhurst”,
            locationID: “4891010”, //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
            apiKey: “a77f2dd7cf1c2e3b156b4d757fb6axxx”
            }
            },

            mumblebajM 1 Reply Last reply Reply Quote 0
            • mumblebajM Offline
              mumblebaj Module Developer @01ZerosOnes01
              last edited by

              @01ZerosOnes01 See my first reply. Any errors from where you started the mirror?

              Check out my modules at: https://github.com/mumblebaj?tab=repositories
              Check my blog-post: https://mumblebaj.xyz/
              Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

              1 Reply Last reply Reply Quote 0
              • 0 Offline
                01ZerosOnes01 @mumblebaj
                last edited by

                @mumblebaj Hi, thanks for your response there are no errors on the screen when I run npm start. No loading of that module indication but there is space allocated for the weather module on the screen in the top right area. All other modules work. Everything was working before the update to the latest MM.

                mumblebajM 2 Replies Last reply Reply Quote 0
                • mumblebajM Offline
                  mumblebaj Module Developer @01ZerosOnes01
                  last edited by

                  @01ZerosOnes01 I am just upgrading. Just one last check, see in the Developers window if there are any errors there. shit + ctrl + i

                  Check out my modules at: https://github.com/mumblebaj?tab=repositories
                  Check my blog-post: https://mumblebaj.xyz/
                  Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                  0 1 Reply Last reply Reply Quote 0
                  • mumblebajM Offline
                    mumblebaj Module Developer @01ZerosOnes01
                    last edited by

                    @01ZerosOnes01 I think there may be an issue with the api key for OpenWeatherMap.

                    Check out my modules at: https://github.com/mumblebaj?tab=repositories
                    Check my blog-post: https://mumblebaj.xyz/
                    Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                    0 1 Reply Last reply Reply Quote 0
                    • 0 Offline
                      01ZerosOnes01 @mumblebaj
                      last edited by

                      @mumblebaj I xxx out the last few digits

                      1 Reply Last reply Reply Quote 0
                      • 0 Offline
                        01ZerosOnes01 @mumblebaj
                        last edited by

                        @mumblebaj If I enter shit + ctrl + i in the terminal nothing shows up but a dialog box with Cancel and OK

                        mumblebajM 1 Reply Last reply Reply Quote 0
                        • mumblebajM Offline
                          mumblebaj Module Developer @01ZerosOnes01
                          last edited by mumblebaj

                          @01ZerosOnes01 Hi. Not in the terminal from the browser window that displays the mirror. I have created an Openweathermap api key and I get an unauthorized error in the Developers window. I guess I have to wait for it to activate first. Once it is active I will see if I can spot anything.

                          Check out my modules at: https://github.com/mumblebaj?tab=repositories
                          Check my blog-post: https://mumblebaj.xyz/
                          Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                          0 1 Reply Last reply Reply Quote 0
                          • 0 Offline
                            01ZerosOnes01 @mumblebaj
                            last edited by

                            @mumblebaj Okay this is what I get when I run shift + ctrl + i

                            Load script: modules/default/weather/weather.js
                            :8080/modules/default/weather/weather.js:159 Uncaught SyntaxError: Unexpected token .

                            Jarhead96097J S B T 4 Replies Last reply Reply Quote 0
                            • Jarhead96097J Offline
                              Jarhead96097 @01ZerosOnes01
                              last edited by

                              @01ZerosOnes01 said in Default weather module not showing after MM update:

                              @mumblebaj Okay this is what I get when I run shift + ctrl + i

                              Load script: modules/default/weather/weather.js
                              :8080/modules/default/weather/weather.js:159 Uncaught SyntaxError: Unexpected token .

                              I’m receiving the same error after updating to 2.20.0. Here’s the text from the weather.js error line 159: " currentWeather: this.weatherProvider?.currentWeatherObject?.simpleClone() ?? null,(RED X)"

                              Jarhead96097

                              0 1 Reply Last reply Reply Quote 0
                              • 0 Offline
                                01ZerosOnes01 @Jarhead96097
                                last edited by

                                @Jarhead96097 Thanks for your info. Hopefully someone can come up with the fix.

                                mumblebajM 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @01ZerosOnes01
                                  last edited by

                                  @01ZerosOnes01 @Jarhead96097

                                  how did u upgrade,and from what version?

                                  I don’t see any significant code change here this release…

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  Jarhead96097J 1 Reply Last reply Reply Quote 0
                                  • 0 Offline
                                    01ZerosOnes01
                                    last edited by

                                    I keep the mirror updated so I am assuming it was updated from the last version.
                                    I updated by first issuing git stash then git pull && npm install --only=prod --omit=dev
                                    followed by git stash apply

                                    All other default and third party modules work.

                                    Thank for your help it is appreciated.

                                    1 Reply Last reply Reply Quote 0
                                    • mumblebajM Offline
                                      mumblebaj Module Developer @01ZerosOnes01
                                      last edited by

                                      @01ZerosOnes01 I had my API authorized and the module works just fine with your location data. The only change I made was not add quotes around the locationID.

                                      8bdf0392-8d16-473b-a34a-2c8b0a340c47-image.png

                                      locationID: 4891010,

                                      Check out my modules at: https://github.com/mumblebaj?tab=repositories
                                      Check my blog-post: https://mumblebaj.xyz/
                                      Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                                      Jarhead96097J 1 Reply Last reply Reply Quote 0
                                      • Jarhead96097J Offline
                                        Jarhead96097 @sdetweil
                                        last edited by

                                        @sdetweil I also upgraded from 2.19.0, which had been upgraded from 2.18.0. No problems before today.

                                        Jarhead96097

                                        1 Reply Last reply Reply Quote 0
                                        • Jarhead96097J Offline
                                          Jarhead96097 @mumblebaj
                                          last edited by

                                          @mumblebaj Well, unfortunately, removing the quotes around locationID did not resolve the issue on my configuration. I still receive “Uncaught SyntaxError: Unexpected token” in weather.js:159.

                                          Jarhead96097

                                          1 Reply Last reply Reply Quote 0
                                          • 0 Offline
                                            01ZerosOnes01
                                            last edited by

                                            Raspberry Pi 4 2GB
                                            Well this is what i have done so far.
                                            Removed SD card with broken default weather module.
                                            With new SD card installed fresh 64bit Pi OS
                                            Fresh manual install of MagicMirror
                                            “name”: “magicmirror”,
                                            “version”: “2.20.0”,
                                            “description”: “The open source modular smart mirror platform.”,
                                            “main”: “js/electron.js”,

                                            Entered my openweathermap credentials
                                            and
                                            Walla! the weather module works.
                                            I have no idea why the weather module broke after the MagicMirror update. I will be following this thread to see if it is a problem or it was just a fluke.
                                            Good luck and thanks to all that contribute.
                                            Now I just have to reload my third party modules and customizations.

                                            Jarhead96097J 1 Reply Last reply Reply Quote 0
                                            • Jarhead96097J Offline
                                              Jarhead96097 @01ZerosOnes01
                                              last edited by

                                              @01ZerosOnes01 @sdetweil Glad to hear you’re up and running on a fresh install… I’m hoping to avoid having to rebuild mine. Any other thoughts?

                                              And thanks for your time in advance!

                                              Jarhead96097

                                              S 0 2 Replies 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
                                              • 2
                                              • 1 / 2
                                              • 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