Smart Bandwidth Management: Control qBittorrent with Media Playback Events
detail.loadingPreview
This n8n workflow intelligently manages your qBittorrent download/upload speeds by reacting to media playback events received via a webhook. Optimize your network bandwidth automatically, ensuring smooth streaming without manual intervention.
About This Workflow
Tired of buffering during movie night because your torrents are hogging bandwidth? This n8n workflow is your solution! It acts as a central control hub, listening for media playback events (like play, pause, resume, stop) from your favorite media server or custom application via a simple webhook. Upon receiving an event, it intelligently checks whether the event originates from a remote source and then securely authenticates with your qBittorrent instance. The workflow is designed to check the current speed limit status, providing the foundation for dynamic bandwidth adjustments. You can easily extend it to automatically throttle qBittorrent when media is actively playing and unleash full speeds when playback pauses or stops, ensuring optimal network performance for everyone.
Key Features
- Webhook-Triggered Automation: Instantly react to media playback events (play, pause, resume, stop) from any system capable of sending webhooks.
- Remote Event Filtering: Differentiate between local and remote playback events, allowing for intelligent decision-making based on your network setup.
- Secure qBittorrent Integration: Safely authenticate with your qBittorrent API using configured credentials to manage its settings.
- Dynamic Speed Limit Awareness: Automatically retrieve the current speed limit mode from qBittorrent, setting the stage for smart bandwidth adjustments.
- Extensible Logic: Easily customize and expand the workflow to implement specific actions (e.g., enable/disable alternative speed limits) for each media event type.
How To Use
- Configure Webhook Trigger: Set up the "Webhook" node's URL in your media server or event-sending application to send
POSTrequests upon media events. - Define qBittorrent Credentials: Update the "Global Variables" node with your qBittorrent's
username,password,internalIP, andport. - Implement Speed Limit Actions:
- For "Resume" and "Play" branches, replace the
NoOpnodes withhttpRequestnodes that call the qBittorrent API to enable alternative speed limits (e.g.,/api/v2/transfer/toggleSpeedLimitsModewith mode1). - For "Pause" and "Stop" branches, replace the
NoOpnodes withhttpRequestnodes that call the qBittorrent API to disable alternative speed limits (e.g.,/api/v2/transfer/toggleSpeedLimitsModewith mode0).
- For "Resume" and "Play" branches, replace the
- Refine Remote Check: Adjust the "Check if Local" condition if your media events use a different payload structure to determine local vs. remote playback.
Apps Used
Workflow JSON
{
"id": "ca67921d-7abf-4f75-b80b-3cc31cd87a8f",
"name": "Smart Bandwidth Management: Control qBittorrent with Media Playback Events",
"nodes": 24,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: ca67921d-7abf...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Related Workflows
Discover more workflows you might like
Google Sheets to Icypeas: Automated Bulk Domain Scanning
This workflow streamlines the process of performing bulk domain scans by integrating your Google Sheets data directly with the Icypeas platform. Automate the submission of company names from your spreadsheet to Icypeas for comprehensive domain information, saving valuable time and effort.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.