On 2019-09-29, at 14:49:40 +0100, Jeremy Sowden wrote: > On 2019-09-29, at 14:35:05 +0100, Jeremy Sowden wrote: > > On Sat, 28 Apr 2018, at 07:40:39 +0300, Yavor Doganov wrote: > > > The file LBWN_dat gets updated every 5 minutes (as expected) but > > > LBWN was updated only once and it seems the app is getting the > > > data from there. FWIW, the wmweather package is working properly > > > with the same station (updating every 30 minutes). > > > > Wmfrog downloads the raw observations and attempts to decode them. > > It only updates LBWN if it does so succesfully. Wmweather, on the > > other hand, downloads the already decoded observations, which are > > also available. My guess is that wmfrog's decoder can't parse the > > raw observations under certain circumstances. I'll do some > > debugging and see if I can reproduce the problem. > > That didn't take long. > > The current raw observations for LBWN are: > > 2019/09/29 13:30 > LBWN 291330Z 10011KT CAVOK 25/13 Q1013 NOSIG > > wmfrog complains about invalid data and doesn't save them.
Debian includes a Perl module, Geo::METAR, that can parse METAR observations. I will add a patch to update wmfrog to use it. J.
signature.asc
Description: PGP signature