Skip to main content

CDMClient

Project description

CDMClient

CDM - Centralized Download Manager Client CDMClient is the client application for the CDM Server.

This client communicates with the CDM Server to periodically send the download status from Transmission and check for new torrent files to download. If new torrents are available, they are downloaded and added to Transmission using the transmission-rpc library.

Installation

Install or Upgrade the Package

Run the following command to install or upgrade CDMClient:

python3 -m pip install --upgrade CDMClient --user

Create a Systemd Service

To set up CDMClient as a systemd service, execute the following commands:

  1. Create the service file:

    echo "[Unit]
    Description=cdm-client service
    After=multi-user.target
    Conflicts=getty@tty1.service
    
    [Service]
    User=${USER}
    Type=simple
    Environment=LC_ALL=C.UTF-8
    Environment=LANG=C.UTF-8
    ExecStart=${HOME}/.local/bin/cdm-client
    Restart=on-failure
    RestartSec=3
    
    [Install]
    WantedBy=multi-user.target" | sudo tee /etc/systemd/system/cdm-client.service
    
  2. Reload systemd and enable the service:

    sudo systemctl daemon-reload
    sudo systemctl enable cdm-client.service
    sudo systemctl start cdm-client.service
    

Add automatic update (optional)

To keep CDMClient updated automatically, you can add a cron job. Run:

crontab -e

Then add the following line to the crontab file:

0 3 * * * /usr/bin/python3 -m pip install --upgrade CDMClient --user && systemctl restart cdm-client.service

Configuration

The configuration file is located at: ~/.config/cdm_client/config.ini

This file is automatically generated when the service starts. Below is an example configuration:

[connection]
server_host = "https://cdm.test.com"
api_key = "1409d6ed79280aadcbe20f8f21981e89"
rpc_user = "admin"
rpc_password = "admin"

Configuration Details:

  • server_host: The full URL of the CDM Server (e.g., https://cdm.server.com).
  • api_key: The API key generated when adding a new device on the CDM Server's devices page. Refer to the Devices Page Documentation.
  • rpc_user and rpc_password: Required only if Transmission RPC authentication is enabled. See the Transmission RPC Configuration Guide for more details.

Viewing Logs

To monitor the service logs, use the following command:

journalctl -fu cdm-client

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdmclient-0.3.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdmclient-0.3.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file cdmclient-0.3.1.tar.gz.

File metadata

  • Download URL: cdmclient-0.3.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.3

File hashes

Hashes for cdmclient-0.3.1.tar.gz
Algorithm Hash digest
SHA256 2405657a70944092eb66fcd2170e6e09c552bffc105c7113c7e728797c5704dc
MD5 3f99c30a301b08e9d41b4ff15e3878a0
BLAKE2b-256 d7431bc8b69bb0be85325221b1cb401305dc7bf2c1d20351fa9c176081b32808

See more details on using hashes here.

File details

Details for the file cdmclient-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: cdmclient-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.3

File hashes

Hashes for cdmclient-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81012564d1c90eb975284c1be8b622902c0022fddbee9deadc792df5f263fa63
MD5 323d5f80ccac97b90c02abbd9321b84d
BLAKE2b-256 eb7b02b3f355380c16e49c5975203f6ccf7c25d89333f4c8c3007f02fd3b57eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page