• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 11.2k 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
    last edited by Feb 27, 2021, 12:19 AM

    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 Feb 27, 2021, 12:22 AM Reply Quote 0
    • B Offline
      brendan_c23 @brendan_c23
      last edited by Feb 27, 2021, 12:22 AM

      @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?

      M 1 Reply Last reply Feb 27, 2021, 12:27 AM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @brendan_c23
        last edited by Feb 27, 2021, 12:27 AM

        @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 Feb 27, 2021, 12:31 AM Reply Quote 1
        • B Offline
          brendan_c23 @Mykle1
          last edited by Feb 27, 2021, 12:31 AM

          @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?

          M 3 Replies Last reply Feb 27, 2021, 12:40 AM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @brendan_c23
            last edited by Feb 27, 2021, 12:40 AM

            @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
            • M Offline
              Mykle1 Project Sponsor Module Developer @brendan_c23
              last edited by Feb 27, 2021, 12:41 AM

              @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
              • M Offline
                Mykle1 Project Sponsor Module Developer @brendan_c23
                last edited by Feb 27, 2021, 12:43 AM

                @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 Feb 27, 2021, 1:01 AM Reply Quote 1
                • B Offline
                  brendan_c23 @Mykle1
                  last edited by Feb 27, 2021, 1:01 AM

                  @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 Feb 27, 2021, 1:04 AM Reply Quote 0
                  • B Offline
                    brendan_c23 @brendan_c23
                    last edited by Feb 27, 2021, 1:04 AM

                    @brendan_c23 IMG_3978 (1).jpg

                    B 1 Reply Last reply Feb 27, 2021, 1:11 AM Reply Quote 0
                    • B Offline
                      brendan_c23 @brendan_c23
                      last edited by Feb 27, 2021, 1:11 AM

                      @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

                      M 1 Reply Last reply Feb 27, 2021, 1:34 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 1 / 5
                      1 / 5
                      • First post
                        1/41
                        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