Comment

Comment by stephth

How about an animation instead?

    #!/usr/bin/env ruby
    num_snaps = 5
    time_int = Time.now.to_i
    num_snaps.times do |i|
      file="~/.gitshots/#{time_int}__#{i+1}_of_#{num_snaps}.jpg"
      system "imagesnap -q #{file}"  
    end
    exit 0
The problem with this code is it makes the camera go on and off successively, which creates a minimum delay between shots. It would be nicer to have finer control over the interval.

Picturesnap somehow supports sequences but there's no control to how long they should last (would require firing a background task), and snapshots get saved in the running directory (instead of based on the passed filename/path) which would require mving each file. Pull request could be a short and sweet free time project...

parent stephth 14 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton