Skip to content

v0.2.0

Choose a tag to compare

@wildekek wildekek released this 26 Jul 03:13
d05a919

Adds decode_cardinal_wind_direction(), moving the HortOS wind-direction enumeration table into the library where the rest of the protocol knowledge lives.

Only whole-number member ids in the 8772-8787 block decode to a bearing; anything else returns None. Previously a consumer rounding the value could turn a fractional out-of-range id such as 8771.6 into due north.