Turns out live ship tracking APIs are expensive so I manually just copied the json from https://www.marinetraffic.com/en/ais/home/centerx:57.4/cente... I'll probably have an ai agent do the same thing on some cron interval, if this gets any fanfare.
To actually know if the port is open without live ship tracking I found https://portwatch.imf.org/pages/cb5856222a5b4105adc6ee7e880a... which was perfect, except it has 4 day lag!
I also thought of adding news feed parsing or prediction market data to get a more definitive answer on if it's open right when you load it, but I spent a few hours and am gonna move on for now.
fraywing•1h ago
What's the threshold function? Do you have graduating `No --> Partially --> Mostly --> Open`?
Also what's the update cadence?
anonfunction•1h ago
The update cadence kinda sucks because I didn't spring for the $200 a month live ship tracking data, so I'm using https://portwatch.imf.org/pages/cb5856222a5b4105adc6ee7e880a... which lags by 4 days which isn't great for a site like this, but was fine for me on a little side project. Open to other data sources or ideas, of if anyone wants to sponsor an API key (I did reach out to a few vendors already if they would give the project api key in exchange for a link to their site).
The original idea was to track ships and see how many crossed the strait but as mentioned above I didn't find any free sources so I went with what I did.