* Prefixing of files. (This is necessary as the photo app will name the photos by date and and incremental index that is reset once per day. Thus two people using the camera app with sharing on the same day are very likely going to overwrite their pictures.)

+

<pre>

<pre>

#!/bin/bash

#!/bin/bash

Zeile 160:

Zeile 167:

LGNAME=""

LGNAME=""

LGPASS=""

LGPASS=""

+

FILE_PREFIX="changemeplease_"

# hier debuggen: :-)

# hier debuggen: :-)

Zeile 246:

Zeile 254:

SOURCENAME="$1"

SOURCENAME="$1"

−

FILENAME="$2"

+

FILENAME="$FILE_PREFIX$2"

if [ "x$FILENAME" = "x" ] ; then

if [ "x$FILENAME" = "x" ] ; then

FILENAME="$1"

FILENAME="$1"

Zeile 372:

Zeile 380:

fi

fi

</pre>

</pre>

+

+

===Setup===

+

Download the script and put it into a file, e.g. /bin/2wiki.sh. chmod a+rx it and configure your wiki account (first few lines of the script). Install ''Command Line Sharing'' form your application manager. Go to Settings -> Sharing Accounts, add a new command line sharing account with the following settings:

+

/bin/2wiki.sh wrap-n900-xterm "%s" "%s"

+

+

This will open an x terminal which contain a rudimentary log. If you want silent upload using only the n900 messaging system, add the following cli sharing account:

+

/bin/2wiki.sh allow-n900-messages "%s" "%s"

+

+

===Usage===

+

Make a photo and open it in the gallery. Click on the sharing button (three connected dots), select the account you just created and click on share.

N900 Extensions

Script

This is a script with the n900 extensions. It adds:

A bit more error handling (really, just a bit)

Support for N900 messaging system

Wrapping the share script into an osso-xterm

Prefixing of files. (This is necessary as the photo app will name the photos by date and and incremental index that is reset once per day. Thus two people using the camera app with sharing on the same day are very likely going to overwrite their pictures.)

Setup

Download the script and put it into a file, e.g. /bin/2wiki.sh. chmod a+rx it and configure your wiki account (first few lines of the script). Install Command Line Sharing form your application manager. Go to Settings -> Sharing Accounts, add a new command line sharing account with the following settings:

/bin/2wiki.sh wrap-n900-xterm "%s" "%s"

This will open an x terminal which contain a rudimentary log. If you want silent upload using only the n900 messaging system, add the following cli sharing account:

/bin/2wiki.sh allow-n900-messages "%s" "%s"

Usage

Make a photo and open it in the gallery. Click on the sharing button (three connected dots), select the account you just created and click on share.