MagicMirror Forum

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

    UNSOLVED current weather feels 185F!!!

    Troubleshooting
    4
    7
    1781
    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.
    • T
      tv25666 last edited by

      i just installed magic mirror on the rpi2. loooks great except not sure why current weather shows 185F
      just to check, i went outside and it’re about 90F, not 185F!

      alt text

      any idea what went wrong? and how do i have current weather section colorized?
      thanks!

      1 Reply Last reply Reply Quote 0
      • M
        maxbachmann last edited by maxbachmann

        The Temperature says 81.2 F which is pretty good I guess 😉
        The other one 185F is the feels like temperature. It’s calculated from the normal temperature and the windspeed.

        var windchillinF = Math.round(35.74+0.6215*tempInF-35.75*Math.pow(windInMph,0.16)+0.4275*tempInF*Math.pow(windInMph,0.16));
        			var windChillInC = (windchillinF - 32) * (5/9);
        			// this.feelsLike = windChillInC.toFixed(0);
        
        			switch (this.config.units){
        			case "metric": this.feelsLike = windChillInC.toFixed(0);
        				break;
        			case "imperial": this.feelsLike = windChillInF.toFixed(0);
        				break;
        			case "default":
        				var tc = windChillInC - 273.15;
        				this.feelsLike = tc.toFixed(0);
        				break;
        			}
        

        doing the calculation manually given the 81.2 degree and 5 Beaufort you should have a feel like of somewhat around 84 degree. You might want to check what the results in between are that you get to find the fault. However if you just want to see the actual temperature you can aswell just deativate this feels-like temperature

        T 1 Reply Last reply Reply Quote 0
        • T
          tv25666 @maxbachmann last edited by

          @maxbachmann
          thank you. i dont know why that day was special. now, feels like temp is back to “normal” without me doing anything special. if it goes crazy again, i will delete those code. thanks!

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

            @tv25666

            Most likely, the API was faulty. It happens. 😕

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • M
              maxbachmann last edited by

              @Mykle1 but the feel Temperature gets calculated out of two of the numbers he showed on the screen (windspeed and real temperatur) when I pulled out my calculator to check it it was definetly below 100, so not quite sure what caused the error, but would surprise me if it was the API.

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

                @maxbachmann

                Ahh, I didn’t realize that the feels like temp was being calculated manually. I thought it was coming directly from the api. My bad.

                0_1526696345916_21.png

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • H
                  hango last edited by

                  I think in currentweather at the line 464 instead of

                  this.feelsLike = parseFloat(this.temperature).toFixed(0);

                  should be

                  this.feelsLike = parseFloat(data.main.feels_like).toFixed(0);

                  I am no longer interested in this project which is increasingly buggy and heavy.
                  I have my own personal light version which works perfectly on line and local without electron shit and node.js.

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