• 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.

current weather feels 185F!!!

Scheduled Pinned Locked Moved Unsolved Troubleshooting
7 Posts 4 Posters 2.2k 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.
  • T Offline
    tv25666
    last edited by May 15, 2018, 5:21 PM

    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 Offline
      maxbachmann
      last edited by maxbachmann May 16, 2018, 2:07 PM May 16, 2018, 1:12 PM

      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 May 18, 2018, 1:54 PM Reply Quote 0
      • T Offline
        tv25666 @maxbachmann
        last edited by May 18, 2018, 1:54 PM

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

        M 1 Reply Last reply May 19, 2018, 1:03 AM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @tv25666
          last edited by May 19, 2018, 1:03 AM

          @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 May 19, 2018, 1:34 AM

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

            M 1 Reply Last reply May 19, 2018, 2:19 AM Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @maxbachmann
              last edited by Mykle1 May 19, 2018, 2:19 AM May 19, 2018, 2:19 AM

              @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 Sep 4, 2020, 9:51 AM

                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