Skip to content
This repository was archived by the owner on Aug 16, 2020. It is now read-only.

martinohanlon/flightdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

This repository and project has now been archived and is no longer supported. The code will remain available for reference and information.

Piaware Flight Data Reader

Martin O'Hanlon (martin@ohanlonweb.com)

Description

A python 3 module to read flight data from the PiAware solution.

http://www.stuffaboutcode.com/2015/09/read-piaware-flight-data-with-python.html

Structure

  • flightdata.py - the flightdata python module

Usage

from flightdata import FlightData
from time import sleep

myflights = FlightData()
while True:
	#loop through each aircraft found
	for aircraft in myflights.aircraft:

		#read the aircraft data
		print(aircraft.hex)
		print(aircraft.squawk)
		print(aircraft.flight)
		print(aircraft.lat)
		print(aircraft.lon)
		print(aircraft.validposition)
		print(aircraft.altitude)
		print(aircraft.vert_rate)
		print(aircraft.track)
		print(aircraft.validtrack)
		print(aircraft.speed)
		print(aircraft.messages)
		print(aircraft.seen)
		print(aircraft.mlat)

sleep(1)

#refresh the flight data
myflights.refresh()

Version history

  • 0.1 - Initial stable version

About

A python 3 module for reading flight data from PiAware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages