Created
August 4, 2013 12:16
-
-
Save izumogeiger/6150160 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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