Announcement

Collapse
No announcement yet.

log aircraft seen to a file?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Found a Python script that retrieves all the fields in the JSON file and outputs to tab-delimited files. (You can comment out the uninteresting columns).

    https://discussions.flightaware.com/...r-rpi/74400/12


    .

    Comment


    • #17
      This setup works as wanted:

      Start "nc localhost 30003 > /var/log/fr24feed/fr24raw.log"

      Run "more /var/log/fr24feed/fr24raw.log |grep MSG,1|cut -d "," -f 5,8,11 |sort -t "," -k1|uniq -s 21|sort -t "," -k2 -s >> /var/www/html/fr24.txt"

      This will output (on the local web):

      (ICAO,hh:mm:ss.sss,CS)

      42445B,01:21:41.808,AZV555

      However, I can't make the nc to continue to run "for ever". It dies after a few hours.

      Comment


      • #18
        When working it gives the info I want. Plain and simple sorted by time-of-day. Now. if I only could make it run 24/7..

        2021-04-21 18:39

        IACO ,HH:MM:SS.sss,Callsign
        ----------------------------
        4AC8B3,16:12:55.290,SAS276C
        4ACAA4,16:28:41.872,SAS4478
        4ACAA3,16:36:14.283,SAS4546
        4AC9EA,16:37:05.186,SAS4094
        45C824,16:41:30.398,MMD5090
        4AC8B3,18:12:49.318,SAS4117
        4ACA09,18:35:01.039,NAX397

        Comment

        Working...
        X