Results 1 to 2 of 2

Thread: [HowTo] Use Dropbox to download torrents on router

  1. #1

    Post [HowTo] Use Dropbox to download torrents on router

    This script allows you to add new tasks to a transmission torrent client on router. It uses official python Dropbox SDK.
    Please note, it requires a new Entware repository to work.

    0. Install Dropbox API from my repo
    Code:
    $ opkg install python-dropbox
    1. Download script, attached to post
    Code:
    $ wget -O /opt/tmp/tmp.gz http://www.wl500g.info/attachment.php?attachmentid=8666&d=1330436107
    $ gzip -cd /opt/tmp/tmp.gz > /opt/bin/DropboxTorrentsWatch.py
    $ chmod +x /opt/bin/DropboxTorrentsWatch.py
    $ rm /opt/tmp/tmp.gz
    2. Create access key for DropboxTorrentsWatch.py script
    Log on to dropbox.com, proceed here, and create a new application with a unique name. Dropbox.com assigns APP_KEY, APP_SECRET pair to your application, please, write down those pair in appropriate script lines.

    3.Authorize DropboxTorrentsWatch.py
    Dropbox uses OAuth. You have seen this on other sites, it sound like "Logon using Facebook" or "Logon using Google account". Please, run script with "-s" key:
    Code:
    $ DropboxTorrentsWatch.py -s
    Script offers you an URL, so copy it to browser. If all goes well, you will see this message. Press "Allow", go back to the router console and hit enter.

    4.Allow transmission to use watchdir feature
    Make sure transmission is not running and edit settings.json:
    Code:
    $ grep -E "watch|trash" /opt/etc/transmission/settings.json
        "trash-original-torrent-files": true,
        "watch-dir": "/opt/etc/transmission/watchdir",
        "watch-dir-enabled": true
    5.Last check
    And make sure that REMOTE_DIR, LOCAL_DIR vars in script points to chosen Dropbox folder and to transmission watchdir folder.

    Better run this script from cron, mine runs every five minutes.


    Script checks your Dropbox folder, downloads new torrent files from here and gives it to transmission.

    A sign that everything works well is disappearing of original torrent-files from the DropBox folder. This means router "took" them to work.
    Last edited by ryzhov_al; 05-04-2012 at 11:55.

  2. #2
    Join Date
    Oct 2011
    Location
    Moscow
    Posts
    8

    Talking

    Thank you very much, its working. But [howto] not full. Lamers cant understand what need to do

Similar Threads

  1. Replies: 102
    Last Post: 03-08-2016, 12:35
  2. Asus WL-330N3G Travel Router - 3G Router из коробки
    By Romtron in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 24
    Last Post: 09-09-2013, 14:38
  3. Установка SparkleShare сервера на роутере (аналог Dropbox)
    By zev1416.ru in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 2
    Last Post: 26-01-2013, 20:25
  4. Transmission RSS direct-download
    By andyqp in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 7
    Last Post: 31-03-2009, 11:13
  5. HOWTO use your WL-500g as IPv6 router
    By phedny in forum WL-500g/WL-500gx Tutorials
    Replies: 8
    Last Post: 17-02-2008, 07:19

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •