Aprs.Weather (aprs v2.0.1)

View Source

APRS weather report parsing.

Summary

Functions

Parse a positionless APRS weather report (the _ data type).

Parses weather fields into a flat map.

Parses weather fields and returns the trimmed, unconsumed comment bytes.

Functions

parse(data)

@spec parse(String.t()) :: map()

Parse a positionless APRS weather report (the _ data type).

Returns the weather fields with data_type: :weather. Fields the report omits are nil.

parse_weather_data(weather_data)

@spec parse_weather_data(String.t()) :: map()

Parses weather fields into a flat map.

parse_weather_data_with_remainder(weather_data)

@spec parse_weather_data_with_remainder(String.t()) :: {map(), String.t()}

Parses weather fields and returns the trimmed, unconsumed comment bytes.