Parse UL/DL Speed

jith45

Member
May 25, 2018
960
0
16
Is there an easy way to parse UL/DL speed either through the webui or rtorrent itself? Usually I'd curl, but I obviously can't curl the full webui every 3 seconds. I'd like to get a geektool geeklet working for current speeds.

Thanks in advance.
 

dsouvik215

Member
May 25, 2018
896
0
16
Just use xmlrpc. Or get https://code.google.com/p/pyroscope/wiki/RtorrentMonitoring going, then it's a call to /json/engine to get this:

{
"download": [
23,
568320
],
"engine_id": "cube:6310",
"now": 1365251354.666424,
"upload": [
18,
63488
],
"uptime": 847404.5061364174,
"versions": [
"0.9.2",
"0.13.2"
],
"views": {
"active": 3,
"complete": 281,
"incomplete": 3,
"leeching": 0,
"main": 284,
"messages": 0,
"seeding": 68,
"started": 68,
"stopped": 216
}
}