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.

    Problems With Weather

    Scheduled Pinned Locked Moved Troubleshooting
    41 Posts 6 Posters 15.5k Views 6 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @brendan_c23
      last edited by

      @brendan_c23

      I don’t use the default weather modules but I loaded up the weather forecast module and it errors, stating:

      Failed to load resource: the server responded with a status of 401 (Unauthorized)
      weatherforecast.js:261 weatherforecast: Your AppID does not support long term forecasts.
      

      So, it looks like the appKey from open weather is the problem, or, the module is asking for data that is not available to holders of the free api.

      Run your mirror by using npm start dev and see if that is the error you are getting

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 1
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @brendan_c23
        last edited by

        @brendan_c23

        Correction, the module loads eventually but with only one day of weather, today.

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 1
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @brendan_c23
          last edited by

          @brendan_c23

          This is with your config entry:

          Screenshot from 2021-02-26 19-42-44.png

          Create a working config
          How to add modules

          B 1 Reply Last reply Reply Quote 1
          • B Offline
            brendan_c23 @Mykle1
            last edited by

            @mykle1 Hourly forecast: unavailable
            Daily forecast: unavailable
            Calls per minute: 60
            3 hour forecast: 5 days
            It seems these are limits for the free API key I have now. Is there a way to tweak the code so it would be compatible? I tried the npm start dev, and got a couple errors popping up, will take picture and post on here

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              brendan_c23 @brendan_c23
              last edited by

              @brendan_c23 IMG_3978 (1).jpg

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                brendan_c23 @brendan_c23
                last edited by

                @brendan_c23 Current Weather

                Minute Forecast 1 hour*

                Hourly Forecast 2 days*

                Daily Forecast 7 days*

                National Weather Alerts*

                Historical weather 5 days*

                Climatic Forecast 30 days
                Actually, 7 day forecast should be available with the free API from openweathermap.org

                Mykle1M 1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @brendan_c23
                  last edited by Mykle1

                  @brendan_c23

                  You trying to run the mirror from the wrong folder. ENOENT error.

                  Start the mirror from within the MagicMirror directory

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    brendan_c23
                    last edited by

                    @mykle1 I am sorry Im a noob. How do I run the mirror from within the directory? cd MagicMirror?

                    Mykle1M 1 Reply Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @brendan_c23
                      last edited by

                      @brendan_c23 said in Problems With Weather:

                      cd MagicMirror?

                      yes sir

                      Create a working config
                      How to add modules

                      B 2 Replies Last reply Reply Quote 0
                      • B Offline
                        brendan_c23 @Mykle1
                        last edited by

                        @mykle1 IMG_3980.jpg

                        Mykle1M 1 Reply Last reply Reply Quote 0
                        • Mykle1M Offline
                          Mykle1 Project Sponsor Module Developer @brendan_c23
                          last edited by

                          @brendan_c23

                          Well, it says right in the error message that your appid is not set. Hmmm

                          Create a working config
                          How to add modules

                          B 1 Reply Last reply Reply Quote 0
                          • B Offline
                            brendan_c23 @Mykle1
                            last edited by

                            @mykle1 IMG_3982.jpg

                            Mykle1M 1 Reply Last reply Reply Quote 0
                            • Mykle1M Offline
                              Mykle1 Project Sponsor Module Developer @brendan_c23
                              last edited by

                              @brendan_c23

                              Something else is using port 8080. Most commonly it is because you have more than one instance of MM running at the same time. Or, there is another program on your pi using the same port.

                              Create a working config
                              How to add modules

                              B 1 Reply Last reply Reply Quote 0
                              • B Offline
                                brendan_c23 @Mykle1
                                last edited by

                                @mykle1 Is it because I am using the same APPid for both weather modules? I have triple checked that I have the correct appid that was also working for the current weather. IMG_3983.JPG

                                Mykle1M 1 Reply Last reply Reply Quote 0
                                • Mykle1M Offline
                                  Mykle1 Project Sponsor Module Developer @brendan_c23
                                  last edited by

                                  @brendan_c23 said in Problems With Weather:

                                  Is it because I am using the same APPid for both weather modules?

                                  No, you can use the appid twice. However, MM can not share port 8080

                                  Create a working config
                                  How to add modules

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    brendan_c23 @Mykle1
                                    last edited by

                                    @mykle1 How could I try fixing this?

                                    Mykle1M B 3 Replies Last reply Reply Quote 0
                                    • Mykle1M Offline
                                      Mykle1 Project Sponsor Module Developer @brendan_c23
                                      last edited by Mykle1

                                      @brendan_c23

                                      try running pm2 status in the terminal (I think that’s the command) and post the result here please.

                                      Don’t post a picture. Copy the terminal output and paste it into your reply.

                                      Also, do you have any other programs running on the Pi besides Magic Mirror?

                                      Create a working config
                                      How to add modules

                                      B 1 Reply Last reply Reply Quote 0
                                      • B Offline
                                        brendan_c23 @brendan_c23
                                        last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • Mykle1M Offline
                                          Mykle1 Project Sponsor Module Developer @brendan_c23
                                          last edited by

                                          @brendan_c23

                                          output should look like this

                                          pi@Pi3:~ $ pm2 status
                                          ┌──────┬──────┬────────┬───┬─────┬──────────┐
                                          │ Name │ mode │ status │ ↺ │ cpu │ memory   │
                                          ├──────┼──────┼────────┼───┼─────┼──────────┤
                                          │ mm   │ fork │ online │ 0 │ 0%  │ 1.3 MB   │
                                          └──────┴──────┴────────┴───┴─────┴──────────┘
                                           Use `pm2 show <id|name>` to get more details about an app
                                          pi@Pi3:~ $ 
                                          
                                          

                                          Create a working config
                                          How to add modules

                                          B 1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            brendan_c23 @Mykle1
                                            last edited by

                                            @mykle1 pi@raspberrypi:~ $ pm2 status
                                            ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
                                            │ id │ name │ mode │ ↺ │ status │ cpu │ memory │
                                            ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
                                            │ 0 │ MagicMirror │ fork │ 6 │ online │ 0% │ 2.6mb │
                                            └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
                                            pi@raspberrypi:~ $

                                            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
                                            • 2
                                            • 3
                                            • 1 / 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