- deluge-console (or a deluge docker container)
$ wget -O deluge_throttle.sh https://gist.github.com/Tinynja/2169be3f20b8656f67dbc89129d57598/raw/66409a4ebdec1d2880d288c26e9f8bc75b4f900f/deluge_throttle.sh
$ chmod +x deluge_throttle.sh
Edit deluge_throttle.sh
and set deluged
username and password.
If you are running deluge and tautulli as docker containers, set host to 127.0.0.1
and docker_container to the name of your deluge docker container.
If want's to use different username, password and level see Deluge documentation
https://dev.deluge-torrent.org/wiki/UserGuide/Authentication
If you are using this in an unraid setup, you have to give access to the docker
command from the tautulli container. This is one way to do it:
- SSH into unraid
- Take note of the gid of the docker group:
cat /etc/group | grep docker
- Create a new user called tautulli:
useradd -MN -G docker --shell=/bin/false -g
DOCKER_GIDtautulli
- Take note of the uid of the tautulli user:
cat /etc/passwd | grep tautulli
- Edit the tautulli container settings as follows...
- Change the
PUID
to the tautulli uid (from step 4) - Change the
PGID
to the tautulli gid (from step 4) - Add a bind mounts
/var/run/docker.sock
to/var/run/docker.sock
- Add a bind mounts
/usr/bin/docker
to/usr/bin/docker
- Taultulli > Settings > Notification Agents > Add a Notification Agent > Script
- Set
Script Folder
- Select
deluge_throttle.sh
- Script Timeout
0
Notification conditions:
- Condition {1}: Stream Local is 0
- Condition {2}: Action is play
- Condition {3}: Streams is 0
Condition logic: {1} and {2} or {3}
Triggers:
- Playback Start
- Playback Stop
Arguments:
Set Download/Upload limit in KBps. Set -1
for unlimited
- Playback Start:
-D 100 -U 10
- Playback Stop:
-D -1 -U -1
Triggers:
- Playback Start
- Playback Stop
Arguments:
- Playback Start:
-p
- Playback Stop:
-r
-D - Set max download speed [KBs], use "-1" to set unlimited
-U - Set max upload speed [KBs], use "-1" to set unlimited
-p - Pause active torrent
-r - Restore paused torrents (previously active only)
-i - Shows torrent information status
-h | --help - Help
I'm having some issues. I have a VPS with limited privileges. I don't have access to make changes to dockers or run the command useradd. The script runs fine from SSH but not when I test it in Tautulli. I have a feeling I'm just not going to be able to use this. Below is the log from Tautulli. It doesn't seem to have access to deluge-console. Thoughts?
Thanks in advance!