node module test build for tle.js

merge-requests/237/merge
Tag 2023-02-25 11:27:07 -08:00
rodzic 559a25f9b4
commit cc1aba2ea3
3 zmienionych plików z 16 dodań i 0 usunięć

Wyświetl plik

@ -2067,6 +2067,7 @@ function finishSendingReport(record, localMode)
}
catch (e)
{
console.log(e);
addLastTraffic(
"<font style='color:red'>Exception GridTracker backup</font>"
);

Wyświetl plik

@ -1,6 +1,8 @@
// GridTracker Copyright © 2023 GridTracker.org
// All rights reserved.
// See LICENSE for more information.
const tle = require("tle.js");
const pjson = require("./package.json");
var gtVersionStr = pjson.version
var gtVersion = parseInt(gtVersionStr.replace(/\./g, ""));
@ -28,6 +30,8 @@ const os = require("os");
const fs = require("fs");
const process = require("process");
const path = require("path");
GT.dirSeperator = path.sep;
GT.platform = os.platform();
@ -13216,6 +13220,14 @@ function postInit()
devPanel.style.display = "inline-block";
}
nodeTimers.setInterval(removeFlightPathsAndDimSquares, 2000);
const testTle = `ISS (ZARYA)
1 25544U 98067A 17206.18396726 .00001961 00000-0 36771-4 0 9993
2 25544 51.6400 208.9163 0006317 69.9862 25.2906 15.54225995 67660`;
const optionalTimestampMS = 1502342329860;
const latLonObj = tle.getLatLngObj(testTle, optionalTimestampMS);
console.log(latLonObj);
}
document.addEventListener("dragover", function (event)

Wyświetl plik

@ -47,5 +47,8 @@
"diffUpdaters": false,
"MUI_FINISHPAGE_RUN": ""
}
},
"dependencies": {
"tle.js": "^4.7.3"
}
}