Picasa query failing, any suggestions?

41 views
Skip to first unread message

Brandon Reed

unread,
Jan 29, 2013, 2:08:41 PM1/29/13
to googlecl...@googlegroups.com
I'm trying to automatically upload an image to a picasa album and only retain the current image, delete the older ones. I'm tagging the image at upload and it shows in the web interface but the query is failing so my script isn't deleting the older images.

I built a bash script that captures the image from my webcam then tries to delete the existing images then upload the new one, it's uploading fine via Cron.

google picasa post .... is working.

The line that fails is:
google picasa delete --yes --title "WeatherCam" --query "weathercam"

It fails to delete anything, there's 50+ images all tagged "weathercam" in the album, the tags are clearly there in the web interface.

Other things I've tried:
google picasa delete --yes --title "WeatherCam"
google picasa create --title "WeatherCam"

That will delete the album entirely and create a new one but that breaks any links to the album since every new album has a unique url.

Why I want to do this is that I've got a couple cameras I want to be able to monitor remotely but they are behind a couple layers of NAT that I can't open up ports on.  "Weathercam" is going to be setup on Wunderground using FTP but the other one isn't a weather cam so It's not appropriate for their service (It's aimed at a dog kennel indoors right now).


Tom Miller

unread,
Feb 8, 2013, 12:44:54 PM2/8/13
to googlecl...@googlegroups.com
Try removing the --title option, and see what that gets you.

IIRC, the "get" command and "delete" command use the same function to retrieve things from Picasa, so you can use "get" to test what "delete" will try to remove.

 - Tom




--
You received this message because you are subscribed to the Google Groups "GoogleCL Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googlecl-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages