Board index FlightGear Support Installation Linux

No metar available [solved]

Installing FlightGear, scenery, aircraft etc. on Linux systems like Ubuntu.

No metar available [solved]

Postby sanni » Sat Jan 05, 2019 8:49 pm

When I start FG, this message alway appears:
Code: Select all
No metar available


Starting metar in the cli shows this:
Code: Select all
metar -c -vvv ksfo
metar download failed: http://tgftp.nws.noaa.gov/data/observations/metar/stations/KSFO.TXT (6 Couldn't resolve host name)


What can I do to get metar info?
Last edited by sanni on Sun Jan 06, 2019 11:12 pm, edited 2 times in total.
I failed the Turing test
User avatar
sanni
 
Posts: 173
Joined: Tue Oct 11, 2011 8:35 pm
Location: Germany
Callsign: D-Sanni
Version: 2018.3.1
OS: ArchLinux

Re: No metar available

Postby WoodSTokk » Sat Jan 05, 2019 9:14 pm

sanni wrote in Sat Jan 05, 2019 8:49 pm:When I start FG, this message alway appears:
Code: Select all
No metar available


Starting metar in the cli shows this:
Code: Select all
metar -c -vvv ksfo
metar download failed: hppt://tgftp.nws.noaa.gov/data/observations/metar/stations/KSFO.TXT (6 Couldn't resolve host name)


Do you realy mean the hppt protocol ??? Sorry, i don't know this protocol, but i guess you mean the http protocol!
Sorry, if i'm wrong.

EDIT:
The propgram 'metar' has a problem with more than one short option behind a dash.
Code: Select all
$metar -vc ksfo
metar download failed: http://tgftp.nws.noaa.gov/data/observations/metar/stations/-VC.TXT (404 Not Found)


You must write every option alone.
Code: Select all
$metar -v -c ksfo
Proxy host: ''
Proxy port: '80'

WoodSTokk
 
Posts: 240
Joined: Tue Oct 17, 2017 2:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: OE-WST
IRC name: WoodSTokk
Version: 2018.3.1
OS: Debian Buster/Sid

Re: No metar available

Postby sanni » Sat Jan 05, 2019 10:05 pm

Ooops, thats a typo.... I'm soooo sorry! Now, it's corrected.

Don't forget the FG-message.
Even if I try metar without the options I get an error message:
Code: Select all
ERROR: metar download failed
I failed the Turing test
User avatar
sanni
 
Posts: 173
Joined: Tue Oct 11, 2011 8:35 pm
Location: Germany
Callsign: D-Sanni
Version: 2018.3.1
OS: ArchLinux

Re: No metar available

Postby legoboyvdlp » Sat Jan 05, 2019 10:10 pm

Could be just a server outage - it worked earlier today - can anyone else see this?
User avatar
legoboyvdlp
 
Posts: 6925
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Re: No metar available

Postby WoodSTokk » Sat Jan 05, 2019 10:28 pm

It works for me.
Code: Select all
$ metar -v -r ksfo
Proxy host: ''
Proxy port: '80'

INPUT: 2019/01/05 21:56
KSFO 052156Z 21027G37KT 7SM FEW011 BKN022 OVC044 13/09 A2963 RMK AO2 PK WND 19048/2137 RAE2058B14E39 SLP034 P0001 T01330089 $

WoodSTokk
 
Posts: 240
Joined: Tue Oct 17, 2017 2:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: OE-WST
IRC name: WoodSTokk
Version: 2018.3.1
OS: Debian Buster/Sid

Re: No metar available

Postby wkitty42 » Sat Jan 05, 2019 10:30 pm

it is working here... the "-vc" is broken as reported but "-v -c" works fine...

Code: Select all
2019 Jan 05  17:26:12 -0500
myuser@mymachine:~$ ~/flightgear-dev/next/install/flightgear/bin/metar -vc ksfo
metar download failed: http://tgftp.nws.noaa.gov/data/observations/metar/stations/-VC.TXT (404 Not Found)
ERROR: metar download failed

METAR Report
============
Airport-Id:             KSFO
Report time:            2019/1/5 21:56 UTC
Visibility:             11.3 km                                 7 US-miles
Wind:                   from the SSW (210°) at 50 km/h          27 kt = 31.1 mph = 13.9 m/s
                        with gusts at 68.5 km/h                 37 kt = 42.6 mph = 19 m/s
