MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Problems With Weather

    Troubleshooting
    6
    41
    650
    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
      brendan_c23 @Mykle1 last edited by

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

      Mykle1 1 Reply Last reply Reply Quote 0
      • Mykle1
        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
          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?

          Mykle1 1 Reply Last reply Reply Quote 0
          • Mykle1
            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

            Mykle1 1 Reply Last reply Reply Quote 1
            • Mykle1
              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
              • W
                Wenike @Mykle1 last edited by

                @mykle1 I see the edit but now I’m wondering if the issue you and Brendan are experiencing are related to this old bug that was fixed last year and maybe it came back? Or that code could be a workaround until the fix next month.

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

                  @wenike

                  Well, I’m not going to do that because the module is deprecated. Doesn’t make much sense to me. If you feel the need, have at it. 🙂

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • Mykle1
                    Mykle1 Project Sponsor Module Developer last edited by

                    @csoogos said in Problems With Weather:

                    How do I run the mirror from within the directory?

                    1. Open a terminal
                    2. Change directory to MagicMirror. Usually done by cd MagicMirror unless you installed somewhere else.
                    3. Then npm start

                    Create a working config
                    How to add modules

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

                      @csoogos

                      MagicMirror is a web page (see index.html) loaded by a browser (electron)

                      the main core of mm is a JavaScript wrapper around standard dynamic html, which allows api calls to manipulate the web page (DOM) content.

                      there are predefined areas (positions) for scripts (modules) to place their content in.
                      the mm runtime calls the module to get it’s content contribution. and then puts that content in the position defined for this module (in config.js module entry)

                      all content is provided by module entries in config.js otherwise the page is empty ( see index.html)

                      some additional functions are provided by the runtime.

                      inter module communications, by way of typeless broadcast messages. the receiver must understand and handle the data format of any message it proposes to process.

                      due to browser security constraints, a module (running in the browser) cannot access the file system or any hardware.

                      so a ‘server’ side module component is launched in the background, ‘node_helper’… which CAN , and communications are supported between the helper and the browser module code, in a similar way as between modules. except the flow is only between the module and ITS helper.

                      the implementation of the helper/module communications supports messaging over networks, so the helper is where the ‘server’ is and the browser can be where the user is… the browser can be any es6 or above browser

                      electron chrome firefox edge…

                      as it’s a web page all the standard css techniques are available to style the content, by module or collectively…

                      Sam

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • cowboysdude
                        cowboysdude Module Developer last edited by

                        @csoogos Not sure I’ve seen calcium temperature LOL

                        Mykle1 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 4 / 5
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy