From 51ba5ff503605194516b81e322e98263f60e58b2 Mon Sep 17 00:00:00 2001 From: lindely Date: Mon, 31 Oct 2022 10:09:59 +0100 Subject: Service for rTorrent. (#511) Service for rTorrent. --- docs/customservices.md | 22 +++++ dummy-data/rtorrent/download_list | 10 +++ dummy-data/rtorrent/global_down | 6 ++ dummy-data/rtorrent/global_up | 6 ++ src/components/services/Rtorrent.vue | 153 +++++++++++++++++++++++++++++++++++ 5 files changed, 197 insertions(+) create mode 100644 dummy-data/rtorrent/download_list create mode 100644 dummy-data/rtorrent/global_down create mode 100644 dummy-data/rtorrent/global_up create mode 100644 src/components/services/Rtorrent.vue diff --git a/docs/customservices.md b/docs/customservices.md index 3f17abc..fb3f2a7 100644 --- a/docs/customservices.md +++ b/docs/customservices.md @@ -25,6 +25,7 @@ within Homer: - [Mealie](#mealie) - [Healthchecks](#healthchecks) - [Proxmox](#proxmox) + - [rTorrent](#rtorrent) - [qBittorrent](#qbittorrent) If you experiencing any issue, please have a look to the [troubleshooting](troubleshooting.md) page. @@ -249,6 +250,27 @@ Two lines are needed in the config.yml : The url must be the root url of the Healthchecks application. The Healthchecks API key can be found in Settings > API Access > API key (read-only). The key is needed to access Healthchecks API. +## rTorrent + +This service displays the global upload and download rates, as well as the number of torrents +listed in rTorrent. The service communicates with the rTorrent XML-RPC interface which needs +to be accessible from the browser. Please consult +[the instructions](https://github.com/rakshasa/rtorrent-doc/blob/master/RPC-Setup-XMLRPC.md) +for setting up rTorrent and make sure the correct CORS-settings are applied. Examples for various +servers can be found at https://enable-cors.org/server.html. + +```yaml +- name: "rTorrent" + logo: "assets/tools/sample.png" + url: "http://192.168.0.151" # Your rTorrent web UI, f.e. ruTorrent or Flood. + xmlrpc: "http://192.168.0.151:8081" # Reverse proxy for rTorrent's XML-RPC. + type: "Rtorrent" + rateInterval: 5000 # Interval for updating the download and upload rates. + torrentInterval: 60000 # Interval for updating the torrent count. + username: "username" # Username for logging into rTorrent (if applicable). + password: "password" # Password for logging into rTorrent (if applicable). + + ## Proxmox This service displays status information of a Proxmox node (VMs running and disk, memory and cpu used). It uses the proxmox API and [API Tokens](https://pve.proxmox.com/pve-docs/pveum-plain.html) for authorization so you need to generate one to set in the yaml config. You can set it up in Proxmox under Permissions > API Tokens. You also need to know the realm the user of the API Token is assigned to (by default pam). diff --git a/dummy-data/rtorrent/download_list b/dummy-data/rtorrent/download_list new file mode 100644 index 0000000..1d08e51 --- /dev/null +++ b/dummy-data/rtorrent/download_list @@ -0,0 +1,10 @@ + + + + +2BAC78C9E10D82415142E57D24601F2FD8927816 +8BB10DB9EA239106D4907601C342ABBA29BE4391 +2790CE71493BE7083929D5A1CE9CFD6B8394F224 + + + \ No newline at end of file diff --git a/dummy-data/rtorrent/global_down b/dummy-data/rtorrent/global_down new file mode 100644 index 0000000..d48e884 --- /dev/null +++ b/dummy-data/rtorrent/global_down @@ -0,0 +1,6 @@ + + + +149279 + + \ No newline at end of file diff --git a/dummy-data/rtorrent/global_up b/dummy-data/rtorrent/global_up new file mode 100644 index 0000000..93a009c --- /dev/null +++ b/dummy-data/rtorrent/global_up @@ -0,0 +1,6 @@ + + + +45616 + + \ No newline at end of file diff --git a/src/components/services/Rtorrent.vue b/src/components/services/Rtorrent.vue new file mode 100644 index 0000000..75efb7b --- /dev/null +++ b/src/components/services/Rtorrent.vue @@ -0,0 +1,153 @@ + + + + + \ No newline at end of file -- cgit v1.2.3