Command line sharing plugin for n900

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.

5 thoughts on “Command line sharing plugin for n900

  • March 2, 2010 at 5:32 pm
    Permalink

    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

    Reply
  • January 12, 2011 at 4:35 pm
    Permalink

    This is awesome.

    Is there a GUI ssh-askpass implementation for Maemo 5? I can only share if I ssh-add my private key to my ssh-agent (which was not easy to set up, let me tell you that) from a terminal before I attempt image sharing.

    Reply
  • January 12, 2011 at 4:48 pm
    Permalink

    At least I’m not aware of that tool for Maemo but I haven’t really been looking for one either. I just exchanged unsecure passwordless ssh keys and been happily using that approach.

    Reply
  • August 23, 2012 at 10:13 pm
    Permalink

    Thanks so much for this. Now I’m finally able to upload photos easily and quickly to my server.

    It would nice though if there was a way to have different names for different commands – e.g. “copy to server”, “copy to laptop”, “copy to work computer”.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Why ask?