Skip to content

Conversation

@minjunminji
Copy link
Contributor

@minjunminji minjunminji commented Nov 26, 2025

Description

  • Resolves Add AIS Ships to website #652
  • Adds an AIS ingest worker (src/website/scripts/aisstream-ingest.js) that connects to aisstream.io via WebSocket and stores the latest ship positions in MongoDB.
  • Adds configuration for AISSTREAM_API_KEY, and related AIS env vars
  • Prepares data for the website to independently fetch/display AIS ship positions instead of relying on satellite uploads.

Verification

  • Set MONGODB_URI and AISSTREAM_API_KEY in src/website/.env.development.
  • From src/website, ran node scripts/aisstream-ingest.js and confirmed it connects to wss://stream.aisstream.io/v0/stream without JSON parse errors.
  • Confirmed new documents are written to the AISShips collection in MongoDB with ship positions.
  • Loaded the website and confirmed AIS ships appear/are available where expected.

Resources

Screenshot 2025-11-25 192101

@fyang151 fyang151 requested a review from jahn18 November 29, 2025 08:19
@fyang151
Copy link
Contributor

what do you think about adding node scripts/aisstream-ingest.js as a script to package.json?. its a pretty minor qol improvement, so your call!

@minjunminji
Copy link
Contributor Author

what do you think about adding node scripts/aisstream-ingest.js as a script to package.json?. its a pretty minor qol improvement, so your call!

Resolved, see be5d610

Copy link
Contributor

@fyang151 fyang151 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
This will require us to resolve some merge conflicts because I took 2 months to approve this.

@fyang151 fyang151 merged commit b59f01f into main Jan 20, 2026
7 checks passed
@fyang151 fyang151 deleted the add-aisstream branch January 20, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

web Website team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add AIS Ships to website

5 participants