Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue 80: Weather packet decoding. #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hemna
Copy link

@hemna hemna commented Jul 13, 2023

Weather packets were being decoded incorrectly. Over the air packets for weather are in wind miles per hour. Rain is in hundreths of an inch according to the official spec.

This patch changes the weather packet output to include the wind_speed and wind_direction as part of the weather dict in the packet instead of course and speed. According to the APRS Spect CSE/SPD for weather packets, which are denoted with the _ character are supposed to be used for wind speed and wind direction.

"The on-air APRS WX protocols, however, still will be in MPH and F."

"RAIN VALUES: Rain is counted in increments of 0.1 or 0.01 inch or 1mm. but reports all values in 0.01 inches over the air."

References:
http://www.aprs.org/APRS-docs/WX.TXT

Fixes issue #80

Weather packets were being decoded incorrectly.  Over the air packets
for weather are in wind miles per hour.  Rain is in hundreths of an
inch according to the official spec.

This patch changes the weather packet output to include the wind_speed
and wind_direction as part of the weather dict in the packet instead of
course and speed.  According to the APRS Spect CSE/SPD for weather
packets, which are denoted with the _ character are supposed to be used
for wind speed and wind direction.

"The on-air APRS WX protocols, however, still will be in MPH and F."

"RAIN VALUES:  Rain is counted in increments of 0.1 or 0.01 inch or 1mm.
but reports all values in 0.01 inches over the air."

References:
http://www.aprs.org/APRS-docs/WX.TXT
hemna added a commit to craigerl/aprsd that referenced this pull request Jul 13, 2023
aprslib incorrectly decodes weather packets and doesn't provide
wind_speed or wind_direction from the CSE/SPD 7 bytes in the APRS
packet.  This patch puts a temporary fix in place until the
aprslib pull request lands and is released.

rossengeorgiev/aprs-python#80

rossengeorgiev/aprs-python#81
hemna added a commit to craigerl/aprsd that referenced this pull request Jul 13, 2023
aprslib incorrectly decodes weather packets and doesn't provide
wind_speed or wind_direction from the CSE/SPD 7 bytes in the APRS
packet.  This patch puts a temporary fix in place until the
aprslib pull request lands and is released.

rossengeorgiev/aprs-python#80

rossengeorgiev/aprs-python#81
shackrat added a commit to shackrat/aprs-python that referenced this pull request Sep 14, 2023
Implements: Fix issue 80: Weather packet decoding. rossengeorgiev#81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant