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.

    Can"t get wind speed shown in KMPH why?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    9 Posts 6 Posters 2.3k Views 6 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
      thisistheplace
      last edited by

      Sry, if this thread is too old to answer but I had the same question and had problems to find a solution for this. But it seems like I have one.

      In my config I only set useKMPHwind to true and that didn’t work but after I also changed the useBeaufort from its default true value to false it seems to work.

      At this moment openweathermap shows 1,5m/s and magicmirror shows 5 as windspeed. 1,5m/s are actually 5,4km/h so I think its an rounded value.

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

        I’ll have to dig up this old thread again. I too do not get the wind speed displayed in km/h.

        My config says:

        	{
        			module: "currentweather",
        			position: "top_right",	
        			config: {
        				location: "Berlin, DE",
        				locationID: "2950159", //Location ID from http://bulk.openweathermap.org/sample/city.list.json.gz
        				appid: "***MYKEY***", //openweathermap.org API key.
        				useBeaufort: false,
        				useKMPHWind: true
        			}
        		},
        
        1 Reply Last reply Reply Quote 0
        • thgmirrorT Offline
          thgmirror
          last edited by

          Hi @MajorC,

          without using this module, I saw you wrote

          seBeaufort: false, instead of
          useBeaufort: false,

          May be that is the reason.

          Greetings from Bonn
          Thomas

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

            Thank you, this was just a copy & paste error. On the MM I have use with a u.

            @carlderdritte or @thisistheplace have you guys found a solution?

            1 Reply Last reply Reply Quote 0
            • M Offline
              MaXi-XCeL Project Sponsor
              last edited by

              Re: Can"t get wind speed shown in KMPH why?

              Turns out the variable (useKMPHWind) in your “config.js” should be with a lowercase w for useKMPHwind.

              		{
              			module: "currentweather",
              			position: "top_right",
              			config: {
              				location: "Zaandam",
              				locationID: "2744118", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
              				appid: "12345678901234567890",
              				roundTemp: true,
              				useBeaufort: false,
              				useKMPHwind: true,
              			}
              		},
              
              1 Reply Last reply Reply Quote 0
              • M Offline
                MajorC Project Sponsor
                last edited by

                Thank you @MaXi-XCeL that was the problem. Case sensitive variables? Come on… :-(

                And you need the useBeaufort: false to have it work.

                useBeaufort: false,
                useKMPHwind: true,
                

                Thank you again, on step closer.

                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