Page 1 of 1

How to log amount uploaded?

Posted: Thu Jun 20, 2024 9:02 pm
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!

Re: How to log amount uploaded?

Posted: Fri Jun 21, 2024 12:02 am
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.