{"id":25,"date":"2022-03-16T23:53:28","date_gmt":"2022-03-16T23:53:28","guid":{"rendered":"https:\/\/deltayeet.net\/wordpress\/?page_id=25"},"modified":"2022-03-16T23:53:28","modified_gmt":"2022-03-16T23:53:28","slug":"starbase-pulse","status":"publish","type":"page","link":"https:\/\/deltayeet.net\/?page_id=25","title":{"rendered":"Starbase Pulse"},"content":{"rendered":"\n<p>The Starbase Pulse bot watches <a href=\"https:\/\/www.nasaspaceflight.com\/\">NASA Spaceflight<\/a>&#8216;s incredible <a href=\"https:\/\/www.youtube.com\/watch?v=mhJRzQsLZGg\">Starbase Live<\/a> feed and generates a 24-hour timelapse that becomes a fun way to check the pulse of Boca Chica by compressing a day of spacecraft construction and testing down to a couple minutes.<\/p>\n\n\n\n<p>From sunrise to sunrise, you can see the frantic activity that NSF&#8217;s team of hard working folks have been documenting day in and out.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How it works<\/h2>\n\n\n\n<p>deltaYeet&#8217;s servers watch the stream using <a href=\"https:\/\/ffmpeg.org\/\">ffmpeg<\/a> and save a snapshot every 30 seconds via a cron job.  <\/p>\n\n\n\n<p>Every 30 minutes, they update the URL for the stream (which changes periodically) to keep it live using <a href=\"https:\/\/github.com\/ytdl-org\/youtube-dl\/\">youtube-dl<\/a>.<\/p>\n\n\n\n<p>Every few hours, a maintenance script clears 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&#8217;s disk space.  In my defense, I forgot hard drives were finite.<\/p>\n\n\n\n<p>At 8:00 AM Central, a render script uses a different part of <a href=\"https:\/\/ffmpeg.org\/\">ffmpeg <\/a>(is there anything it can&#8217;t do?) to take the ~2,880 images and compile them together as a 30fps MP4.<\/p>\n\n\n\n<p>It passes it to a posting function that uses <a href=\"https:\/\/github.com\/abraham\/twitteroauth\">abraham\/twitteroauth<\/a> to post it to twitter on the <a href=\"https:\/\/twitter.com\/starbasepulse\">@StarbasePulse feed<\/a> and then the cycle of life continues.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Starbase Pulse bot watches NASA Spaceflight&#8216;s incredible Starbase Live feed and generates a 24-hour timelapse that becomes a fun way to check the pulse of Boca Chica by compressing a day of spacecraft construction and testing down to a &hellip; <a href=\"https:\/\/deltayeet.net\/?page_id=25\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-25","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/deltayeet.net\/index.php?rest_route=\/wp\/v2\/pages\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deltayeet.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/deltayeet.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/deltayeet.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deltayeet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25"}],"version-history":[{"count":1,"href":"https:\/\/deltayeet.net\/index.php?rest_route=\/wp\/v2\/pages\/25\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/deltayeet.net\/index.php?rest_route=\/wp\/v2\/pages\/25\/revisions\/26"}],"wp:attachment":[{"href":"https:\/\/deltayeet.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}