Hacker News new | ask | show | jobs
by 13rac1 2077 days ago
Yes! Great idea! I've been working on a similar, but different project recently. Using screenshots instead of git. I wanted to see the change in air quality due to the wildfires over time, so I'm making time-lapse videos: PurpleAir Air Quality 7200X Time-Lapse - Glass Fire - San Francisco Bay Area - 9/28-10/3 https://youtu.be/CFT-EIEmzfM
3 comments

How did you capture all these screenshots? Great video!
You can use Puppeteer to drive the web scraping and use page.screenshot() to capture images. You can find a quick example in the docs below:

https://github.com/puppeteer/puppeteer/blob/v5.3.1/docs/api....

Thanks! Yes, it's puppeteer, plus imagemagick to add transparency using an overlay on an empty map, and ffmpeg to make the 60fps video. A lot of data, currently have over 200GB.
Purpleair also has a JSON api if you want the raw data behind those screenshots.
Scarifying! Thanks!