
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.