Giter Site home page Giter Site logo

pyephemapi's Introduction

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
  ]
}

pyephemapi's People

Contributors

tmcw avatar

Watchers

 avatar  avatar

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.