Tuomas Kulve
Line - Extra Long
 
white
line     line
line line
vline

2010 2009 2008 2007 2006 Site Admin | Log in | RSS

March 2, 2010

Command line sharing plugin for n900

Filed under: Maemo — tuomas @ 11:10 am

Thomas Perl made a proposal for creating a command line sharing plugin for the n900. I had already planned to implement something like that so I joined the project.

I pushed the first “proof-of-concept” quality implementation to the GIT a month ago. I’ve been using it with the Irssi script (in the scripts directory) to get http URLs with meta information to IRC. The Irssi script needs to be modified to match the directories and IRC servers in use and both the script and the sharing plugin are still missing most of the error checking and extra functionality. Nevertheless, they’ve worked for me for the past weeks.

For the sharing plugin I’ve given something like the following command line:


scp %s kulve@foo.bar.fi:~/photos_incoming/%s

There’s two times the %s as the local temporary file name doesn’t match the actual file name to be copied. And that assumes the SSH keys have been exchanged so that no passwords will be asked.

The Irssi script polls the incoming directory for new images. For each new file, it moves the file to public WWW tree, gets the meta information with exiftool and prints something like this to the specified IRC channel:


Title: Description [tags] (GPS coordinates) http://foo.bar.fi/~kulve/imagename.jpg

I modified the Irssi script a bit before pushing it to the GIT, so no guarantees it works. And that’s my first Irssi script ever, so it may do something odd ;)

There’s no debian packages yet as neither the script nor the plugin have been tested properly. Comments, testing and patches are welcome.

1 Comment »

  1. When i travel, i get connected somewhere (WiFi) and run this:

    rsync –rsh=ssh -s –progress –size-only MyDocs/DCIM /media/mmc/DCIM user@homeserver /travel

    Simple rsync over ssh to backup my daily new pictures and videos to homeserver.

    PixelPipe also support ftp transfer straight from PictureManager

    Comment by Heikki Tiittanen — March 2, 2010 @ 5:32 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

*
To prove you're a person (not a spam script), type the answer to the math equation shown in the picture. Click on the picture to hear an audio file of the equation.
Click to hear an audio file of the anti-spam equation


vline
vline vline
line line
 
 
Tuomas Kulve tuomas#kulve.fi