Searching, please wait...

libhomeradar

easy collect aircraft information
~50,000,000 registered contacts
303894 unique aircraft records, 28.78% unresolved records
 ACARS DECODER Planespotting Network Kinetic Avionics AirNav Systems Airframes.org Atlas Tracking
libhomeradar - easy collect aircraft informations

libhomeradar is an easy to use library for all type of programming language which can use libraries. libhomeradar can connect to different sources to collect aircraft informations arround the world with extended informations, powerful filtering and structured data access.

libhomeradar is written in C and is available for Linux and Windows (2003, XP, NT, Vista).

Currently libhomeradar works with the Kinetic Avionics SBS-1 base station and the Airnav Systems Radarbox.


Yahoo! My Web  Google Bookmarks  Windows Live  Facebook  Ask  del.icio.us  Furl 
 

libhomeradar configuration options

These flags will be used for the homeradar_init() function or for the homeradar_config() function to modify contact handling, modify database lookups and some other functions.


 
/* Flags to controll libhomeradar */
#define LHR_LOOKUP_TYPE         (int)0x00000001  // Lookup aircraft type on every contact
#define LHR_LOOKUP_AIRLINE      (int)0x00000002  // Lookup airline for every contacted aircraft
#define LHR_LOOKUP_FLIGHT       (int)0x00000004  // Lookup flight and resolve flight
#define LHR_LOOKUP_REG          (int)0x00000008  // Lookup aircraft registration on every contact
#define LHR_LOOKUP_ROUTE        (int)0x00000010  // Lookup route by flightnumber
#define LHR_LOOKUP_FULLROUTE    (int)0x00000020  // Lookup airports for this flight
#define LHR_AUTOCONNECT         (int)0x00000040  // Connect to new added hosts
#define LHR_NOCALLBACKTHEADS    (int)0x00000080  // Callbacks will be started in the same process
#define LHR_DISABLEFILTER       (int)0x00000100  // Stop filtering
#define LHR_CHANGETIMEOUT       (int)0x00000200  // Change timeout for hostconnects
#define LHR_LOCATION_LAT        (int)0x00000400  // Location of this system (LAT)
#define LHR_LOCATION_LON        (int)0x00000800  // Location of this system (LON)
#define LHR_NOAIRCONTACTS       (int)0x00001000  // Dont include AIR contacts 
                                                 // (new contacted aircrafts)
#define LHR_PUBLIC_CONTACTS     (int)0x00002000  // Send all contacts to the collector server
                                                 // collector.libhomeradar.org port 8080
#define LHR_LISTENER_MAX        (int)0x00004000  // Max. incoming connections for the listener
#define LHR_CONNECTION_MAX      (int)0x00008000  // Max. incoming connections for the listensocket
#define LHR_IQUEUE_MAX          (int)0x00010000  // Max. items in incoming socket queue before 
                                                 // processing. Default is 1 item
#define LHR_DO_DUPECHECK        (int)0x00020000  // Enable or disable check for duplicate messages
#define LHR_NO_DB_CHECK         (int)0x00040000  // Dont check database files for updates
#define LHR_LOG_ENABLE          (int)0x00080000  // Create logfile (see control flags below)

/* --------------------------------- */
/* Available from libhomeradar 1.002 */
/* --------------------------------- */
#define LHR_LOG_DATATIMEOUT     (int)0x00200000  // Timeout in seconds between messages 
                                                 // (default 120 seconds)
                                                 // If timeout will be reached, the ONDATATIMEOUT 
                                                 // event will be thrown
/* --------------------------------- */
/* Available from libhomeradar 1.003 */
/* --------------------------------- */
#define LHR_CALC_RANGE          (int)0x00400000  // Enable automatic distance calculation
                                                 // between server and aircraft position
#define LHR_ICAO24_DECODER      (int)0x00800000  // Enable country lookup for ICAO24-addresses
#define LHR_ICAO24_CCHECK       (int)0x01000000  // Check resolved registration and airline
                                                 // against resolved country.

/* --------------------------------- */
/* Available from libhomeradar 1.004 */
/* --------------------------------- */
#define LHR_WITHOUT_HOSTS       (int)0x02000000  // Run without input sources
#define LHR_SHARE_LIMIT         (int)0x04000000  // Limit for sim. connects to the share port
#define LHR_SHARE_BLOCK         (int)0x08000000  // Block all IP's by default (TRUE) or allow all (FALSE)
                                                 // Default = Allow all. See also libhomeradar_share() function
#define LHR_CONTROL_IF          (int)0x10000000  // Enable or disable the LHR control interface on port ?????
#define LHR_CONTROL_IF_LIMIT    (int)0x20000000  // Set limit of sim. connections to the control interface
                                                 // 0 will drop all limits (not a good idea)
                                                 // below 0 will return the current limit
#define LHR_CONTROL_IF_PORT     (int)0x40000000  // Change port for the control interface
                                                 // If the CTRL IF is running, you have to restart it
#define LHR_CONTROL_IF_HOST     (int)0x80000000  // IP or hostname to listen to

#define LHR_LOOKUP_ALL		(LHR_LOOKUP_TYPE|LHR_LOOKUP_AIRLINE|LHR_LOOKUP_FLIGHT|LHR_LOOKUP_REG|LHR_LOOKUP_ROUTE|LHR_LOOKUP_FULLROUTE)

/* Flags for the homeradar_logcontrol() function */
#define LHR_LOG_CREATE          (int)1  	// Enable logfile creation (see also LHR_LOG_ENABLE flag above)
#define LHR_LOG_STOP            (int)2  	// Stop logfile creation
#define LHR_LOG_FLUSH           (int)3  	// Write internal buffer into file
#define LHR_LOG_LOCATION        (int)4  	// Set name and location for the logfile
#define LHR_LOG_CLEAR           (int)5  	// Clear logfile buffer without writing it to disc
#define LHR_LOG_LEVEL           (int)6  	// Set loglevel. Default is LHR_LOG_LEVEL_LOW
#define LHR_LOG_OUTPUT          (int)7   	// Output logfile content to the given FILE* type handle


#define LHR_LOOKUP_ALL ... // Is a macro to enable all lookups

/* Flags for the homeradar_logcontrol() function */
#define LHR_LOG_CREATE          (int)1  	// Enable logfile creation (see also LHR_LOG_ENABLE)
#define LHR_LOG_STOP            (int)2  	// Stop logfile creation
#define LHR_LOG_FLUSH           (int)3  	// Write internal buffer into file
#define LHR_LOG_LOCATION        (int)4  	// Set name and location for the logfile
#define LHR_LOG_CLEAR           (int)5  	// Clear logfile buffer without writing it to disc
#define LHR_LOG_LEVEL           (int)6  	// Set loglevel. Default is LHR_LOG_LEVEL_LOW
#define LHR_LOG_OUTPUT          (int)7   	// Output logfile content to the given FILE* type handle

/* Possible logfile levels */
#define LHR_LOG_LEVEL_ERROR     (int)7           // Log only errors
#define LHR_LOG_LEVEL_LOW       (int)3           // Log errors and other important events
#define LHR_LOG_LEVEL_NORMAL    (int)2           // See LHR_LOG_LEVEL_LOW + more informations
#define LHR_LOG_LEVEL_VERBOSE   (int)1           // See LHR_LOG_LEVEL_NORMAL + additional informations
#define LHR_LOG_LEVEL_FULL      (int)0           // Log all!

/* Mode flags for the homeradar_socketinput() function */
#define LHR_POLL                (int)0           // Single connection
#define LHR_PUSH                (int)1           // Multiple connection