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

ogn-decode fails to parse fanet temperature data properly #42

Open
bzed opened this issue Oct 10, 2023 · 1 comment
Open

ogn-decode fails to parse fanet temperature data properly #42

bzed opened this issue Oct 10, 2023 · 1 comment

Comments

@bzed
Copy link

bzed commented Oct 10, 2023

Here is a dump of the same packet as received from gxaircom (WALS) and ogn-rf/decode (KoGu):

Received position_weather: FNT08DFBC>OGNFNT,qAS,WALS:/145016h4749.14N/01306.30E_129/001g001t068h47b10288 0.2dB
{   'aprs_type': 'position_weather',
    'barometric_pressure': 10288,
    'comment': '0.2dB',
    'dstcall': 'OGNFNT',
    'humidity': 0.47000000000000003,
    'latitude': 47.819,
    'longitude': 13.105,
    'name': 'FNT08DFBC',
    'rainfall_1h': None,
    'rainfall_24h': None,
    'raw_message': 'FNT08DFBC>OGNFNT,qAS,WALS:/145016h4749.14N/01306.30E_129/001g001t068h47b10288 '
                   '0.2dB',
    'receiver_name': 'WALS',
    'reference_timestamp': datetime.datetime(2023, 10, 10, 14, 50, 17, 742668),
    'relay': None,
    'symbolcode': '_',
    'symboltable': '/',
    'temperature': 20.0,
    'timestamp': datetime.datetime(2023, 10, 10, 14, 50, 16),
    'wind_direction': 129,
    'wind_speed': 1.8518251853985166,
    'wind_speed_peak': 1.8518251853985166}

Received position_weather: FNT08DFBC>OGNFNT,qAS,KoGu:/145016h4749.14N/01306.29E_129/001g002t104h47b10288 28.3dB -17.0kHz
{   'aprs_type': 'position_weather',
    'barometric_pressure': 10288,
    'comment': '28.3dB -17.0kHz',
    'dstcall': 'OGNFNT',
    'humidity': 0.47000000000000003,
    'latitude': 47.819,
    'longitude': 13.104833333333334,
    'name': 'FNT08DFBC',
    'rainfall_1h': None,
    'rainfall_24h': None,
    'raw_message': 'FNT08DFBC>OGNFNT,qAS,KoGu:/145016h4749.14N/01306.29E_129/001g002t104h47b10288 '
                   '28.3dB -17.0kHz',
    'receiver_name': 'KoGu',
    'reference_timestamp': datetime.datetime(2023, 10, 10, 14, 50, 18, 906158),
    'relay': None,
    'symbolcode': '_',
    'symboltable': '/',
    'temperature': 40.0,
    'timestamp': datetime.datetime(2023, 10, 10, 14, 50, 16),
    'wind_direction': 129,
    'wind_speed': 1.8518251853985166,
    'wind_speed_peak': 3.703650370797033}

Note the difference in the temperature - its about twice of the actual value, somewhere is the encoding not applied properly in the ogn decoder.

A good example are also the (non-gxaircom) weather stations around Interlaken.

@thezenox
Copy link

seems fixed with 0.3.2

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

No branches or pull requests

2 participants