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.

    [A Fix] The "Feels" Weather Condition in Metric is calculated improperly

    Scheduled Pinned Locked Moved Bug Hunt
    4 Posts 3 Posters 1.5k Views 2 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.
    • C Offline
      chef
      last edited by chef

      Yeah, metric “Feels” value returns Imperial data.

      TO fix this open “currentWeather.js” and change:

      switch (this.config.units){
      			case "metric": this.feelsLike = (Hindex / 2.2).toFixed(0);
      				break;
      

      You have to divide by 2.2 in order to return approximate metric values.
      The value doesn’t have to be perfect because it has a fixed decimal place of zero.

      Now in Canada it “Feels 40” degress instead of 80, which is correct!

      Thanks @MichMich, I’d do a pull request but I suck at pull requests LOL.

      You’re the man!

      1 Reply Last reply Reply Quote 0
      • C Offline
        chef
        last edited by

        Wanted to bump this, sorry.

        strawberry 3.141S 1 Reply Last reply Reply Quote 0
        • strawberry 3.141S Offline
          strawberry 3.141 Project Sponsor Module Developer @chef
          last edited by

          @chef you might want to try the develop branch or wait for the next release, which should be tomorrow :D there were multiple feels like temperture fixes in pull requests

          Please create a github issue if you need help, so I can keep track

          1 Reply Last reply Reply Quote 0
          • MichMichM Offline
            MichMich Admin
            last edited by

            I just released a new master release. So this should be fixed. :)

            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