How to log amount uploaded?

General support for problems installing or using Deluge
Post Reply
brichmond95
New User
New User
Posts: 1
Joined: Thu Jun 20, 2024 8:56 pm

How to log amount uploaded?

Post by brichmond95 »

I'm looking for a way to log the amount uploaded for each torrent to a file for use outside deluge. The only way I can find it now is by opening the web ui and getting the numbers from there, which is a pain (and if I don't check it for a while, I'm missing info if my system craps out).

Is this info stored anywhere easily accessible? I've looked through the log files, as well as some others but I can't make heads or tails of it. The torrents.state file looked promising, but I can't decipher what I need.

I can use/write a plugin if that's what it takes, but clearly the info has to be stored somewhere that I could pull it from.

Currently using a headless raspberry pi but I plan to run it on my ubuntu server if I can get this sorted.

Thanks!
User avatar
ambipro
Moderator
Moderator
Posts: 673
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: How to log amount uploaded?

Post by ambipro »

You can use the JSON RPC endpoint in the webui and parse out the keys you want, total uploaded is one of them.

Two methods would be of use, get_torrent_status and web.update_ui or something similar, I believe.

These return whatever keys you provide for any infohash or all infohashes, depending on what filtering you supply.

You can use inspect/developer mode in your browser in the webui under the network section to see the commands its issuing and their syntax.
Post Reply