FlightAirMap - watching Your live Data next Level

Thanks TomMuc. As a service. No, I am not getting any stats either. Do I need to uncomment #@reboot sleep 10 && … in crontab?

Can you please check the following tell me how should my settings look if I try to connect to a Radarcape giving out raw data?

//ADS-B, SBS1 FORMAT
$globalSBS1 = FALSE; //set to FALSE to not use SBS1 as data import
$globalSourcesTimeOut = '15';
$globalSourcesupdate = '10'; //Put data in DB after xx seconds/flight

//DATA SOURCES
$globalSources = array(array('host' => '192.168.1.170','port' => '30334','name' => '','format' => 'raw','sourcestats' => FALSE,'noarchive' => FALSE,'timezone' => 'UTC','callback' => FALSE));

nope - is just meant as a backup for those who do not want or are able to setup the system service

dont remeber the radarcape ports as this was two years ago when i used one. the simplest and fastest workaround i’d try now. install dump1090-mutability on the pi → connect dump1090 to radarcape → see if the aircrafts show up in dump1090 map → then connect flightairmaps to aircraft.json. this is by the way much less cpu demanding for the pi than to directly use the tcp stream from radarcape because dump1090 written in c is muuuch faster than any script like php or python is. and in addition with aircraft.json you get mlat inclusive anonymized mlat data too …

or simply use my way described above from a to z that worked for many others out of the box :slight_smile:

Thanks. I will try installing dump1090-mutability and see how it goes. If not then will do it from scratch as you have described.

NEWS: developer of FlightAirMaps added a super-cool new feature. up to now it was not easy to select a distinct flight in 3d mode and moreover slower computers struggled in 3d mode having all received aircrafts in 3d mode. now it is possible within sidebar-menu to select ‘Only display selected flight on 3D mode’ → then you can easily select the desired aircraft in 2d mode → and after switching to 3d only this aircraft instantly shows up.

cd /var/www/html/flightairmap/
sudo git pull

and then to update database for some other enhancements that were done over last days

sudo /usr/bin/php /var/www/html/flightairmap/scripts/update_db.php

sudo git pull
Updating caeb574…314f844
error: Your local changes to the following files would be overwritten by merge:
js/map.3d.js.php
Please commit your changes or stash them before you merge.

sudo git checkout js/map.3d.js.php

:slight_smile: thanks…disable the play shadows…

:slight_smile: i also do not really like this kind of sun-shadows on models and keep them switched off

In the installation guide are the two lines

sudo nano /var/www/html/phpinfo.php
sudo nano /etc/php/7.0/cgi/php.ini

What is to edit in these files?

sorry - my fault!

  • phpinfo.php does not apply to flightairmap
  • php.ini you have to set max_execution_time to 0

i delete the first and add the explanation in above howto

Thank you TomMuc.

dump1090 is running and I can see data with --interactive.
But lighttpd does fail.

pi@raspberrypi:~ $ /etc/init.d/lighttpd status
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2017-10-13 20:03:07 UTC; 7min ago
Process: 704 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)

Okt 13 20:03:06 raspberrypi systemd[1]: Failed to start Lighttpd Daemon.
Okt 13 20:03:06 raspberrypi systemd[1]: lighttpd.service: Unit entered failed state.
Okt 13 20:03:06 raspberrypi systemd[1]: lighttpd.service: Failed with result ‘exit-code’.
Okt 13 20:03:07 raspberrypi systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Okt 13 20:03:07 raspberrypi systemd[1]: Stopped Lighttpd Daemon.
Okt 13 20:03:07 raspberrypi systemd[1]: lighttpd.service: Start request repeated too quickly.
Okt 13 20:03:07 raspberrypi systemd[1]: Failed to start Lighttpd Daemon.
Okt 13 20:03:07 raspberrypi systemd[1]: lighttpd.service: Unit entered failed state.
Okt 13 20:03:07 raspberrypi systemd[1]: lighttpd.service: Failed with result ‘exit-code’.

no idea what went wrong there - you could try do disable the lighttpd modules that are enabled and see if one of them causes the errors …

Check if folder /var/log/lighttpd and file /var/log/lighttpd/error.log exists. If not, create these manually and restart lighttpd sudo systemctl restart lighttpd.

error.log exists with these entries:

2017-10-13 20:51:34: (log.c.217) server started
 2017-10-13 20:53:16: (server.c.1828) server stopped by UID = 0 PID = 1
 2017-10-13 20:53:17: (log.c.217) server started
 2017-10-13 20:53:47: (server.c.1828) server stopped by UID = 0 PID = 1
 2017-10-13 20:53:48: (log.c.217) server started
 2017-10-13 20:54:12: (server.c.1828) server stopped by UID = 0 PID = 1
 2017-10-13 20:54:13: (log.c.217) server started
 2017-10-13 20:54:47: (server.c.1828) server stopped by UID = 0 PID = 1
 2017-10-13 20:55:00: (log.c.217) server started
2017-10-13 21:07:22: (server.c.1828) server stopped by UID = 0 PID = 1

I think my problem is with

sudo nano /etc/lighttpd/conf-available/89-flightairmap-lighttpd.conf

Not sure, what exactly to edit there.
I changed

"/flightairmap" => "/var/www/flightairmap/"
to
 "/flightairmap" => "/var/www/html/flightairmap/"

and

include "/var/www/flightairmap/install/flightairmap-lighttpd-sub-conf.include"
to
include "/var/www/flightairmap/html/install/flightairmap-lighttpd-sub-conf.include"

After sudo service lighttpd force-reload I get

Job for lighttpd.service failed because the control process exited with error code.
See "systemctl status lighttpd.service" and "journalctl -xe" for details.

systemctl status lighttpd.service shows:

● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled) 
Active: failed (Result: exit-code) since Fri 2017-10-13 21:22:44 UTC; 1min 9s ago
Process: 589 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Process: 1483 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)
Main PID: 589 (code=exited, status=0/SUCCESS)

Okt 13 21:22:44 raspberrypi systemd[1]: Failed to start Lighttpd Daemon.
Okt 13 21:22:44 raspberrypi systemd[1]: lighttpd.service: Unit entered failed state.
Okt 13 21:22:44 raspberrypi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Okt 13 21:22:44 raspberrypi systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Okt 13 21:22:44 raspberrypi systemd[1]: Stopped Lighttpd Daemon.
Okt 13 21:22:44 raspberrypi systemd[1]: lighttpd.service: Start request repeated too quickly.
Okt 13 21:22:44 raspberrypi systemd[1]: Failed to start Lighttpd Daemon.
Okt 13 21:22:44 raspberrypi systemd[1]: lighttpd.service: Unit entered failed state.
Okt 13 21:22:44 raspberrypi systemd[1]: lighttpd.service: Failed with result 'exit-code'.

and journalctl -xe shows:

-- Unit flightairmap.service has finished shutting down.
Okt 13 21:27:12 raspberrypi systemd[1]: Started FlightAirMap.
-- Subject: Unit flightairmap.service has finished start-up
-- Defined-By: systemd
-- Support: ht.....debian.org/support
--
-- Unit flightairmap.service has finished starting up.
--
-- The start-up result is done.
Okt 13 21:27:12 raspberrypi daemon-spotter.php[1555]: Can't connect to your database. Check DB is running, user/password and database logs.
Okt 13 21:27:22 raspberrypi systemd[1]: flightairmap.service: Service hold-off time over, scheduling restart.
Okt 13 21:27:22 raspberrypi systemd[1]: Stopped FlightAirMap.
-- Subject: Unit flightairmap.service has finished shutting down
-- Defined-By: systemd
-- Support: ht.....debian.org/suppor
--
-- Unit flightairmap.service has finished shutting down.
Okt 13 21:27:22 raspberrypi systemd[1]: Started FlightAirMap.
-- Subject: Unit flightairmap.service has finished start-up
-- Defined-By: systemd
-- Support: ht.....debian.org/suppor
--
-- Unit flightairmap.service has finished starting up.
--
-- The start-up result is done.
Okt 13 21:27:23 raspberrypi daemon-spotter.php[1557]: Can't connect to your database. Check DB is running, user/password and database logs.

please clean up that mess post in this thread! if you want post lots of code her you have to ident every single line with 4 blanks.

this line is wrong anyways html directory in wrong position of path:

include “/var/www/flightairmap/html/install/flightairmap-lighttpd-sub-conf.include”

must be

include “/var/www/html/flightairmap/install/flightairmap-lighttpd-sub-conf.include”

Comment-out symbol # at start of a line with a space after it, like
# abcdefgh…
acts as heading in mark-down system used in this new forum, and commented-out lines creaet a mess when posted

# Unless you post it as code

by placing 4 spaces before each line, as suggested by TomMuc.

1 Like

@TomMuc
@abcd567
Thank you for your help and your patience.
It’s running now and the next thing is to to find out all the features and to learn, how to use them.
This was my first posting here and I’m overwhelmed seeing the quick response and real help.
Thank you guys.

1 Like