https://github.com/fabricionaweb/qbit-toggle-speed
Small script without dependencies to toggle the speed mode just by using qBitTorrent web api
https://github.com/fabricionaweb/qbit-toggle-speed
bash python qbittorrent tautulli
Last synced: 10 months ago
JSON representation
Small script without dependencies to toggle the speed mode just by using qBitTorrent web api
- Host: GitHub
- URL: https://github.com/fabricionaweb/qbit-toggle-speed
- Owner: fabricionaweb
- Created: 2022-09-09T23:12:35.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-12T16:27:17.000Z (over 1 year ago)
- Last Synced: 2025-08-26T09:56:17.947Z (10 months ago)
- Topics: bash, python, qbittorrent, tautulli
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## What
Two versions for the same script to toggle the speed limits via [qBittorrent WebUI API]().
Pick just one.
## How
First you need to edit the script you choose and change the url and credentials (if you are not bypass them).
To run both scripts you need to tell what you want to do:
- bash `./qbit_toggle_speed.sh enable` and `./qbit_toggle_speed.sh disable`
- python `python3 qbit_toggle_speed.py --action enable` and `python3 qbit_toggle_speed.py --action disable`
## Tautulli setup
Use Tautulli notifications agent to determine when to trigger them. This way you slow qbit when streaming.
You need to have access to the script in the file system, it is easier to add it to your config folder.
> **Note**
> If you choose the bash version check user and permisions.
1. Go to `Tautulli Settings > Notification Agents` add click in `Add a new notification agent`
1. Select `Script`
1. Under `Script Folder` you select the folder that contain the script
1. `Script File` you select the script
1. Add a description like `play = enable speed limit` since we're gonna the stop version later
1. Go to `Triggers`
- Pick `Playback Start`
1. Go to `Conditions`:
1. Condition {1}
- --Parameter-- set to `Streams`
- --Operator-- set to `is`
- --Value-- set to `1`
1. Go to `Arguments`
- Click in `Playback Start` and set the `Script Arguments`:
- If you're using the bash version, set to `enable`
- If you're using the python version, set to `--action enable`
1. Save
We need to repeat it to create (or duplicate) another to **trigger when stop** stream to disable the speed limit.
The reason we need two notifications is because we are using Tautulli conditions to match number of stream with the action.
1. Add a description like `stop = disable speed limit`
1. Go to `Triggers`
- Pick `Playback Stop` ⚠️
1. Go to `Conditions`:
1. Condition {1}
- --Parameter-- set to `Streams`
- --Operator-- set to `is`
- --Value-- set to `0` ⚠️
1. Go to `Arguments`
- Click in `Playback Stop` ⚠️ and set the `Script Arguments`:
- If you're using the bash version, set to `disable` ⚠️
- If you're using the python version, set to `--action disable` ⚠️
1. Save