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.

    current weather feels 185F!!!

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    7 Posts 4 Posters 2.5k Views 4 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.
    • M Offline
      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 Offline
        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!

        Mykle1M 1 Reply Last reply Reply Quote 0
        • Mykle1M Offline
          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 Offline
            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.

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              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
              • ? Offline
                A Former User
                last edited by

                This post is deleted!
                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 Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy