* 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.)

+

+

<highlightSyntax language="bash">

#!/bin/bash

#!/bin/bash

# whacky hacky mediawiki uploader.

# whacky hacky mediawiki uploader.

Zeile 160:

Zeile 168:

LGNAME=""

LGNAME=""

LGPASS=""

LGPASS=""

+

FILE_PREFIX="changemeplease_"

# hier debuggen: :-)

# hier debuggen: :-)

Zeile 246:

Zeile 255:

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 371:

Zeile 380:

fi

fi

fi

fi

−

</pre>

+

</highlightSyntax>

−

[[Category:Projekte]]

+

−

===N900 Setup===

+

−

Download the script and put it into a script, 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:

+

−

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

+

−

This will open an x terminal which contains all the necessary log information. If you want silent upload using only the n900 messaging system, add the following cli sharing account:

+

===Setup===

−

/sbin/2wiki.sh alllow-n900-messages "%s" "%s"

+

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.)

<highlightSyntax language="bash">

!/bin/bash

whacky hacky mediawiki uploader.

(c) 2011 Hans-Werner Hilse <hilse@web.de>

this software is published under the know-what-you're-doing licence:

1. you may use this software for whatever you want, given that you know what you're doing.

2. author of this software isn't responsible for anything since you knew what you're doing.

3. if you have still questions, chances are you do not fullfill requirements