Metar

The METAR module enables the retrieval of current weather information, generally from weather stations located at or near international airports, according to the configuration of the SvxLink administrator.

Command Function
0# Help general
01# Enumeration of configured weather stations
1# 1. configured weather station
2# 2. configured weather station
3# 3. configured weather station
Xx# Xx. Weather station

For further information on METARs see Metar on Wikipedia.

Activation in /etc/svxkink/svxlink.conf through
[RepeaterLogic]
...
MODULE=...,ModuleMetarInfo,...
...

Configuration file /etc/svxlink/svxlink.d/ModuleMetarInfo.conf
[ModuleMetarInfo]
NAME=MetarInfo
ID=3
TIMEOUT=60
#STARTDEFAULT=EDDP
LONGMESSAGES=1
SERVER=tgftp.nws.noaa.gov
LINK=data/observations/metar/stations
TYPE=TXT
REMARKS=1
DEBUG=1
# insert ICAO airport shortcuts here. You can
# request the METAR by sending dtmf commands as follows
#
# 1# 2# 3# 4# 5# 6# 7# 8# 9# 10# 11# 12# 13# 14# 15# 16#
AIRPORTS=EDDP,EDDS,EDDM,EDDK,EDDV,LEMD,ESSB,KJAC,KTOL,ZBAA,KJFK,SKBO,SKSM,EDJA,ZMUB,EGLL

Description of the
NAME
The name of this module, e.g. NAME=MetarInfo

ID
The unique identification number that must be uniquely assigned for each SvxLink module. The activation of the module takes place with ID=3 with the command 3#.

TIMEOUT
The module terminates automatically after the configured time (in seconds) if no activity occurred.

TYPE
Here you configure the format in which the metadata is transmitted. Currently only TXT and XML are valid.

SERVER
Configure the server name or IP address of the server from which the metadata is to be downloaded. The http:// should be omitted here, e.g. SERVER=tgftp.nws.noaa.gov

LINK
Enter the path on the server where the file with the metadata can be found, for example: LINK=data/observations/metar/stations

STARTDEFAULT
When the METAR module is activated, the weather data of the configured station are immediately retrieved and output.

LONG MEASUREMENT
For certain METAR information, the short form is not output but the complete description of the tag, e.g. instead of „NOSIG“ -> „no significant change“ or „CAVOK“ -> „ceiling and visibility OK“.
For further information please visit Wikipedia under METAR.

REMARKS
If „=1″, then the METAR sections are also output in the RMK (Remark) area. Here you can find runway information, weather trends etc.. Unfortunately, there is no consistent standard here which is adhered to by all stations. Therefore there is no guarantee that every day will be spent properly.

DEBUG
If „=1″, then an extended logging takes place in the svxlink log, then errors can be analyzed when retrieving the weather information.

AIRPORTS
Comma-separated list of weather stations that can be retrieved by command. The retrieval takes place in the order of the configuration. e.g.
AIRPORTS=EDDP,EDDM,EDDS,EDDH,EDDM
With this configuration the weather information of Leipzig can be retrieved after activation of the METAR module and the command „1#“, with „2#“ the weather information of Munich, with „3#“ of Stuttgart etc….