Weather Meter with Photon Weather Station Shield

Good Day All

I am on missing to create my own weather station and so far all is working 100% with my sensors / setup.

I just have one stupid questions and issue. What is the easiest way to convert F and MPH to Celsius and Km.

I read through the help guides for the Weather Shield and investigate the code from the Sparkfun repository. I think I resolved the F to Celsius for the temperature sensors. But struggling wit the wind speed.

Details follows from https://learn.sparkfun.com/tutorials/ph … troduction

Converting Fahrenheit to Celsius: (°F − 32) × 5/9 = °C

Converting MPH to KPH: MPH * 1.609 = KPH

You will need to either use floating point math or scale things appropriately (ie KPH = (MPH * 1609)/1000 )

/mike