MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Problems With Weather

    Troubleshooting
    6
    41
    1272
    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 last edited by

      Having trouble getting weather forecast to display. Current weather is displaying, although it is giving incorrect temperature readings and time. I have confirmed that I have the correct location id as well as API key id on both modules. Does anyone know what might be going on?

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

        @brendan_c23 Actually just realized the temperature is in Celsius lol. So current weather is actually ok, but am still having trouble getting the forecast to display. Anybody know how to change celsius to Fahrenheit?

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

          @brendan_c23 said in Problems With Weather:

          Anybody know how to change celsius to Fahrenheit?

          At the top of your config,js file, are your ‘units’ set to imperial?

          var config = {
              address: "0.0.0.0",
              port: 8080,
              ipWhitelist: [], // Set [] to allow all IP addresses
              language: "en",
              timeFormat: 12,
              units: "imperial",
          

          Create a working config
          How to add modules

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

            @mykle1 Worked perfectly! Thank you! was just not sure where to find the units. Still having trouble to get the forecast displaying though. Any help on that?

            Mykle1 3 Replies Last reply Reply Quote 0
            • Mykle1
              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
              • Mykle1
                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
                • Mykle1
                  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
                    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
                      brendan_c23 @brendan_c23 last edited by

                      @brendan_c23 IMG_3978 (1).jpg

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

                        Mykle1 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 1 / 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