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.

    Wind direction 180 degrees twisted at Yr

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 2 Posters 881 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.
    • M Offline
      MajorC Project Sponsor
      last edited by

      Hello,

      I am happy to be able to use Yr in the weather module. However, I noticed that the “translation” of the wind direction is rotated 180 degrees.
      If you show the arrow (showWindDirectionAsArrow: false) the wind is displayed exactly as it is on www.yr.no.

      But if you want to show the direction as the direction name (SSW for wind from south-south-west) NNO is displayed. So exactly 180 degrees twisted.

      A bug or have I understood something wrong?

      M 2 Replies Last reply Reply Quote 0
      • M Offline
        magmar @MajorC
        last edited by

        @MajorC Wind direction is now fixed for the Yr-provider and will work as expected in the next MM version (PR 3020).

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          magmar @MajorC
          last edited by

          @MajorC I’ll have a look :) When I developed the Yr-module, I did not test with that config option.

          1 Reply Last reply Reply Quote 0
          • M Offline
            magmar @MajorC
            last edited by

            @MajorC It seems I messed up here. I displayed the wind direction as an arrow when implementing the provider, and made sure the arrow matched the arrow on Yr.no. The implementation of the arrow in MagicMirror points at the direction from where the wind I blowing, but the arrow on Yr points in the direction the wind is blowing.

            I will fix this in the next version of Magic Mirror. Thank you for pointing out the error!

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              MajorC Project Sponsor @magmar
              last edited by

              @magmar I only know weather with the arrow pointing into the direction the wind is blowing. But maybe that could be a good option as a config.

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                magmar @MajorC
                last edited by

                @MajorC Wind direction is now fixed for the Yr-provider and will work as expected in the next MM version (PR 3020).

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  MajorC Project Sponsor @magmar
                  last edited by

                  @magmar wonderful. Thank you very much.

                  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