The WebUI API says there are 12 different possible states. ,, so it doesn't work with the examples I've found in the manual. I've read multiple examples on filters but they all seem to be working when we're filtering through the top-level attributes. The syntax for the echo is required by Check_MK (as explained here). What do I need to do to get the details such as 3 are downloading, 1 is uploading, 2 are paused and 0 are in error? I'm only interested by the state, so if I have 6 torrents, my JSON could look like that: [ Now, I would like to count the number of torrents that are currently dowloading, seeding or on pause. You should start with setting the maximum Global and Acceptable Rate Limits.I'm currently learning how to use jq with shell in Linux since I'm developing custom checks for Check_MK (formerly known as Nagios) and my application (qBittorrent with their WebUI API) returns JSON strings.Ĭurrently, I'm already able to count the total number of torrents just by using a simple jq length. As per the limit that you need to set, well, it could be around 80% of your current speed. Launch the QBittorrent client on your PC.Once you have got hold of your downloading speeds, follow the below steps: You could check your network connection speed using websites like. Then select Speed from the left menu bar.Now you could define the Global Rate Limit and the Acceptable Rate Limits corresponding to the download speed you got from the speed test. Likewise, it is also recommended to apply rate limits on peers on LAN as well as µTP protocols.This will make the client drop off all the slow-performing peers or the ones that download but don’t end up sharing. To do so, under the Rate Limit Settings, make sure both the options (LAN and µTP protocols) are tick marked.
0 Comments
Leave a Reply. |