libhomeradareasy collect aircraft information |
4,654,851 registered contacts 57728 unique aircraft records, 9.31% unresolved records |
| ACARS DECODER Planespotting Network Kinetic Avionics AirNav Systems Airframes.org | ||||||
| Home Docu Examples Functions Downloads Database Search Online API Success Stories News Imprint / Contact | ||||||
![]() 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. |
Adding source hosts to the library
Without hosts your library is nearly unusable and can only provide some basic informations about flights, aircrafts, airports or airlines (of cause, the lookup must be enabled) or some distance calculation functions. homeradar_addhost() will add a new SBS-1 source homeradar_drophost() delete host from your hostlist Now we add the first host to our LHR handle which was returned by the libhomeradar_init() function. The SBS-1 box is connected to the server 192.168.1.1 and the SBS-1 software is started. int hostid = homeradar_addhost(H, "192.168.1.1", 0, LHR_SBS1, LHR_ONFAILED, connectionfailed);
The first parameter is the handle which comes from libhomeradar_init() LHR_SBS1 Connect to Kinetic Avionics SBS-1 box LHR_RADARBOX Connect to Airnav Systems Radarbox
The fifth parameter is the flag for the event which should be checked (0 and sixt to NULL will not install any event handler) /* Set callback function when connection cannot be established */ (void)homeradar_onhandler(H, LHR_ONTIMEOUT, LHR_HOSTS_ALL, connectiontimeout); The homeradar_onhandler() function must be called with the library handle, the flag for the event which should be catched, the numeric hostid (or LHR_HOSTS_ALL) of the host on which the event should be installed and the address of the callback function.
|
|||||