Skip to content

Instantly share code, notes, and snippets.

@izumogeiger
Created August 4, 2013 12:16
Show Gist options
  • Save izumogeiger/6150160 to your computer and use it in GitHub Desktop.
Save izumogeiger/6150160 to your computer and use it in GitHub Desktop.
# coding:utf-8
require 'picasa'
client = Picasa::Client.new(
user_id: "user@gmail.com",
password: "password")
albums = client.album.list.entries
album = albums.find { |album| album.title == "soeks" }
unless album
album = client.album.create(
:title => "soeks",
:summary => "SOEKS-01M Radiation",
:access => "public"
)
end
`fswebcam -d /dev/video0 -D 2 -r 400 --png 0 --set brightness=100% /tmp/soeks.png`
client.photo.create(album.id, file_path: "/tmp/soeks.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment