root@playground:~# ./squawkwatch.php
Connecting to dump1090 ... Connected!
SCAN MODE
**** SQUAWK 6302 **** from ICAO 4CA562
Entering MONITOR MODE
Waiting for further aircraft message from ICAO 4CA562 ...
12:55:41.188 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 5 pieces) 001/250 packets & 119 seconds of timeout remaining
12:55:41.332 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 5 pieces) 002/250 packets & 119 seconds of timeout remaining
12:55:41.394 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 7 pieces) 003/250 packets & 119 seconds of timeout remaining
12:55:41.788 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 7 pieces) 004/250 packets & 119 seconds of timeout remaining
12:55:42.048 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 7 pieces) 005/250 packets & 118 seconds of timeout remaining
12:55:42.242 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 006/250 packets & 118 seconds of timeout remaining
12:55:42.254 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 007/250 packets & 118 seconds of timeout remaining
12:55:42.260 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 008/250 packets & 118 seconds of timeout remaining
12:55:42.355 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 009/250 packets & 118 seconds of timeout remaining
12:55:42.363 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 010/250 packets & 118 seconds of timeout remaining
12:55:42.393 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 011/250 packets & 118 seconds of timeout remaining
12:55:43.075 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 012/250 packets & 117 seconds of timeout remaining
12:55:43.086 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 013/250 packets & 117 seconds of timeout remaining
12:55:43.619 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 014/250 packets & 117 seconds of timeout remaining
12:55:43.631 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 015/250 packets & 117 seconds of timeout remaining
12:55:43.644 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 016/250 packets & 117 seconds of timeout remaining
12:55:43.780 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 017/250 packets & 117 seconds of timeout remaining
12:55:43.800 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 018/250 packets & 117 seconds of timeout remaining
12:55:44.004 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 019/250 packets & 117 seconds of timeout remaining
12:55:44.024 - Processing new packet from ICAO 4CA562 ... awaits next packet (want 10 data pieces, have 8 pieces) 020/250 packets & 117 seconds of timeout remaining
12:55:44.033 - Processing new packet from ICAO 4CA562 ... MONITOR COMPLETE (or Packet Overdose, or Timeout). Sending what we have.
Array
(
[date] => 2014/04/22
[time] => 12:55:41.746
[icao] => 4CA562
[callsign] => RYR56CM
[altitude] => 29000
[velocity] => 360
[heading] => 186
[latitude] => 51.29187
[longitude] => -1.29750
[squawk] => 6302
)
Resuming SCAN MODE.^C
ctrl-c or kill signal received. Tidying up ...Bye!
root@playground:~#