Access queried flightdata by Virtual Radar Server

Discussion in 'Tutorials' started by ADSBhamburg, Apr 13, 2020.

  1. ADSBhamburg

    ADSBhamburg New Member

    Hi Gents,

    I hope my topic fits correctly into the tutorials section here:

    I have a REST API Key (thanks to James) and want to query all aircraft within 100mn around my place. On top of that, I want the results to be accessed by Virtual Radar Server.

    For this purpose I have created a Python script to query the results in the first place:

    Code:
    import requests
    headers = {
        'api-auth': "MY-REST-API-KEY"
    }
    response = requests.get('ADSBx REST API request format', headers = headers)
    data = response.text
    
    print(response.text)
    As I'm a bloody beginner in coding I don't know:
    a) How can I redirect these results to VRS, e.g. to an internal port from which I can access in VRS?
    b) How can I constantly query those data in a loop so that I always get latest aircraft with positions?

    You don't coincidently have a ready-to-use script at hand or can you help me out?

    Highly appreciate your help!
    Laurenz
     
  2. James

    James Guest

    No. VRS is a No.