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.
    • 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
                      • B Offline
                        brendan_c23 @Mykle1
                        last edited by

                        @mykle1 I should not have any other programs running besides the magic mirror as it is the only one I have installed , but not totally sure if there are any default programs already on there.

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

                          @brendan_c23

                          ok,. so try pm2 stop MagicMirror

                          then pm2 start MagicMirror

                          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 stop MagicMirror
                            [PM2] Applying action stopProcessId on app [MagicMirror](ids: 0)
                            [PM2] MagicMirror ✓
                            ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
                            │ id │ name │ mode │ ↺ │ status │ cpu │ memory │
                            ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
                            │ 0 │ MagicMirror │ fork │ 6 │ stopped │ 0% │ 0b │
                            └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
                            pi@raspberrypi:~ $ pm2 start MagicMirror
                            [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
                            [PM2] MagicMirror ✓
                            [PM2] Process successfully started
                            ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
                            │ id │ name │ mode │ ↺ │ status │ cpu │ memory │
                            ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
                            │ 0 │ MagicMirror │ fork │ 6 │ online │ 0% │ 2.4mb │
                            └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
                            pi@raspberrypi:~ $
                            Still no luck displaying forecast, thank you again for bearing with me this long

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

                              @brendan_c23

                              Were there any errors when MM launched?

                              Create a working config
                              How to add modules

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

                                @brendan_c23

                                MagicMirror should have launched when you issued the pm2 start MagicMirror command

                                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 No errors and yes MM launched, everything is displaying but the forecast

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

                                    @mykle1 now it is displaying message: “Please set the correct openweather appid in the config for module: weatherforecast.”

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

                                      @brendan_c23

                                      I’m done for the night, mate. I would suggest you double check your appid at openweather. copy and paste it into your config entry for weatherforecast and make sure it is in quotes.

                                      Perhaps someone else will continue to help you tonight.

                                      Good luck

                                      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 So I emailed Openweathermap for help and he said I should use the “One Call Api” https://openweathermap.org/api/one-call-api but I am having trouble figuring out how to incorporate the API call code into the weather forecast module?

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

                                          @brendan_c23 said in Problems With Weather:

                                          So I emailed Openweathermap for help and he said I should use the “One Call Api” https://openweathermap.org/api/one-call-api but I am having trouble figuring out how to incorporate the API call code into the weather forecast module?

                                          Uhhh, I’m pretty sure the default weatherforecast module DOES use the One Call API.

                                          I would try getting another api key using a different email. However, I suspect there might be something else going on there. Would you object to sending me your current openweather api key so I can test it here? If you agree, send it in a private chat message. I’ve sent you a chat. You can send your api key there if you agree.

                                          Create a working config
                                          How to add modules

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

                                            @brendan_c23

                                            weatherforecast: Your AppID does not support long term forecasts. Switching to fallback endpoint.
                                            

                                            Totally not your fault, just so you know.

                                            And I guess mine does not either, However, the module does load after a short delay but it only displays tomorrow’s weather. Same as when using my api key.

                                            Screenshot from 2021-03-06 20-12-23.png

                                            This is very odd as I tested your api key in another weather module that uses open weather and it is giving all the data and NO errors. SO, I’m guessing the weatheforecast module itself has some issues.

                                            Screenshot from 2021-03-06 20-22-54.png

                                            Are you dead set on using weatherforecast? There are many weather modules that provide you with forecasts and current weather. I’m fairly sure that some of them were built upon the openweather api and your current api key should work fine with them. Personally, I don’t use the default weather modules. I’ll be happy to give you a hand with them if you are willing to try them.

                                            Edit:

                                            I’ve just been informed that in the new MM release (April 1) both of those modules are being replaced by a newer version that does both current and forecast. Sheeesh

                                            Create a working config
                                            How to add modules

                                            W 1 Reply Last reply Reply Quote 1

                                            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