Giter Club home page Giter Club logo

webb-tracker-api's Introduction

James Webb Telescope tracking REST API

Public REST API to track JWST's current status

API data source: https://www.jwst.nasa.gov/content/webbLaunch/whereIsWebb.html

API

Public endpont: https://api.jwst-hub.com

Ressources:

Endpoint: https://api.jwst-hub.com/track

  • GET: /track
    • returns jwst tracking data
{
  "distanceEarthKm":null,  // no longer available
  "launchElapsedTime":null, // no longer available
  "distanceL2Km":null, // no longer available
  "percentageCompleted":null, // no longer available
  "speedKmS":null, // no longer available
  "deploymentImgURL":"https://webb.nasa.gov/content/webbLaunch/assets/images/deployment/1000pxWide/127.png",
  "currentDeploymentStep":"WEBB IS ORBITING L2 - Next Steps:  Cooldown, Alignment, Calibration",
  "tempC":{
    "tempWarmSide1C":51,
    "tempWarmSide2C":12,
    "tempCoolSide1C":-217,
    "tempCoolSide2C":-213,
    "tempInstMiriC":-128,
    "tempInstNirCamC":-180,
    "tempInstNirSpecC":-168,
    "tempInstFgsNirissC":-168,
    "tempInstFsmC":-216
  },
  "timestamp":"2022-02-05T15:50:13.536Z"
}

Endpoint: https://api.jwst-hub.com

  • GET /
    • returns API status and metatada
{
  "status": "ok",
  "version": "1.0.0",
  "serverID": "d0453deb-9c78-4e3c-be37-cf7c0633d21d" // node ID that handled the request
}

Telemetry recording and data charting:

Data recorder: https://github.com/avatsaev/webb-data-recorder

Live InfluxDB data: https://eu-central-1-1.aws.cloud2.influxdata.com/share/6H2CTV-SQdmreGx3xdUyS

Build

docker build -t webb-tracker-api .

Run

docker run -p 8001:8001 --name=webb-tracker-api webb-tracker-api

Usage

Endpoint: GET http://localhost:8001/track

webb-tracker-api's People

Contributors

avatsaev avatar copperbotte avatar fwoelffel 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

webb-tracker-api's Issues

Enable server side cors

I get cors error when I use Fetch.

"Access to fetch at 'https://api.jwst-hub.com/' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."

Also I have included {mode: no-cors}
but it doesn't work

API returns "Internal Server Error (500)"

At some point between 8am and Noon CST yesterday (January 27, 2022), the API started to return the following response:

> curl -sS https://api.jwst-hub.com/track | jq .

{
  "statusCode": 500,
  "error": "Internal Server Error",
  "message": "Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed."
}

Is the API getting retired, now that JWST reached its Halo orbit around L2?

I was still interested in continued tracking of the temperature changes that are being shared on the "WhereIsWebb" NASA website.

Thanks!

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.