Txo, on 2021-10-09: > Buster sur le réfractaire, mais aussi sur celui qui a un metar opérationnel
Merci pour cette clarification : je n'avais pas regardé dans
buster, seulement bookworm. Apparemment l'ancienne version de
pymetar y fait toujours référence à weather.noaa.gov, qui n'est
plus enregistré. D'après cet extrait de pymetar.py :
def __init__(self, MetarStationCode = None, baseurl =
"http://weather.noaa.gov/pub/data/observations/metar/decoded/"):
je reproduis bien l'erreur de mon côté :
(buster)$ pymetar lfpo
Something went wrong when fetching the report.
These usually are transient problems if the station ID is valid.
The error encountered was:
<urlopen error [Errno -2] Name or service not known>
Je reproduis aussi le problème que vous observez avec metar, et
qui a une chance d'être causé par la redirection vers https :
(buster)$ metar -vd lfpo
Retrieving URL
http://tgftp.nws.noaa.gov/data/observations/metar/stations/LFPO.TXT
METAR pattern not found in NOAA data.
Station :
Day : 0
Time : 00:00 UTC
Wind direction: 0 (N)
Wind speed : 0
Wind gust : 0
Visibility : 0
Temperature : 0 C
Dewpoint : 0 C
Pressure : 0
Clouds :
Phenomena :
En Debian 11, pymetar n'est pas disponible, mais metar fait
directement référence au lien en https et fournit les résultats
attendus :
(bullseye)$ metar -vd lfpo
Retrieving URL
https://tgftp.nws.noaa.gov/data/observations/metar/stations/LFPO.TXT
LFPO 091600Z 07008KT CAVOK 17/08 Q1025 NOSIG
Parsing token `LFPO'
Found station LFPO
Parsing token `091600Z'
Found Day/Time 9/1600
Parsing token `07008KT'
Found Winddir/str/gust/unit 70/8/8/KT
Parsing token `CAVOK'
Unmatched token = CAVOK
Parsing token `17/08'
Temp/dewpoint 17/8
Parsing token `Q1025'
Pressure/unit 1025/hPa
Parsing token `NOSIG'
Unmatched token = NOSIG
Station : LFPO
Day : 9
Time : 16:00 UTC
Wind direction: 70 (ENE)
Wind speed : 8 KT
Wind gust : 8 KT
Visibility : 0
Temperature : 17 C
Dewpoint : 8 C
Pressure : 1025 hPa
Clouds :
Phenomena : Ceiling and visibility OK
Du coup, la question maintenant est de trouver comment l'autre
raspberry pi a bien pu tomber en marche… :)
Bonne journée,
--
Étienne Mollier <[email protected]>
Fingerprint: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
Sent from /dev/pts/2, please excuse my verbosity.
signature.asc
Description: PGP signature

