ISS Details in Real-Time

node v8.17.0
version: 3.0.0
endpointsharetweet
exports.endpoint = (req, res) => { const getJSON = require("async-get-json"); let data = await getJSON("http://api.open-notify.org/iss-now.json"); /* process.env.IIS_GPS_NOW_JSON */ const result = { executed: Date.now(), raw: data, iis: data.iss_position }; return result; };
Loading…

no comments

    sign in to comment