Giter Club home page Giter Club logo

launch-dashboard-api's Introduction

Launch Dashboard API

An Open Source REST API of Rocket Launch telemetry

Architecture

Usage

curl -s http://api.launchdashboard.space/v2/launches/latest/spacex | jq
{
  "mission_id": "amos-17",
  "name": "Amos-17",
  "flight_number": 84,
  "launch_library_2_id": "68ecf878-2491-4209-95fe-54f74fb163aa",
  "raw": [
    {
      "stage": 2,
      "telemetry": [
        { "time": 0, "velocity": 0.277, "altitude": 0 },
        { "time": 0.033, "velocity": 0.555, "altitude": 0 },
        { "time": 0.067, "velocity": 0.555, "altitude": 0},
        { "time": 0.1, "velocity": 0.555, "altitude": 0 },
        { "time": 0.133, "velocity": 0.555, "altitude": 0 },
        { "time": 0.166, "velocity": 0.833, "altitude": 0 },
        { "time": 0.2, "velocity": 0.833, "altitude": 0 },
        ...
        { "time": 1918.333, "velocity": 9518.333, "altitude": 525},
        { "time": 1918.366, "velocity": 9518.333, "altitude": 525}
      ]
    }
  ],
  "analysed": [
    {
      "stage": 2,
      "telemetry": [
        { "time": 0, "velocity": 0.277, "altitude": 0, "velocity_y": -0.219, "velocity_x": 0.168, "acceleration": 10.698 "downrange_distance": 0, "angle": 90, "q": 0.046996480116054146 },
        { "time": 1, "velocity": 1.97, "altitude": 0.001, "velocity_y": 2.039, "velocity_x": -0.038, "acceleration": 11.285, "downrange_distance": 0, "angle": 90, "q": 2.3762015600538513 },
        ...
        { "time": 506, "velocity": 7424.372, "altitude": 163.85, "velocity_y": -32.707, "velocity_x": 7424.301, "acceleration": -0.016, "downrange_distance": 1585.22, "angle": -0.252, "q": 0 }
      ]
    }
  ],
  "events": [
    { "key": "maxq", "time": 66 },
    { "key": "throttle_down_start", "time": 45 },
    { "key": "throttle_down_end", "time": 91 },
    { "key": "meco", "time": 169 },
    ...
  ]
}

Contributions

See Contributing.md for contribution instructions.

Derivative Content and Features

Content and features made using Launch Dashboard API

Content Description Creator Preview
Comparison between Falcon 9 Block 4 and Block 5 ASDS landings A post I've written comparing two versions (blocks) of the Falcon 9 rocket and how the latest upgrades have allowed SpaceX to reuse block 5 much faster than block 4 by reducing the stress from launch to landing Shahar603
Starlink-18 First Stage Telemetry and Analysis My analysis of first stage telemetry of a SpaceX Starlink (SpaceX's internet constellation) launch Shahar603
Unplanned engine shutdown of Falcon 9 rocket Acceleration graph from LD API affirmed the space community suspicion of an unplanned engine shutdown during Falcon 9 ascent. Later confirmed by Elon Musk on twitter Shahar603
Webcast vs Simulation graph Used by trajectory creators on FlightClub.io to compare their simulations to the real telemetry u/TheVehicleDestroyer
Aerodynamic Pressure animation An animation of the aerodynamic pressure(Q) during ascent on the AMOS-17 mission Jake Hannan
Mission Creation A tools that builds a flight plan that matches the webcast telemetry in the API u/TheVehicleDestroyer
Falcon Boosters' Entry Energy Comparison A diagram that compares total energy of the Falcon boosters' reentry energy Shahar603

Apps and Clients

Clients and Apps using Launch Dashboard API

Client Description Creator
FlightClub.io Rocket Launch Simulation and Visualization u/TheVehicleDestroyer
.NET Launch Dashboard .NET Wrapper for Launch Dashboard API Tearth

Data Sources

The Source of the data in the API

Launch Provider Tool Creator
SpaceX SpaceXtract Shahar603
RocketLab SpaceXtract Shahar603
Arianespace VideoTelemetryParser Hitura-Nobad

launch-dashboard-api's People

Contributors

dependabot[bot] avatar shahar603 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

launch-dashboard-api's Issues

Is the videostreaming scraper still being used?

I have tried to connect to the websocket, but the server simply disconnects me. Furthermore, I can't seem to find any recent launch telemetry.

Are you still running the videostream/scraper software?

WebSocket - connection closed before receiving a handshake response

I was trying to connect to the WebSocket server (wss://api.launchdashboard.space/), but looks like there is some problem. I ran the sample code in Node.js with success, but it's the only one which works - I tried a few libraries in C#, online WebSocket clients and they can't connect.

You can check it here for example: http://demos.kaazing.com/echo/index.html. When trying to connect, the log shows these messages:

CONNECT: wss://api.launchdashboard.space/
CLOSED: (1006) 

Looking at the developer console in Chrome we get some additional info:

WebSocket connection to 'wss://api.launchdashboard.space/?.kl=Y' failed: Connection closed before receiving a handshake response

I don't know Node.js too well to check code in your backend, but I've searched in Google and looks like it's quite common problem with Socket.io library, especially when someone creates by accident two instances of it on example. Sample links:

GitHub issues -
socketio/socket.io#2045
feathersjs-ecosystem/socketio#84

StackOverflow -
https://stackoverflow.com/questions/26665840/socket-io-failed-connection-closed-before-receiving-a-handshake-response/44196108

Server reponse for Python request

Hi everybody !

I am super excited to use this beautiful tool Launch-Dashboard-API. Personally, I am using only Python script (I know pretty close to 0 in js) so I was wondering if it was possible to do it with request. I have already exchanged data with APIs like the Google Maps API so I know how request work but currently I am having some problems with this API for a few tests.

import requests

url = "https://api.launchdashboard.space/v2/launches/spacex?flight_number=45"

payload={}
headers = {}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Then I get the following error.

---------------------------------------------------------------------------
ConnectionRefusedError                    Traceback (most recent call last)
~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connection.py in _new_conn(self)
    174             conn = connection.create_connection(
--> 175                 (self._dns_host, self.port), self.timeout, **extra_kw
    176             )

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\util\connection.py in create_connection(address, timeout, source_address, socket_options)
     95     if err is not None:
---> 96         raise err
     97 

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\util\connection.py in create_connection(address, timeout, source_address, socket_options)
     85                 sock.bind(source_address)
---> 86             sock.connect(sa)
     87             return sock

ConnectionRefusedError: [WinError 10061] Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée

During handling of the above exception, another exception occurred:

NewConnectionError                        Traceback (most recent call last)
~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    705                 headers=headers,
--> 706                 chunked=chunked,
    707             )

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    381         try:
--> 382             self._validate_conn(conn)
    383         except (SocketTimeout, BaseSSLError) as e:

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connectionpool.py in _validate_conn(self, conn)
   1009         if not getattr(conn, "sock", None):  # AppEngine might not have  `.sock`
-> 1010             conn.connect()
   1011 

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connection.py in connect(self)
    357         # Add certificate verification
--> 358         conn = self._new_conn()
    359         hostname = self.host

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connection.py in _new_conn(self)
    186             raise NewConnectionError(
--> 187                 self, "Failed to establish a new connection: %s" % e
    188             )

NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x0000026642302788>: Failed to establish a new connection: [WinError 10061] Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée

During handling of the above exception, another exception occurred:

MaxRetryError                             Traceback (most recent call last)
~\anaconda3\envs\FalconAI\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
    448                     retries=self.max_retries,
--> 449                     timeout=timeout
    450                 )

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    755             retries = retries.increment(
--> 756                 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
    757             )

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\util\retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
    573         if new_retry.is_exhausted():
