View unanswered posts | View active topics It is currently Sun May 19, 2013 11:07 am



Reply to topic  [ 2 posts ] 
 Adjusting Transmission (BitTorrent) download speeds 
Author Message

Joined: Sep 17, 2011
Posts: 13
Post Adjusting Transmission (BitTorrent) download speeds
I run Transmission at home for occasional BitTorrent downloads (legal stuff). When everyone is away from home I don't mind letting Transmission use up most of my available bandwidth. But when I'm at home, I'd like it to throttle back so that it doesn't slow down any streaming, email, gaming, etc we do.

If you have Indigo Pro, you can use AppleScripts to control this, and have it trigger whenever you feel is appropriate (when your security system toggles on/off, vacation mode, or when the Smartphone Radar plugin detects no one is in the house for example, etc).

First, set up a speed limit that you want for when you're around the house. You can do this in Transmission's preferences, under the Bandwidth tab. Under this same tab, set the global bandwidth settings as well for when you want the speed to increase.

Then in Indigo, use this script to enable Transmission's Speed Limit mode:

Code: Select all
tell application "System Events"
   tell process "Transmission"
      set frontmost to true
      if value of attribute "AXMenuItemMarkChar" of menu item "Speed Limit" of menu "Transfers" of menu bar 1 as text is not "✓" then
         click menu item "Speed Limit" of menu "Transfers" of menu bar 1
      end if
   end tell
end tell


And use this script to disable Transmission's Speed Limit mode, allowing whatever speeds you've set as the global maximums:

Code: Select all
tell application "System Events"
   tell process "Transmission"
      set frontmost to true
      if value of attribute "AXMenuItemMarkChar" of menu item "Speed Limit" of menu "Transfers" of menu bar 1 as text is "✓" then
         click menu item "Speed Limit" of menu "Transfers" of menu bar 1
      end if
   end tell
end tell


At my home it's attached to the alarm system, so whenever it's on, BitTorrent speeds are increased assuming no one is otherwise going to use that bandwidth.


Fri Dec 16, 2011 8:28 pm
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6642
Location: Austin, Texas
Post Re: Adjusting Transmission (BitTorrent) download speeds
What an interesting integration - thanks for sharing!

_________________
Jay (Indigo Support)
Image


Fri Dec 16, 2011 9:21 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.