Active Topics

 



Notices


Reply
Thread Tools
Posts: 359 | Thanked: 162 times | Joined on Jan 2011 @ Budapest
#381
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?
 
Posts: 1 | Thanked: 25 times | Joined on Oct 2011
#382
Originally Posted by noetus View Post
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.

Last edited by Henry Triplette; 2011-10-17 at 14:35.
 

The Following 25 Users Say Thank You to Henry Triplette For This Useful Post:
Posts: 17 | Thanked: 8 times | Joined on Apr 2011 @ Spain
#383
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.
 
Posts: 359 | Thanked: 162 times | Joined on Jan 2011 @ Budapest
#384
Originally Posted by sm8ps View Post
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?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#385
Originally Posted by noetus View Post
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.
 

The Following 2 Users Say Thank You to Rob1n For This Useful Post:
Posts: 359 | Thanked: 162 times | Joined on Jan 2011 @ Budapest
#386
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
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#387
Originally Posted by noetus View Post
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.
 

The Following 2 Users Say Thank You to Rob1n For This Useful Post:
Posts: 359 | Thanked: 162 times | Joined on Jan 2011 @ Budapest
#388
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.

Last edited by noetus; 2011-10-20 at 10:46.
 
Posts: 15 | Thanked: 11 times | Joined on Jun 2010 @ Switzerland
#389
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!
 
Posts: 65 | Thanked: 27 times | Joined on Jun 2010
#390
 

The Following 3 Users Say Thank You to barzam For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 22:40.