maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] DropN900 - the maemo 5 DropBox client (https://talk.maemo.org/showthread.php?t=58882)

noetus 2011-10-17 13:31

Re: [Announce] DropN900 - the maemo 5 DropBox client
 
Is it possible that since the developer abandoned the program some time ago his subscription over at DropBox for the API access has run out?

Henry Triplette 2011-10-17 14:27

Re: [Announce] DropN900 - the maemo 5 DropBox client
 
Quote:

Originally Posted by noetus (Post 1109966)
Is it possible that since the developer abandoned the program some time ago his subscription over at DropBox for the API access has run out?

Well, I've found a quick fix, and everything seems to work now.

You just need to edit the default .config file of dropbox, located in:

Code:

/opt/dropn900/.config
[If you have leafpad installed, do:

leafpad /opt/dropn900/.config]

and change the following values with:

Code:

server = api. dropbox. com
content_server = api-content. dropbox. com
port = 80

request_token_url = ht tp:// api. dropbox. com/0/oauth/request_token
access_token_url = ht tp:// api. dropbox. com/0/oauth/access_token
authorization_url = h ttp:// api. dropbox. com/0/oauth/authorize
trusted_access_token_url = ht tp:// api. dropbox. com/0/token

Remove the spaces before, sorry but link in post are limited.

memeces 2011-10-18 10:07

Re: [Announce] DropN900 - the maemo 5 DropBox client
 
Many thanks Henry. Your solution works like a charm. It even solves an error message I had lately when the synchronization was still working. The only problems I had at first when implementing your solution was that LeafPad was reseting the phone when trying to save the modified config file. I had to do it as a root user
Code:

sudo leafpad /opt/dropn900/.config
Another thing, do not try to use the Notes applications that comes with the phone to modify the config file because then DropN900 crashes. Although Notes was in simple text mode it must add something to the config file that DropN900 does not like at all.

noetus 2011-10-20 07:43

Re: DropN900 - patch for purging media off N900
 
Quote:

Originally Posted by sm8ps (Post 1089791)
Find attached a patch to update the file '/opt/dropn900/transfers.py'. If you are ignorant about how to work with patches (like myself half an hour ago) then let me give you some advice. From the terminal as root:
1.) mv transfers-pm.py.patch.txt /opt/dropn900/
2.) cd /opt/dropn900/
3.) patch -b -i transfers-pm.py.patch.txt
This will apply the patch to the file '/opt/dropn900/transfers.py' while backing up the original version in the same folder. So if need be, you can easily revert to Jonnenau's original version.

I am getting an error for using the -b flag:

------------------------------------------------------------------------------------
Nokia-N900:/opt/dropn900# patch -b -i transfers-pm.py.patch.txt
patch: invalid option -- b
BusyBox v1.19.2 (Debian 1.19.2power1) multi-call binary.

Usage: patch [OPTIONS] [ORIGFILE [PATCHFILE]]

-p,--strip N Strip N leading components from file names
-i,--input DIFF Read DIFF instead of stdin
-R,--reverse Reverse patch
-N,--forward Ignore already applied patches
-E,--remove-empty-files Remove output files if they become empty
------------------------------------------------------------------------------------

What am I doing wrong?

Rob1n 2011-10-20 08:16

Re: DropN900 - patch for purging media off N900
 
Quote:

Originally Posted by noetus (Post 1111232)
What am I doing wrong?

Nothing - the busybox version of patch doesn't support the "-b" flag. Make the backup manually instead:
Code:

cp /opt/dropn900/transfers.py /opt/dropn900/transfers.py.bak
Then run the patch command without the '-b' flag.

noetus 2011-10-20 09:44

Re: [Announce] DropN900 - the maemo 5 DropBox client
 
OK, so now I get:

Code:

Nokia-N900:/opt/dropn900# patch -i transfers-pm.py.patch.txt
patching file transfers-pm.py
patch: can't open 'transfers-pm.py': No such file or directory


Rob1n 2011-10-20 09:50

Re: [Announce] DropN900 - the maemo 5 DropBox client
 
Quote:

Originally Posted by noetus (Post 1111267)
OK, so now I get:

Code:

Nokia-N900:/opt/dropn900# patch -i transfers-pm.py.patch.txt
patching file transfers-pm.py
patch: can't open 'transfers-pm.py': No such file or directory


Either the patch is incorrect or the busybox version of patch is being pedantic. Try editing the patch file and changing the "transfers-pm.py" to "transfers.py" at the top.

noetus 2011-10-20 10:19

Re: [Announce] DropN900 - the maemo 5 DropBox client
 
This is odd. So I edited the file as you suggested, and this time the patch command completed successfully. But when I restarted dropN900, there is no change - no 'purge' button is there. Restarting the phone didn't help (didn't think it would).
[EDIT] Never mind. Re-read the original post, it only works for photos in the DCIM folder. And it seems the 'Sync Media' button in dropn900 only applies to the DCIM folder on the internal memory, the external card is ignored.

sm8ps 2011-10-21 15:59

Re: [Announce] DropN900 - the maemo 5 DropBox client
 
noetus,
Sorry for the trouble with my patch! I shall have a chance to revisit it as my n900 is FUBR and I shall probably have to reinstall from scratch. I was using the full GNU core utilities instead of busybox.
Cheers!

barzam 2011-10-24 17:05

Re: [Announce] DropN900 - the maemo 5 DropBox client
 
Just a heads-up, new API just released:

https://www.dropbox.com/developers/announcements/11
http://forums.dropbox.com/topic.php?id=46501&replies=12


All times are GMT. The time now is 19:08.

vBulletin® Version 3.8.8