SkillAgentSearch skills...

Pyephemapi

tiny rest api for pyephem

Install / Use

/learn @tmcw-up-for-adoption/Pyephemapi
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

pyephemapi

An incredibly tiny project to make a REST API for PyEphem so that you can do TLE to satellite position but not write your own server or think too much.

example

var tle =     [
  'WORLDVIEW-1 (WV-1)',
  '1 32060U 07041A   13222.53694131  .00003301  00000-0  13725-3 0  5540',
  '2 32060  97.3385 296.1673 0001236 108.0040   5.4207 15.24471932327959'
];

d3.json('http://ephemapi.herokuapp.com/?name=' + encodeURIComponent(tle[0]) +
    '&line1=' + encodeURIComponent(tle[1]) +
    '&line2=' + encodeURIComponent(tle[2])).on('load', function(data) {
        cb(data);
    }).get();
    
// data is
{
  "coords": [
    0.05179675295948982, 
    -0.5329474210739136
  ]
}

Related Skills

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated1y ago
Forks2

Languages

Python

Security Score

55/100

Audited on Apr 9, 2024

No findings