smartbutnot / flightportal

Project for displaying the details of planes overhead on an Adafruit MatrixPortal and LED matrix
267 stars 25 forks source link

Filter by altitude #15

Closed tj1816 closed 1 year ago

tj1816 commented 1 year ago

Is there any way to change which flights are displayed with an altitude filter?

smartbutnot commented 1 year ago

Yep, there's an example in the main code file:

    # optional filter example - check things and return false if you want

    # if altitude > 10000:
    #    print("Altitude Filter matched so don't display anything")
    #    return False