Hmmm.... I'm not much further towards solving this - however if anyone can throw some light on the problem - I have done a bit of experimenting and discovered a few clues which might give an indication to someone who understands this better than me. I have tried this out on a second installation of Flightgear (almost identical to the original one) Ubuntu 14.10 and Flightgear 3.4. It works fine - the map shows the correct location and the plane icon moves. There is no need to move the plane a tiny bit before the map updates - briefly shows Germany then the correct location as mentioned by F-JJTH. My main system remains stubbornly unresponsive although everything else appears to work fine. My guess is there is a problem somewhere in the httpd setup. The webserver is working - it displays the initial map and allows me to browse the property tree from the menu in localhost:5500/gui/ .
I have looked at the log files from the working and non working systems and identified some differences which seem to be important but I don't know enough to be sure of what they are telling me. Here are a couple of extracts from the log relating to the request to the hpptd. Basically I took simple FG startup with minimal options but included --httpd=5500 then used a browser to look at the map and refreshed it a few times. Log level is set to "Info" on both systems and I compared the logs - see extracts below
This one from the system that works:
- Code: Select all
RegularConnection::request for /gui/map/
RegularConnection::request for /gui/3rdparty/jquery/jquery.min.js
RegularConnection::request for /gui/3rdparty/leaflet-0.7.3/leaflet.css
RegularConnection::request for /gui/3rdparty/leaflet-0.7.3/leaflet.js
RegularConnection::request for /gui/3rdparty/flot/jquery.flot.js
RegularConnection::request for /gui/lib/props.js
RegularConnection::request for /gui/lib/jquery.flot.prop.js
RegularConnection::request for /gui/map/images/aircraft.svg
RegularConnection::request for /gui/map/images/followAircraft.svg
RegularConnection::request for /gui/3rdparty/leaflet-0.7.3/images/layers.png
RegularConnection::request for /navdb
FGPositioned::typeFromName: couldn't match:om
RegularConnection::request() responding 10819 Bytes, done=1
RegularConnection::request for /json/ai/models
JsonUriHandler: request is '/json/ai/models'
RegularConnection::request() responding 35764 Bytes, done=1
RegularConnection::request for /gui/map/images/ndb.svg
RegularConnection::request for /gui/map/images/dme.svg
RegularConnection::request for /gui/map/images/airport-unpaved.svg
RegularConnection::request for /gui/map/images/airport-paved.svg
WebsocketConnection::request for /PropertyListener
new PropertyChangeWebsocket for: /PropertyListener
httpd: addListener '/position/latitude-deg' success
WebsocketConnection::request for /PropertyListener
WebsocketConnection::request for /PropertyListener
httpd: addListener '/position/longitude-deg' success
WebsocketConnection::request for /PropertyListener
WebsocketConnection::request for /PropertyListener
httpd: addListener '/orientation/heading-deg' success
WebsocketConnection::request for /PropertyListener
WebsocketConnection::request for /PropertyListener
httpd: addListener '/velocities/groundspeed-kt' success
WebsocketConnection::request for /PropertyListener
RegularConnection::request for /gui/map/images/vor.svg
RegularConnection::request for /gui/3rdparty/leaflet-0.7.3/images/marker-icon.png
RegularConnection::request for /gui/3rdparty/leaflet-0.7.3/images/marker-shadow.png
And this from the one that does not work:
- Code: Select all
RegularConnection::request for /gui/map/
RegularConnection::request for /gui/3rdparty/leaflet-0.7.3/leaflet.css
RegularConnection::request for /gui/3rdparty/jquery/jquery.min.js
RegularConnection::request for /gui/3rdparty/leaflet-0.7.3/leaflet.js
RegularConnection::request for /gui/3rdparty/flot/jquery.flot.js
RegularConnection::request for /gui/lib/props.js
RegularConnection::request for /gui/lib/jquery.flot.prop.js
RegularConnection::request for /gui/map/images/aircraft.svg
RegularConnection::request for /gui/map/images/followAircraft.svg
RegularConnection::request for /gui/3rdparty/leaflet-0.7.3/images/layers.png
It looks like there is a lot of stuff missing in the log in response to a browser refresh of the one that does not work, and the one that does work responds with some bytes (10819 in one case).
I would be very grateful if someone who knows a bit about how this works could give me a clue as to what might be wrong. I'm reluctant to copy bits of Flightgear from one system to the other without some basic understanding of what has happened. I do not think there are significant errors in the rest of the log that point to a failure in setting up the httpd system or anything else.
Regards
Mark