I want to be able to log all aircraft that are seen by my receiver, along with tail no etc. Is there an option to do this?
Announcement
Collapse
No announcement yet.
log aircraft seen to a file?
Collapse
X
-
-
Putty has a mOX port by the way.. unsure if telnet still works the same however
The alternate I mentioned is java based. But complex to setup.
Virtual radar server also has a macOS port http://www.virtualradarserver.co.uk/download.aspx (built on java)
That has addons that can do logging
But you may not get everything in 1 go. As alluded to in your other question thread, the plane only sends
MSG,4,111,11111,7C6B12,111111,2019/12/13,21:13:08.000,2019/12/13,21:13:08.000,,,458.1,39.6,,,0,,0,0,0,0
MSG,3,111,11111,C82269,111111,2019/12/13,21:13:08.000,2019/12/13,21:13:08.000,,37975,,,-43.57503,171.70692,,,0,0,0,0
MSG,8,111,11111,C8200A,111111,2019/12/13,21:13:08.000,2019/12/13,21:13:08.000,,,,,,,,,0,0,0,0
MSG,3,111,11111,C81E27,111111,2019/12/13,21:13:07.000,2019/12/13,21:13:07.000,,12675,,,-43.16286,172.71971,,,0,0,0,0
It also needs something that can find the bold bit and match it with a record of the type/registration and so on to fill in the gapsPosts not to be taken as official support representation - Just a helpful uploader who tinkers
Comment
-
So if I use the Telnet (telnet 192.168.1.43 30003)
I can get the msgs as posted above, is there a linux command that will let me direct this output to a file so I can analyse later?
or even better save on my mac as i am remotely logged into my Pi using bash?
Comment
-
Data is saved in the .json files in Pi's following folder:
If you have dump1090-mutability, files are in folder "/run/dump1090-mutability"
If you have dump1090-fa, files are in folder"/run/dump1090-fa"
Read data:
Code:cat /run/dump1090-mutability/aircraft.json ## OR cat /run/dump1090-fa/aircraft.json
The old files get deleted on reboot of Pi, and fresh files are then created.Last edited by abcd567; 2020-02-01, 00:29.
Comment
-
Coupe has been updating if you want to get super technical
https://github.com/srsampson/ADSBMySQL
I use an older version (my dbase is up to 20Gb now!) to create fancy logging pages that can be searched and so on
Attached FilesPosts not to be taken as official support representation - Just a helpful uploader who tinkers
Comment
-
There's a ADSBSQLite version that I was playing with. It didn't like multiple clients using it, as it kind of slowed way down. But just as a program to save data it might be useful as a start to modifying it (source code is there). I went back to MySQL which is designed for many clients. I know MySQL is not easy to setup though.
https://github.com/srsampson/ADSBSQLite
P.S. The date and time in the tables is just a "long" integer in UTC time. Most computer languages can convert this to a more readable timestamp.Last edited by coupe; 2020-02-03, 07:11.
Comment
-
Originally posted by Oblivian View PostCoupe has been updating if you want to get super technical
https://github.com/srsampson/ADSBMySQL
I use an older version (my dbase is up to 20Gb now!) to create fancy logging pages that can be searched and so on
Comment
-
One of the bad things about the Raspberry Pi is that it normally just uses a SD card. You can only write to those things for awhile, and then they self-destruct.
The workaround is to use a USB hard drive, and modify the bootup to use the harddrive. Then you can write without worries. (use google search)
Another way is to create a network mount to your Desktop or Server and then store the data on the mounted filesystem.
I have a NAS storage system that uses the ODROID HC2 so, like a RPi it can run MySQL or other database and store the data on the local harddrive, and then I can mount that on my Workstation. The SD card is just used for booting and normal OS stuff.
Comment
-
Originally posted by coupe View Post
Your version is a little more sophisticated, ha, as I believe you are using local time. I think the latest is now only UTC time again.
$userSubmittedTimezoneString="NZ";
$userTimezone = new DateTimeZone($userSubmittedTimezoneString);
$gmtTimezone = new DateTimeZone('GMT');
$myDateTime = new DateTime($LOGROW['utcfadeout'], $gmtTimezone);
$offset = $userTimezone->getOffset($myDateTime);
$myNewDate = date('d-m', $myDateTime->format('U') + $offset);
$myNewTime = date('H:i', $myDateTime->format('U') + $offset);Posts not to be taken as official support representation - Just a helpful uploader who tinkers
Comment
Comment