Skip to content

Unparsed groups in body: TEMPO FM0400 5000 RA #154

@chrisb2

Description

@chrisb2

Stacktrace from my application:

Request to: http://tgftp.nws.noaa.gov/data/observations/metar/stations/NZCH.TXT
Traceback (most recent call last):
  File "C:\aProject\esp32\metar-lilygo-t5\pi\metar-service.py", line 127, in <module>
    main()
  File "C:\aProject\esp32\metar-lilygo-t5\pi\metar-service.py", line 123, in main
    service.print_to_console(stations[0])
  File "C:\aProject\esp32\metar-lilygo-t5\pi\metar-service.py", line 15, in print_to_console
    print(self.serialize_to_string(self.report(station)))
  File "C:\aProject\esp32\metar-lilygo-t5\pi\metar-service.py", line 104, in report
    obs = Metar.Metar(report)
  File "C:\tools\python3\lib\site-packages\metar\Metar.py", line 417, in __init__
    raise ParserError("Unparsed groups in body: "+code)
metar.Metar.ParserError: Unparsed groups in body: TEMPO FM0400 5000 RA

get_report.py gives:

C:\aProject\esp32\python-metar>python get_report.py NZCH
station: NZCH
type: routine report, cycle 3 (automatic report)
time: Sun Oct 31 03:30:00 2021
temperature: 23.0 C
dew point: 4.0 C
wind: WSW to NNW at 14 knots
visibility: greater than 10000 meters
pressure: 995.0 mb
sky: broken clouds at 9500 feet
METAR: NZCH 310330Z AUTO 29014KT 250V330 9999 BKN095/// 23/04 Q0995 BECMG FM0400 22015G25KT TEMPO FM0400 5000 RA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions