Skip to content

Commit

Permalink
feat: ✨ add new TIP message plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Aug 13, 2024
1 parent fbf9b7a commit 5916fd0
Show file tree
Hide file tree
Showing 13 changed files with 1,993 additions and 140 deletions.
1,602 changes: 1,602 additions & 0 deletions public/data/tip.json

Large diffs are not rendered by default.

Binary file added public/keeptrack8-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/settings/settingsOverride.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const settingsOverride = {
satInfoboxCore: true,
aboutManager: false,
collisions: true,
trackingImpactPredict: true,
dops: false,
findSat: true,
launchCalendar: true,
Expand Down
228 changes: 114 additions & 114 deletions public/tle/SOCRATES.json
Original file line number Diff line number Diff line change
@@ -1,152 +1,152 @@
[
{
"sat1": "53815",
"sat1Name": "STRIX-1",
"sat1": "58037",
"sat1Name": "STARLINK-30533",
"sat1Status": "Operational",
"sat2": "53903",
"sat2Name": "STARLINK-5022",
"sat2Status": "Operational",
"sat1AgeOfTLE": 4.295,
"sat2AgeOfTLE": 4.617,
"toca": "2024-08-09T11:54:43.127Z",
"minRng": 0.026,
"dilutionThreshold": 0.011,
"relSpeed": 13.175,
"maxProb": 0.106
"sat2": "30338",
"sat2Name": "FENGYUN 1C DEB",
"sat2Status": "Non-operational",
"sat1AgeOfTLE": 1.038,
"sat2AgeOfTLE": 1.006,
"toca": "2024-08-13T04:10:49.188Z",
"minRng": 0.025,
"dilutionThreshold": 0.007,
"relSpeed": 7.359,
"maxProb": 0.147
},
{
"sat1": "57115",
"sat1Name": "STARLINK-6085",
"sat1": "51756",
"sat1Name": "STARLINK-3513",
"sat1Status": "Operational",
"sat2": "10144",
"sat2Name": "DELTA 1 R/B(1)",
"sat2": "5502",
"sat2Name": "THORAD AGENA D DEB",
"sat2Status": "Non-operational",
"sat1AgeOfTLE": 0.972,
"sat2AgeOfTLE": 0.666,
"toca": "2024-08-05T15:26:29.000Z",
"minRng": 0.033,
"dilutionThreshold": 0.009,
"relSpeed": 6.109,
"maxProb": 0.09865
"sat1AgeOfTLE": 5.471,
"sat2AgeOfTLE": 6.487,
"toca": "2024-08-17T13:38:36.388Z",
"minRng": 0.05,
"dilutionThreshold": 0.013,
"relSpeed": 6.695,
"maxProb": 0.0444
},
{
"sat1": "53914",
"sat1Name": "STARLINK-5040",
"sat1": "52468",
"sat1Name": "STARLINK-3864",
"sat1Status": "Operational",
"sat2": "25979",
"sat2Name": "ARIANE 40 R/B",
"sat2": "49398",
"sat2Name": "OBJECT D",
"sat2Status": "Non-operational",
"sat1AgeOfTLE": 0.933,
"sat2AgeOfTLE": 0.625,
"toca": "2024-08-05T16:34:24.741Z",
"minRng": 0.053,
"dilutionThreshold": 0.029,
"relSpeed": 14.598,
"maxProb": 0.04326
"sat1AgeOfTLE": 3.242,
"sat2AgeOfTLE": 3.146,
"toca": "2024-08-15T07:48:34.812Z",
"minRng": 0.035,
"dilutionThreshold": 0.019,
"relSpeed": 14.62,
"maxProb": 0.04438
},
{
"sat1": "57302",
"sat1Name": "STARLINK-30233",
"sat1": "36799",
"sat1Name": "TISAT 1",
"sat1Status": "Operational",
"sat2": "43806",
"sat2Name": "OBJECT BA",
"sat2Status": "Non-operational",
"sat1AgeOfTLE": 0.487,
"sat2AgeOfTLE": 0.872,
"toca": "2024-08-05T12:48:10.182Z",
"minRng": 0.048,
"dilutionThreshold": 0.02,
"relSpeed": 13.34,
"maxProb": 0.03223
"sat2": "58407",
"sat2Name": "STARLINK-30954",
"sat2Status": "Operational",
"sat1AgeOfTLE": 5.749,
"sat2AgeOfTLE": 5.394,
"toca": "2024-08-17T14:41:09.235Z",
"minRng": 0.051,
"dilutionThreshold": 0.023,
"relSpeed": 13.808,
"maxProb": 0.02609
},
{
"sat1": "55482",
"sat1Name": "STARLINK-5693",
"sat1": "57748",
"sat1Name": "STARLINK-30356",
"sat1Status": "Operational",
"sat2": "29043",
"sat2Name": "CZ-4B DEB",
"sat2": "48607",
"sat2Name": "FALCON 9 DEB",
"sat2Status": "Non-operational",
"sat1AgeOfTLE": 4.289,
"sat2AgeOfTLE": 4.559,
"toca": "2024-08-08T21:15:36.103Z",
"minRng": 0.066,
"dilutionThreshold": 0.017,
"relSpeed": 6.965,
"maxProb": 0.02671
"sat1AgeOfTLE": 6.485,
"sat2AgeOfTLE": 6.581,
"toca": "2024-08-18T09:21:35.217Z",
"minRng": 0.065,
"dilutionThreshold": 0.021,
"relSpeed": 10.977,
"maxProb": 0.02248
},
{
"sat1": "47519",
"sat1Name": "ASTROCAST-0104",
"sat1": "47798",
"sat1Name": "STARLINK-2379",
"sat1Status": "Operational",
"sat2": "59161",
"sat2Name": "STARLINK-31256",
"sat2": "58020",
"sat2Name": "NESS",
"sat2Status": "Operational",
"sat1AgeOfTLE": 6.058,
"sat2AgeOfTLE": 6.083,
"toca": "2024-08-11T04:04:15.666Z",
"minRng": 0.051,
"dilutionThreshold": 0.025,
"relSpeed": 14.205,
"maxProb": 0.02439
"sat1AgeOfTLE": 1.463,
"sat2AgeOfTLE": 1.465,
"toca": "2024-08-13T15:13:31.799Z",
"minRng": 0.073,
"dilutionThreshold": 0.019,
"relSpeed": 5.944,
"maxProb": 0.02217
},
{
"sat1": "57881",
"sat1Name": "STARLINK-30406",
"sat1Status": "Partially Operational",
"sat2": "58316",
"sat2Name": "FLOCK 4Q-34",
"sat1": "44390",
"sat1Name": "ICEYE-X4",
"sat1Status": "Operational",
"sat2": "52873",
"sat2Name": "STARLINK-4211",
"sat2Status": "Operational",
"sat1AgeOfTLE": 1.2,
"sat2AgeOfTLE": 1.652,
"toca": "2024-08-06T10:13:23.404Z",
"minRng": 0.067,
"dilutionThreshold": 0.024,
"relSpeed": 11.979,
"maxProb": 0.01954
"sat1AgeOfTLE": 2.821,
"sat2AgeOfTLE": 3.172,
"toca": "2024-08-15T00:43:19.439Z",
"minRng": 0.051,
"dilutionThreshold": 0.027,
"relSpeed": 14.455,
"maxProb": 0.02201
},
{
"sat1": "49445",
"sat1Name": "STARLINK-3122",
"sat1": "49459",
"sat1Name": "STARLINK-3141",
"sat1Status": "Operational",
"sat2": "57201",
"sat2Name": "SITRO-AIS 9 (SHCHUKIN)",
"sat2": "57195",
"sat2Name": "AVION KALUGA 650",
"sat2Status": "Operational",
"sat1AgeOfTLE": 3.007,
"sat2AgeOfTLE": 2.543,
"toca": "2024-08-07T16:31:03.834Z",
"minRng": 0.079,
"dilutionThreshold": 0.021,
"relSpeed": 6.447,
"maxProb": 0.01883
"sat1AgeOfTLE": 3.548,
"sat2AgeOfTLE": 3.286,
"toca": "2024-08-15T10:28:55.374Z",
"minRng": 0.084,
"dilutionThreshold": 0.022,
"relSpeed": 6.071,
"maxProb": 0.01695
},
{
"sat1": "52615",
"sat1Name": "STARLINK-4011",
"sat1": "28413",
"sat1Name": "SHIJIAN-6 01A (SJ-6 01A)",
"sat1Status": "Operational",
"sat2": "57326",
"sat2Name": "OBJECT BA",
"sat2Status": "Non-operational",
"sat1AgeOfTLE": 3.065,
"sat2AgeOfTLE": 3,
"toca": "2024-08-08T05:15:19.541Z",
"minRng": 0.072,
"sat2": "56358",
"sat2Name": "STARLINK-5482",
"sat2Status": "Operational",
"sat1AgeOfTLE": 5.276,
"sat2AgeOfTLE": 5.282,
"toca": "2024-08-17T05:29:03.753Z",
"minRng": 0.095,
"dilutionThreshold": 0.023,
"relSpeed": 10.944,
"maxProb": 0.01852
"relSpeed": 2.404,
"maxProb": 0.01433
},
{
"sat1": "59699",
"sat1Name": "STARLINK-32102",
"sat1": "43762",
"sat1Name": "STPSAT-5",
"sat1Status": "Operational",
"sat2": "14372",
"sat2Name": "COSMOS 1500",
"sat2Status": "Unknown",
"sat1AgeOfTLE": 3.56,
"sat2AgeOfTLE": 3.733,
"toca": "2024-08-08T15:52:18.164Z",
"minRng": 0.068,
"dilutionThreshold": 0.028,
"relSpeed": 13.34,
"maxProb": 0.0164
"sat2": "55491",
"sat2Name": "STARLINK-5364",
"sat2Status": "Operational",
"sat1AgeOfTLE": 5.496,
"sat2AgeOfTLE": 5.77,
"toca": "2024-08-17T09:47:44.167Z",
"minRng": 0.075,
"dilutionThreshold": 0.03,
"relSpeed": 12.883,
"maxProb": 0.01396
}
]
2 changes: 1 addition & 1 deletion public/tle/TLE2.json

Large diffs are not rendered by default.

47 changes: 26 additions & 21 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const env = myArgs[0];
const isWatch = !!(typeof myArgs[1] !== 'undefined' && myArgs[1] === '--watch');

// Print current working directory
console.log('Current working directory: ' + process.cwd()); // NOSONAR
console.log(`Current working directory: ${process.cwd()}`); // NOSONAR

console.log('Removing old files...'); // NOSONAR
// Remove all files in dist
Expand All @@ -24,6 +24,7 @@ try {
console.log('Copy static files...'); // NOSONAR
// Get a list of all files (not folders) in the public folder
let files = readdirSync('./public', { withFileTypes: true });

files.forEach((file) => {
if (!file.isDirectory()) {
cpSync(`./public/${file.name}`, `./dist/${file.name}`);
Expand All @@ -38,7 +39,7 @@ files.forEach((file) => {
}
});

['audio', 'css', 'img', 'meshes', 'res', 'settings', 'simulation', 'textures', 'tle'].forEach((dir) => {
['audio', 'css', 'data', 'img', 'meshes', 'res', 'settings', 'simulation', 'textures', 'tle'].forEach((dir) => {
cpSync(`public/${dir}`, `dist/${dir}`, { recursive: true, preserveTimestamps: true });
});

Expand All @@ -52,6 +53,7 @@ const webpackConfig = generateConfig(env, isWatch);

const compiler = webpack(webpackConfig, (watchErrors, watchStats) => {
const hasErrors = watchErrors || watchStats.hasErrors();

if (hasErrors) {
console.log(
watchStats.toString({
Expand All @@ -71,14 +73,15 @@ const compiler = webpack(webpackConfig, (watchErrors, watchStats) => {
children: false,
reasons: false,
source: false,
})
}),
);
}
});

if (isWatch) {
compiler.watch({}, (watchErrors, watchStats) => {
const hasErrors = watchErrors || watchStats.hasErrors();

if (hasErrors && watchStats) {
console.log(
watchStats.toString({
Expand All @@ -98,7 +101,7 @@ if (isWatch) {
children: false,
reasons: false,
source: false,
})
}),
);
}
});
Expand All @@ -117,22 +120,24 @@ if (isWatch) {
});
} else {
compiler.run((runErrors, runStats) => {
// console.log(
// runStats.toString({
// cached: false,
// colors: true,
// assets: true,
// chunks: false,
// chunkModules: false,
// chunkOrigins: false,
// errors: true,
// errorDetails: true,
// hash: false,
// modules: false,
// timings: false,
// warnings: false,
// version: false,
// })
// );
/*
* console.log(
* runStats.toString({
* cached: false,
* colors: true,
* assets: true,
* chunks: false,
* chunkModules: false,
* chunkOrigins: false,
* errors: true,
* errorDetails: true,
* hash: false,
* modules: false,
* timings: false,
* warnings: false,
* version: false,
* })
* );
*/
});
}
Loading

0 comments on commit 5916fd0

Please sign in to comment.