Aprs.Convert (aprs v2.0.1)

View Source

Unit conversions used by APRS weather station formats.

Summary

Functions

Convert an Ultimeter temperature (tenths of a degree F) to degrees F.

Convert an Ultimeter wind speed (tenths of a kph) to mph.

Functions

temp(value, atom1, atom2)

@spec temp(number(), :ultimeter, :f) :: float()

Convert an Ultimeter temperature (tenths of a degree F) to degrees F.

Examples

iex> Aprs.Convert.temp(725, :ultimeter, :f)
72.5

wind(speed, atom1, atom2)

@spec wind(number(), :ultimeter, :mph) :: float()

Convert an Ultimeter wind speed (tenths of a kph) to mph.

Examples

iex> Aprs.Convert.wind(1609, :ultimeter, :mph)
99.9786247928