Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [Announce] DropN900 - the maemo 5 DropBox client

    Reply
    Page 39 of 57 | Prev | 29   37     38   39   40     41   49 | Next | Last
    noetus | # 381 | 2011-10-17, 13:31 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Henry Triplette | # 382 | 2011-10-17, 14:27 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    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:
    carbonjha, cube48, dantonic, DaveQB, ersanpermana, gttnnn, Helmuth, jaromrax, jhepburn, JimKnopf, kolos, mad_soft, michaaa62, MiK546, noetus, NokiaRocks, peter2p, praveenchand, Raimu, rm42, Rob1n, shanttu, sm8ps, strange1712, zdanee

     
    memeces | # 383 | 2011-10-18, 10:07 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    noetus | # 384 | 2011-10-20, 07:43 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Rob1n | # 385 | 2011-10-20, 08:16 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to Rob1n For This Useful Post:
    noetus, sm8ps

     
    noetus | # 386 | 2011-10-20, 09:44 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Rob1n | # 387 | 2011-10-20, 09:50 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to Rob1n For This Useful Post:
    noetus, sm8ps

     
    noetus | # 388 | 2011-10-20, 10:19 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by noetus; 2011-10-20 at 10:46.

     
    sm8ps | # 389 | 2011-10-21, 15:59 | Report

    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!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    barzam | # 390 | 2011-10-24, 17:05 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to barzam For This Useful Post:
    br1zer, cube48, sm8ps

     
    Page 39 of 57 | Prev | 29   37     38   39   40     41   49 | Next | Last
vBulletin® Version 3.8.8
Normal Logout