Giter Site home page Giter Site logo

otto_robotto's Introduction

otto_robotto

Home server executor that takes direction from dropbox, neato

What does otto robotto allow you to do?

Run otto on a server you wish to control remotely using dropbox to pass commands to and execute

Once otto is running simply edit the commands.conf file and give it one of the pre-determined commands to run (see below)

You can also execute custom commands if you define them in otto.conf on the server, this is to prevent someone from maliciously executing commands on your server should they get access to your dropbox a/c.

Data from otto can be retrieved by using the log command which returns the full log file to dropbox

Setup

pip install -r requirements.txt

Running

sudo python otto.py
ctrl-z (this pauses application)
bg (this resume application in background)

Requirements

You will need to have a dropbox account

API access can be found here: https://www.dropbox.com/developers/apps

To download torrents you will need to download libtorrent

Libtorrent

###Ubuntu command

sudo apt-get install python-libtorrent

###Windows Install

grab msi from here: http://sourceforge.net/projects/libtorrent/files/py-libtorrent/

Standard commands

###tor

tor http://www.url.com/torrentname.torrent

###com This allows execution of extra commands written in otto.conf (see below for examples)

com 1

###mag Download a magnet link to the TORRENT_DIR that was specified at first run (can be changed in otto.conf)

mag magnet:?xt=urn:btih:A89911197425F048EE1FDFA11D6DFABB15ADDEEF&dn=filenameblablabla&tr=udp://tracker.trackersite.tk:6969/announce

###log Returns the log file to your dropbox account, this is handy to see progress of downloads and also results of commands executed with com command

log

###exit Shuts otto down, WARNING: this means you will need to start it manually again

exit

###reload Reloads otto.conf

reload

###magtv Same as mag except downloads to TORRENT_DIR/tv

mag magnet:?xt=urn:btih:A89911197425F048EE1FDFA11D6DFABB15ADDEEF&dn=filenameblablabla&tr=udp://tracker.trackersite.tk:6969/announce

###magmovie Same as mag except downloads to TORRENT_TV/movies

mag magnet:?xt=urn:btih:A89911197425F048EE1FDFA11D6DFABB15ADDEEF&dn=filenameblablabla&tr=udp://tracker.trackersite.tk:6969/announce

Adding extra commands

The otto.conf file which is generate after first run of the application contains a section called 'commands'

The commands section is in the syntax: command = command including arguments e.g.

1 = ls -lah

to execute the command 1 above, you would type the following into the commands.conf

com 1

this will execute

ls -lah

on the operating system running otto, the results will be put into the log file which can be retrieved to dropbox by entering

log

into commands.conf

otto_robotto's People

Contributors

jamesmwhite avatar isshell avatar

Watchers

 avatar

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.