Temperature:            13°C                                    55.4°F
Dewpoint:               9°C                                     48.2°F
Rel. Humidity:          77%
Pressure:               1003 hPa                                29.63 in. Hg
Sky condition:          few clouds at 1100 ft                   340 m
                        broken clouds at 2200 ft                        670 m
                        sky overcast at 4400 ft                 1340 m


2019 Jan 05  17:26:13 -0500
myuser@mymachine:~$ ~/flightgear-dev/next/install/flightgear/bin/metar -v -c ksfo
Proxy host: ''
Proxy port: '80'

INPUT: 2019/01/05 21:56
KSFO 052156Z 21027G37KT 7SM FEW011 BKN022 OVC044 13/09 A2963 RMK AO2 PK WND 19048/2137 RAE2058B14E39 SLP034 P0001 T01330089 $
        --airport=KSFO
        --start-date-gmt=2019:01:05:21:56:00
        --prop:/environment/clouds/layer[0]/coverage=few
        --prop:/environment/clouds/layer[0]/elevation-ft=1100
        --prop:/environment/clouds/layer[0]/thickness-ft=500
        --prop:/environment/clouds/layer[1]/coverage=broken
        --prop:/environment/clouds/layer[1]/elevation-ft=2200
        --prop:/environment/clouds/layer[1]/thickness-ft=500
        --prop:/environment/clouds/layer[2]/coverage=overcast
        --prop:/environment/clouds/layer[2]/elevation-ft=4400
        --prop:/environment/clouds/layer[2]/thickness-ft=500
        --prop:/environment/clouds/layer[3]/coverage=clear
        --prop:/environment/clouds/layer[3]/elevation-ft=-99999
        --prop:/environment/clouds/layer[3]/thickness-ft=500
        --prop:/environment/clouds/layer[4]/coverage=clear
        --prop:/environment/clouds/layer[4]/elevation-ft=-99999
        --prop:/environment/clouds/layer[4]/thickness-ft=500
        --prop:/environment/config/boundary/entry[0]/elevation-ft=-100
        --prop:/environment/config/boundary/entry[0]/turbulence-norm=0
        --prop:/environment/config/boundary/entry[0]/visibility-m=11265
        --prop:/environment/config/boundary/entry[0]/temperature-degc=13
        --prop:/environment/config/boundary/entry[0]/dewpoint-degc=9
        --prop:/environment/config/boundary/entry[0]/pressure-sea-level-inhg=30
        --prop:/environment/config/boundary/entry[0]/wind-from-heading-deg=210
        --prop:/environment/config/boundary/entry[0]/wind-speed-kt=27
        --prop:/environment/config/boundary/entry[1]/elevation-ft=1900
        --prop:/environment/config/boundary/entry[1]/turbulence-norm=0
        --prop:/environment/config/boundary/entry[1]/visibility-m=11265
        --prop:/environment/config/boundary/entry[1]/temperature-degc=13
        --prop:/environment/config/boundary/entry[1]/dewpoint-degc=9
        --prop:/environment/config/boundary/entry[1]/pressure-sea-level-inhg=30
        --prop:/environment/config/boundary/entry[1]/wind-from-heading-deg=210
        --prop:/environment/config/boundary/entry[1]/wind-speed-kt=27
        --prop:/environment/config/boundary/entry[2]/elevation-ft=3900
        --prop:/environment/config/boundary/entry[2]/turbulence-norm=0
        --prop:/environment/config/boundary/entry[2]/visibility-m=11265
        --prop:/environment/config/boundary/entry[2]/temperature-degc=13
        --prop:/environment/config/boundary/entry[2]/dewpoint-degc=9
        --prop:/environment/config/boundary/entry[2]/pressure-sea-level-inhg=30
        --prop:/environment/config/boundary/entry[2]/wind-from-heading-deg=210
        --prop:/environment/config/boundary/entry[2]/wind-speed-kt=27
        --wind=210@27:37

"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5555
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: No metar available

Postby sanni » Sun Jan 06, 2019 11:12 pm

Sry, a friend of mine recofigured the router -- now it works...
I failed the Turing test
User avatar
sanni
 