--> 574             raise MaxRetryError(_pool, url, error or ResponseError(cause))
    575 

MaxRetryError: HTTPSConnectionPool(host='api.launchdashboard.space', port=443): Max retries exceeded with url: /v2/launches/spacex?flight_number=45 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000026642302788>: Failed to establish a new connection: [WinError 10061] Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée'))

During handling of the above exception, another exception occurred:

ConnectionError                           Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_952/2002079659.py in <module>
      6 headers = {}
      7 
----> 8 response = requests.request("GET", url, headers=headers, data=payload)
      9 
     10 print(response.text)

~\anaconda3\envs\FalconAI\lib\site-packages\requests\api.py in request(method, url, **kwargs)
     59     # cases, and look like a memory leak in others.
     60     with sessions.Session() as session:
---> 61         return session.request(method=method, url=url, **kwargs)
     62 
     63 

~\anaconda3\envs\FalconAI\lib\site-packages\requests\sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
    540         }
    541         send_kwargs.update(settings)
--> 542         resp = self.send(prep, **send_kwargs)
    543 
    544         return resp

~\anaconda3\envs\FalconAI\lib\site-packages\requests\sessions.py in send(self, request, **kwargs)
    653 
    654         # Send the request
--> 655         r = adapter.send(request, **kwargs)
    656 
    657         # Total elapsed time of the request (approximately)

~\anaconda3\envs\FalconAI\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
    514                 raise SSLError(e, request=request)
    515 
--> 516             raise ConnectionError(e, request=request)
    517 
    518         except ClosedPoolError as e:

ConnectionError: HTTPSConnectionPool(host='api.launchdashboard.space', port=443): Max retries exceeded with url: /v2/launches/spacex?flight_number=45 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000026642302788>: Failed to establish a new connection: [WinError 10061] Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée'))

Sorry it is in french as my jupyter notebook. I was wondering if the server is down or I am doing it all wrong @shahar603 ?
Thx in advance for the help 😀
VA

Mismatch between documentation and API responses

There is a small mismatch between what the documentation says, and what API returns from the endpoints: "analysed", "events", "raw". We can read that all of them have mission header (with fields: "mission_id", "name", "flight_number", "launch_libray_id") like this:

{
  "mission_id": "amos-17",
  "name": "Amos-17",
  "flight_number": 83,
  "launch_library_id": 1388,
  "events": [
    { "key": "maxq", "time": 66 },
    { "key": "throttle_down_start", "time": 45 }
  ]
}

But looks like API returns data without header, and contains only array with requested data:

[
   { "key":"maxq", "time":66 },
   { "key":"throttle_down_start", "time":45 }
]

The only endpoint which contains mission header is "launches", and here documentation is correct.

Features, Data and Telemetry Suggestions 🚀

If you have suggesions, requests for data you want the API to contain (for example telemetry from a launch provider which isn't covered by the API), this is the place to post them.

Server down

Hi Shahar. The server at api.launchdashboard.space has been down for the last few days. I was hoping to take a look at some more recent launch data.

Please contact us

Dear Sharhar603,

I have been looking closely at your live telemetry feed and the Telemetry API/WebSockets and I am very interested in trying this capability into our core software at Saber Astronautics.

Is there a good email address I can get in touch with you at? Alternatively, feel free to send me an email to: [email protected]

Regards,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.