ΔYeet · Project

Starbase Pulse

Retired

Starbase Pulse is paused. It lived on Twitter until I stopped working with Twitter because it’s gone to absolute shit. A Mastodon version (@StarbasePulse) is set up and waiting on a fix to the stream capture. What follows is how it worked.

The Starbase Pulse bot watched NASA Spaceflight‘s incredible Starbase Live feed and generated a 24-hour timelapse that became a fun way to check the pulse of Boca Chica by compressing a day of spacecraft construction and testing down to a couple minutes.

From sunrise to sunrise, you could see the frantic activity that NSF’s team of hard working folks have been documenting day in and out.

How it worked

deltaYeet’s servers watched the stream using ffmpeg and saved a snapshot every 30 seconds via a cron job.

Every 30 minutes, they updated the URL for the stream (which changes periodically) to keep it live using youtube-dl.

Every few hours, a maintenance script cleared out pictures more than 24 hours old after The Incident where the @StarbasePulse took down all of the deltaYeet bots by using up all of the server’s disk space. In my defense, I forgot hard drives were finite.

At 8:00 AM Central, a render script used a different part of ffmpeg (is there anything it can’t do?) to take the ~2,880 images and compile them together as a 30fps MP4.

It passed it to a posting function that used abraham/twitteroauth to post it to Twitter on the @StarbasePulse feed and then the cycle of life continued.