8000 GitHub - kafisatz/qBittorrentStats.jl: A tool to write qBittorrent statistics (upload, download) to InfluxDB
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kafisatz/qBittorrentStats.jl

Repository files navigation

qBittorrentStats

Build Status

Purpose

Requirements

  • InfluxDBv2 instance
  • A qBittorrent client with WebUI API enabled.

Limitations

  • For me this is currently not working when I use a https URL (reverse proxy). Instead I am using the IP of the client

Usage

#you should make sure that https://github.com/kafisatz/InfluxDBClient.jl works properly for you
#see https://github.com/kafisatz/InfluxDBClient.jl#configuration
using InfluxDBClient
isettings = get_settings()
#check if the InfluxDB is reachable
bucket_names, json = get_buckets(isettings);

#if the above works, proceed as follows

using qBittorrentStats

#URL of the WebUI; this should show the Web UI login page of qBittorrent
baseurl = "http://10.14.15.205:8080"

#credentials and settins for InfluxDB
influxdbsettings = InfluxDBClient.get_settings()

#a bucket name in InfluxDB
#Make sure this bucket is first created. Otherwise you will get a warning message and no data will be written
influxdbbucketname = "qBittorrentStats"

lastactivitydf,js,cookieDict = getstats(baseurl,password=password);

#lastactivitydf is a dataframe which contains the information for each torrent

#the data is gathered via https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)#get-torrent-generic-properties
#see the property list on that page
#Notably only a subset of the properties is written to InfluxDB as the motivation for this package was upload and download volumes to manage storage tiering (and deletion) of torrents

About

A tool to write qBittorrent statistics (upload, download) to InfluxDB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0