about summary refs log tree commit diff

GoDoc Go Report Card Build Status

TLE2JSON

http api returning TLEs as json

Setup

Run the server

standalone: go run . -p <port>

docker (selfbuilt):

$ docker build . -t tle2json
$ docker run -p <port extern>:8080 tle2json

docker (prebuilt image):

$ docker pull registry.darknebu.la/emile/tle2json:latest
$ docker run -p 8080:8080 registry.darknebu.la/emile/tle2json

Populate the cache

By accessing the /dumpall endpoint, you can download all the TLEs populating the cache. The next time the file containing the TLE needs to be accessed, it doesn't need to be downloaded resulting in somwhat faster results.

Api endpoints

/ index, some examples

/dumpall manually dump all the TLEs from celestack into the data/ folder.

/{category}/{name} dump a specific TLE The TLE is searched by printing the first tle matching the given name. So by searching for SIRIUSSAT from the stations category, the TLE of the first match (SIRIUSSAT-1) will be returned, not SIRIUSSAT-2.

Convert Keppler Orbital Elements to Cartesian State Vectors: https://downloads.rene-schwarz.com/download/M001-Keplerian_Orbit_Elements_to_Cartesian_State_Vectors.pdf