Coder Social home page Coder Social logo

rtremote's Introduction

rtremote

minimum tests (API version) main test suite

rtremote is a intermediary server that manages the traffic between your running rtorrent client and rtorrent remote Android app. The rtremote is Open Source and public. The mobile app is not.

HOWTO

How to run rtremote Web Sockets server next to your running rtorrent.

Downloading

Do not clone this repo, rather get a release from here. The repo contains test and test dependencies you don't need.

Requirements

  • rtorrent compile in with --with-xmlrpc-c flag
  • rtorrent socket file, ususally .rtorrent.sock
  • Python 3.7+ (3.6.1+ might work as well, but rtremote was only tested on 3.7+)
  • Python dependencies, installed with pip install -r requirements.txt

Running

  • unpack and get into the rtremote directory
  • make sure start.sh has correct permissions, it needs +x to execute
  • make sure that start.sh (last line) executes correct Python version
  • edit the start.sh file, makig sure you set all parameters correctly
  • secret key needs to be in SHA1 encrypted format, you can get it e.g. whis way: echo 'abc123' |sha1sum, where abc123 is your secret key

Using

Get rtorrent remote app from Google Play store, configure it to point to this server, have fun.

Troubleshooting

In case of issues, you can increase logging level from INFO (default) to DEBUG by editing utils.py.

rtremote's People

Contributors

trogious avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cm58

rtremote's Issues

unable to conect to socket

my start.sh is

#!/bin/sh -
RTR_ROOT=`pwd`
/usr/bin/env \
  RTR_CERT_PATH="$RTR_ROOT/cert/cert.pem" \
  RTR_RETR_INTERVAL=5 \
  RTR_SHORT_CACHE_TTL=5 \
  RTR_LISTEN_HOST="0.0.0.0" \
  RTR_LISTEN_PORT=8765 \
  SOCK_PATH="/home/rtorrent/.session/rpc.socket" \
  RTR_PID_PATH="$RTR_ROOT/wss_server.pid" \
  RTR_LOG_PATH="$RTR_ROOT/rtr_wss_server.log" \
  RTR_SECRET_KEY_SHA1="a8fdc205a9f19cc1c7507a60c4f01b13d11d7fd0" \
  RTR_PLUGINS_DISK_USAGE_PATHS="/" \
  python3 $RTR_ROOT/server_wss.py $@

and the socket is there,

ll /home/rtorrent/.session/rpc.socket
srwxrwxrwx 1 root root 0 Aug 19 03:34 /home/rtorrent/.session/rpc.socket

I tried to change SOCK_PATH to unix:///home/rtorrent/.session/rpc.socket but still failed.

2020-08-19 04:27:47|ERROR|277|[Errno 2] No such file or directory
Traceback (most recent call last):
File "/root/src/rtremote/server_wss.py", line 259, in global_data_updater
data = remote.get_global()
File "/root/src/rtremote/remote.py", line 32, in get_global
g = self.rpc.global_data(['system.api_version'])
File "/root/src/rtremote/rpc.py", line 99, in global_data
data = self.system_multicall(commands)
File "/root/src/rtremote/rpc.py", line 57, in system_multicall
resp = scgi.post(body)
File "/root/src/rtremote/scgi.py", line 38, in post
sock = self.get_connected_socket()
File "/root/src/rtremote/scgi.py", line 33, in get_connected_socket
sock.connect(self.host_port.replace('unix:', '').replace('local:', ''))
FileNotFoundError: [Errno 2] No such file or directory
2020-08-19 04:34:39|ERROR|277|[Errno 2] No such file or directory
Traceback (most recent call last):
File "/root/src/rtremote/server_wss.py", line 259, in global_data_updater
data = remote.get_global()
File "/root/src/rtremote/remote.py", line 32, in get_global
g = self.rpc.global_data(['system.api_version'])
File "/root/src/rtremote/rpc.py", line 99, in global_data
data = self.system_multicall(commands)
File "/root/src/rtremote/rpc.py", line 57, in system_multicall
resp = scgi.post(body)
File "/root/src/rtremote/scgi.py", line 38, in post
sock = self.get_connected_socket()
File "/root/src/rtremote/scgi.py", line 33, in get_connected_socket
sock.connect(self.host_port.replace('unix:', '').replace('local:', ''))
FileNotFoundError: [Errno 2] No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.