User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

The real time weather feature on FlightGear is broken due to website moving http to enforce https traffic instead.

Based on this post it is a known bug and seems to have been fixed in the git repo.

For those who don't want to git clone and build from source there is an simple alternative: Setup an HTTP Proxy 


The following steps were executed in Linux, it shold be simple to implement on Windows or Mac:


1. Edit /etc/hosts and added the following entry:

$ sudo echo >>/etc/hosts


2. Install Apache web server:

$ sudo apt install apache2


3. Update default server virtualhost  in /etc/apache2/sites-available/000-default.conf configuration to:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
#Include conf-available/serve-cgi-bin.conf
ProxyRequests Off
ProxyPreserveHost On
SSLProxyEngine on
<Proxy *>
Order deny,allow
Allow from all

ProxyPass "/data/observations/metar/stations/" ""
ProxyPassReverse "/data/observations/metar/stations/" ""



4. Enable proxy and ssl modules:

$ cd /etc/apache2/mods-enabled
$ sudo ln -s ../mods-available/proxy.load
$ sudo ln -s ../mods-available/proxy.conf
$ sudo ln -s ../mods-available/ssl.load
$ sudo ln -s ../mods-available/ssl.conf
$ sudo ln -s ../mods-available/proxy_http.load
$ sudo ln -s ../mods-available/proxy_http2.load


5. Restart Apache:

$ sudo apachectl stop; sudo apachectl start


Have fun!