# \[Solved\] How Do I Convert MPH To KMPH

**URL:** <https://forums.losant.com/t/solved-how-do-i-convert-mph-to-kmph/589>\
**Category:** Help\
**Created:** [August 16, 2017, 7:09am UTC](https://forums.losant.com/t/solved-how-do-i-convert-mph-to-kmph/589 "2017-08-16T07:09:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dawsey\_Panter-Wray](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@Dawsey\_Panter-Wray](https://forums.losant.com/u/Dawsey_Panter-Wray)\
**Post date:** [August 16, 2017, 7:09am UTC](https://forums.losant.com/t/solved-how-do-i-convert-mph-to-kmph/589/1 "2017-08-16T07:09:13Z")

</div>

Hi I Was Wondering If Any Of You Knew How To Convert MPH Wind Speed Into KMPH From The Dark Sky Weather API Intergration Thing! (Im New!)

Thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_Kuehl](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/michael_kuehl/32/99_2.png) [@Michael\_Kuehl](https://forums.losant.com/u/Michael_Kuehl)\
**Post date:** [August 16, 2017, 2:58pm UTC](https://forums.losant.com/t/solved-how-do-i-convert-mph-to-kmph/589/2 "2017-08-16T14:58:54Z")

</div>

The easiest way to go about this is probably to convert the value before you store it onto your Losant weather device. So above the [Device State node](https://docs.losant.com/getting-started/walkthrough/#step-5-save-weather-data-to-device) in your workflow, you want to add a [Math](https://docs.losant.com/workflows/logic/math/) node, and do the math on the MPH value to convert it to KMPH. Then, in the device state node, use the newly calculated KMPH value instead of the original MPH value for the wind-speed device attribute. Hope that helps!

---

<div class="post-metadata">

**Author:** ![Dawsey\_Panter-Wray](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@Dawsey\_Panter-Wray](https://forums.losant.com/u/Dawsey_Panter-Wray)\
**Post date:** [August 16, 2017, 3:35pm UTC](https://forums.losant.com/t/solved-how-do-i-convert-mph-to-kmph/589/3 "2017-08-16T15:35:38Z")

</div>

Thankyou I Will Test It!
