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

METAR #647

Open
sm5gxq opened this issue Oct 25, 2023 · 14 comments
Open

METAR #647

sm5gxq opened this issue Oct 25, 2023 · 14 comments

Comments

@sm5gxq
Copy link

sm5gxq commented Oct 25, 2023

Hi,

There seems to be a change at aviationweather.gov, so the "adds" resource is no longer available.

I have made these mods to /etc/svxlink/svxlink.d/ModuleMetarInfo.conf:

LINK=/cgi-bin/data/dataserver.php?requestType=retrieve&dataSource=metars&hoursBeforeNow=3&stationString=
#LINK=/adds/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&hoursBeforeNow=3&mostRecent=true&stationString=

Further, it seems that the man file for ModuleMetarInfo.conf is missing?

rgds
Peter

@f5vmr
Copy link

f5vmr commented Oct 25, 2023 via email

@DH3PAE
Copy link

DH3PAE commented Nov 10, 2023

Hallo, my Name ist Stefan and today i have start the Weather Modul but it does not work.
I have change for 3 Weeks an with this String from Peter it have worked fine:
LINK=/cgi-bin/data/dataserver.php?requestType=retrieve&dataSource=metars&hoursBeforeNow=3&stationString=
But today there is another change in the data server on avianweather.gov.
Ther is no entry with beginning Link=cgi today it beginns with /api/data
So what must I do now, for hearing the Flight Weather Information, Peter can you Help sm5gxq this is dh3pae..please contact me under wolken2019@web.de if you find the mistake. Thank you for all Help Best Greetings Stefan

@f5vmr
Copy link

f5vmr commented Nov 10, 2023 via email

@f5vmr
Copy link

f5vmr commented Nov 10, 2023 via email

@circool
Copy link

circool commented Apr 1, 2024

hi.
SvxLink v1.8.0@24.02-3-gcde00792
in ModuleMetarInfo.conf:

[ModuleMetarInfo]
NAME=MetarInfo
ID=5
TIMEOUT=120
TYPE=TXT
SERVER=https://aviationweather.gov
LINK=/cgi-bin/data/metar.php?hours=0&order=id%2C-obs&sep=true&ids=
STARTDEFAULT=UUEE
AIRPORTS=UUEE,UUDD,UUWW

run metar module:

ECHO4: Frankfurt, Germany

SimplexLogic: digit=5
SimplexLogic: digit=#
SimplexLogic: Activating module MetarInfo...
https://aviationweather.gov/cgi-bin/data/metar.php?hours=0&order=id%2C-obs&sep=true&ids=UUEE
Tx1: Turning the transmitter ON
./5: line 1:  4600 Segmentation fault      sudo -u svxlink svxlink

cat /tmp/metar

UUEE 312330Z 11003MPS CAVOK 09/06 Q1012 R24C/CLRD62 NOSIG

How to be?

@circool
Copy link

circool commented Apr 1, 2024

XML with

LINK=/cgi-bin/data/dataserver.php?requestType=retrieve&dataSource=metars&hoursBeforeNow=3&stationString=

is not problem

@dl1hrc
Copy link
Contributor

dl1hrc commented Apr 1, 2024 via email

dl1hrc added a commit to dl1hrc/svxlink that referenced this issue Apr 1, 2024
- New parameter (EXTENSION) introduced to allow to use of a file extension (e.g. ICAO.TXT instead of ICAO)
- Handling of runway state has changed a bit since the airport \“Moscow Scheremetjewo\“ has a small different metar format for rwy state (e.g. combination of cleard runwany with friction coefficient)
@dl1hrc
Copy link
Contributor

dl1hrc commented Apr 1, 2024

I've changed something and it has been checked in into my private repository. It would be very nice if some people could test it before I make a pull request. If you have some time please check out it by
git clone https://github.com/dl1hrc/svxlink.git
Please notice the small change in the manual page and the changes in ModuleMetarInfo.conf
Mni 73s de Adi / DL1HRC

@dl1hrc
Copy link
Contributor

dl1hrc commented Apr 23, 2024

Does it work or not?

@f5vmr
Copy link

f5vmr commented Apr 23, 2024 via email

@dl1hrc
Copy link
Contributor

dl1hrc commented Apr 23, 2024

ok, but there is more than just a changed link:
dl1hrc@6687881

@f5vmr
Copy link

f5vmr commented Apr 23, 2024 via email

@dl1hrc
Copy link
Contributor

dl1hrc commented Apr 24, 2024

There was a segfault in the case of a message that did not correspond to the expected structure, so I changed the way aviationweather responded slightly. Maybe someone can test this version (for example the Metar info from Moscow with the specific runway information) as I can't test all airports on my system
Mni 73s de Adi / DL1HRC.

@f5vmr
Copy link

f5vmr commented Apr 24, 2024 via email

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

5 participants