#14 Rover Lapse
What:
Bot that keeps up with @earthroverbot (by @muffinista) and generates animated GIF summaries of where it has been.
How:
Runs every 4 hours. Pulls the images from eathroverbot, filters out duplicate images, condenses the images a bit, then uses the images2gif library to generate an animated gif.
I’m not super happy with the quality of images, but Twitter has an image size limit of ~3 megs and if I left the images at 600x600px I would only get about 10 in the animation -- crunching down to 350 lets me put 25 in there, but it looks kind of bad since the twitter gif viewer stretches the images to fit a standard size when it plays them.
I recently started a job where I work in Python all day and do a lot of unit testing, so this is the first bot I’ve made that is moderately well-tested. (I got slack towards the end when the finish line was in sight.)
Why:
I really like the concept earthroverbot but I don’t actually like following it in practice because it spams my twitter when Christa gets into moving it around, so I wanted something that condensed the experience.
Image editing has always felt a little magical to me (part of why I did tiny image bot), but after seeing the relatively straightforward source for @starnearyou by ddbeck I wanted to try it. My implementation differs in that I don’t use subprocess / I use a native python library to make the GIFs -- probably at the expense of quality, but fun to implement.
Source:
https://github.com/jimmytheleaf/roverlapsebot












