Code Monkey home page Code Monkey logo

transmission-telegram's Introduction

transmission-telegram

Telegram chat bot to control Transmission.
Sorry, only magnet links are supported now.

Install as daemon under Linux using systemd:

  1. Register new Telegram bot as described at https://core.telegram.org/bots#botfather Save it's token.
  2. Install Python 3 and pip.
  3. Install Telegram and Transmission libraries using pip:
    pip3 install transmissionrpc
    pip3 install python-telegram-bot
  4. Create directory for bot and copy it's source to it:
    mkdir /opt/transmission-telegram
    cd /opt/transmission-telegram
    git clone https://github.com/Chudsaviet/transmission-telegram.git
  5. Create symlink and data directory:
    ln -s /opt/transmission-telegram/transmission-telegram.py /usr/sbin/transmission-telegram
    mkdir /var/lib/transmission-telegram
  6. Create directory in /etc and copy config in it:
    mkdir /etc/transmission-telegram
    cp config.ini.example /etc/transmission-telegram/config.ini
  7. Generate secret:
    dd if=/dev/urandom bs=4096 cnt=1 | sha256sum
  8. Edit config to set Transmission and Telegram credentials, and secret:
    editor /etc/transmission-telegram/config.ini
  9. Copy systemd service definition to systemd directory:
    cp scripts/transmission-telegram.service /etc/systemd/system/
  10. If you are running bot at the same machine as Transmission, it would be better to start bot after Transmission. Just edit /etc/systemd/system/transmission-telegram.service and add transmission-daemon.service to after section.
  11. Reload systemd daemons, enable and run transmission-telegram:
    systemctl daemon-reload
    systemctl enable transmission-telegram.service
    systemctl start transmission-telegram
  12. Check status of the daemon:
    systemctl status transmission-telegram

transmission-telegram's People

Contributors

chudsaviet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

transmission-telegram's Issues

problem during start daemon

this is my journal -xn on a raspbian
Jan 21 16:17:45 raspberrypi transmission-telegram[18302]: transmission-telegram:277# ERROR: I/O operation on closed file.

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.