http api returning TLEs as json
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
emile 48dec4828b
added links
3 years ago
imgs converted the svg to a png 3 years ago
.drone.yml removed the telegram notifications from the ci 3 years ago
.gitignore working 3 years ago
Dockerfile creating a /home/data/ folder 3 years ago
README.md added links 3 years ago
categories.txt added a missing s 3 years ago
funcs.go removed debug information 3 years ago
go.mod updated the tle package 3 years ago
go.sum updated the tle package 3 years ago
http.go updated the getTLE Endpoint 3 years ago
server.go updated the getTLE Endpoint 3 years ago

README.md

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