feat(plugin-iss): implement ISS tracker plugin and seeder

This commit is contained in:
Antigravity AI committed 2026-05-13 02:06:58 +12:00
1 parent bbb231541b
commit cbbc38ecc9
3 files changed
+73 -1

No files matched your search

+45
View File
@@ -0,0 +1,45 @@
import type {
WorldPlugin, PluginContext, GeoEntity,
CesiumEntityOptions, TimeRange, LayerConfig, PluginCategory
} from "@worldwideview/wwv-plugin-sdk";
import { Satellite } from "lucide-react";
import pkg from "./package.json";
export default class IssPlugin implements WorldPlugin {
id = "iss";
name = "ISS Tracker";
description = "Real-time International Space Station tracking";
icon = Satellite;
category: PluginCategory = "space";
version = pkg.version;
async initialize(ctx: PluginContext): Promise<void> {}
destroy(): void {}
async fetch(timeRange: TimeRange): Promise<GeoEntity[]> {
return []; // WS-only plugin
}
getPollingInterval(): number {
return 0; // WS-only
}
getLayerConfig(): LayerConfig {
return {
color: "#ffffff",
clusterEnabled: false,
maxEntities: 1,
};
}
renderEntity(entity: GeoEntity): CesiumEntityOptions {
return {
type: "point",
color: "#ffffff",
size: 10,
outlineColor: "#3b82f6",
outlineWidth: 2,
};
}
}
+21
View File
@@ -0,0 +1,21 @@
{
"name": "@worldwideview/wwv-plugin-iss",
"version": "1.0.0",
"description": "Real-time International Space Station tracking",
"main": "index.ts",
"scripts": {
"build": "tsc"
},
"dependencies": {
"@worldwideview/wwv-plugin-sdk": "workspace:*"
},
"worldwideview": {
"pluginId": "iss",
"name": "ISS Tracker",
"description": "Real-time International Space Station tracking",
"icon": "Satellite",
"category": "space",
"streamUrl": "wss://dataenginev2.worldwideview.dev/stream",
"author": "WWV Community"
}
}
+7 -1
View File
@@ -353,6 +353,12 @@ importers:
specifier: ^1.4.10
version: 1.5.0([email protected])
local-plugins/wwv-plugin-iss:
dependencies:
'@worldwideview/wwv-plugin-sdk':
specifier: workspace:*
version: link:../../packages/wwv-plugin-sdk
local-plugins/wwv-plugin-maritime:
dependencies:
'@worldwideview/wwv-plugin-sdk':
@@ -390,7 +396,7 @@ importers:
specifier: ^1.0.0
version: 1.6.1(@types/[email protected])([email protected])([email protected])([email protected])
local-plugins/wwv-plugin-testplugin:
local-plugins/wwv-plugin-test-plugin:
dependencies:
'@worldwideview/wwv-plugin-sdk':
specifier: workspace:*