Posts: 173
Joined: Tue Oct 11, 2011 8:35 pm
Location: Germany
Callsign: D-Sanni
Version: 2018.3.1
OS: ArchLinux

Re: No metar available [solved]

Postby wkitty42 » Mon Jan 07, 2019 6:19 pm

FWIW: when i was testing the other day, i found that metar's ability to read and process a metar line on the command line is broken, too... it still tries to download when it should not...

@sanni: glad you found the problem and got it fixed :)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5555
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: No metar available [solved]

Postby [Lemmy] » Sat Mar 02, 2019 2:16 pm

I don't have that "metar" cli tool, where do I get it?
[Lemmy]
 
Posts: 44
Joined: Mon Jun 18, 2012 7:58 pm

Re: No metar available [solved]

Postby WoodSTokk » Sun Mar 03, 2019 2:04 am

I have installed FG from the official repositories of Debian and they include it.
How have you installed FG?
WoodSTokk
 
Posts: 240
Joined: Tue Oct 17, 2017 2:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: OE-WST
IRC name: WoodSTokk
Version: 2018.3.1
OS: Debian Buster/Sid

Re: No metar available [solved]

Postby [Lemmy] » Sun Mar 03, 2019 8:44 am

from the opensuse build service, i guess their package does not built/include it. Gotta talk to someone.
[Lemmy]
 
Posts: 44
Joined: Mon Jun 18, 2012 7:58 pm

Re: No metar available [solved]

Postby [Lemmy] » Sun Mar 03, 2019 9:26 am

ok, so now I have the metar CLI utility, but it still does not work right. Looks to me as if the URL should start with https by now... Is there a compile flag for that, or do I have to patch it?
[Lemmy]
 
Posts: 44
Joined: Mon Jun 18, 2012 7:58 pm

Re: No metar available [solved]

Postby WoodSTokk » Sun Mar 03, 2019 2:49 pm

[Lemmy] wrote in Sun Mar 03, 2019 9:26 am:ok, so now I have the metar CLI utility, but it still does not work right. Looks to me as if the URL should start with https by now...

Thats correct. 'noaa.gov' has changed the protocol to https.
[quote="[Lemmy]";p=343524]Is there a compile flag for that, or do I have to patch it?[/quote]
There isn't a compile flag. For 'https' the tool must be build with 'ssl' support, but the actual version havn't this support.
As far as I know, there should be a new version shortly. The developers are working on that problem.
WoodSTokk
 
Posts: 240
Joined: Tue Oct 17, 2017 2:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: OE-WST
IRC name: WoodSTokk
Version: 2018.3.1
OS: Debian Buster/Sid

Re: No metar available [solved]

Postby [Lemmy] » Sun Mar 03, 2019 5:53 pm

I built a flightgear package using this diff:

https://build.opensuse.org/package/view ... f?expand=1

and now I have metar weather data again.

by the way,. whoever made the original package on OBS thought that quite a few tools that come with FG were obsolete, and should be removed from the package:

Code: Select all
# remove obsolete utilities
# cd %{buildroot}%{_bindir} && rm -f GPSsmooth MIDGsmooth UGsmooth metar yasim yasim-proptest


Any thoughts on that?

Cheers
MH
[Lemmy]
 
Posts: 44
Joined: Mon Jun 18, 2012 7:58 pm

Re: No metar available [solved]

Postby WoodSTokk » Sun Mar 03, 2019 8:14 pm

[Lemmy] wrote in Sun Mar 03, 2019 5:53 pm:I built a flightgear package using this diff:

https://build.opensuse.org/package/view ... f?expand=1

and now I have metar weather data again.

by the way,. whoever made the original package on OBS thought that quite a few tools that come with FG were obsolete, and should be removed from the package:

Code: Select all
# remove obsolete utilities
# cd %{buildroot}%{_bindir} && rm -f GPSsmooth MIDGsmooth UGsmooth metar yasim yasim-proptest


Any thoughts on that?


No. Absolutely not. But you can write an email to the maintainers of the rpm package and ask.
WoodSTokk
 
Posts: 240
Joined: Tue Oct 17, 2017 2:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: OE-WST
IRC name: WoodSTokk
Version: 2018.3.1
OS: Debian Buster/Sid

Next

Return to Linux

Who is online

Users browsing this forum: No registered users and 0 guests