Author Topic: PyLoader mit XMPP/Jabber Interface  (Read 2499 times)

p

  • Global Moderator
  • Apache
  • *****
  • Posts: 110
  • Karma: +27/-0
    • View Profile
PyLoader mit XMPP/Jabber Interface
« on: October 30, 2013, 04:13:29 pm »
Code: [Select]
wget http://download.pyload.org/pyload-cli-v0.4.9-all.deb && sudo dpkg -i pyload-cli-v0.4.9-all.deb && rm pyload-cli-v0.4.9-all.deb
Konfiguration: pi@foo ~ $ pyLoadCore

Um die pyLoad-Instanz über ein XMPP/Jabber Interface in Verbindung mit einem Openfire-Server zu steuern muss man noch pyxmpp (stanzaprocessor.py) patchen. :ugly;

Bug: http://community.igniterealtime.org/thread/35966
Patch: https://github.com/pld-linux/python-pyxmpp/blob/master/python-pyxmpp-openfire_bug.patch


Code: [Select]
(16:06:57) p@foo.bar/hurr: help
(16:06:57) jabberinterface: The following commands are available:
(16:06:57) jabberinterface: add <package|packid> <links> [...] Adds link to package. (creates new package if it does not exist)
(16:06:57) jabberinterface: queue                       Shows all packages in the queue
(16:06:57) jabberinterface: collector                   Shows all packages in collector
(16:06:57) jabberinterface: del -p|-l <id> [...]        Deletes all packages|links with the ids specified
(16:06:57) jabberinterface: info <id>                   Shows info of the link with id <id>
(16:06:57) jabberinterface: packinfo <id>               Shows info of the package with id <id>
(16:06:57) jabberinterface: more                        Shows more info when the result was truncated
(16:06:57) jabberinterface: start                       Starts all downloads
(16:06:57) jabberinterface: stop                        Stops the download (but not abort active downloads)
(16:06:57) jabberinterface: push <id>                   Push package to queue
(16:06:57) jabberinterface: pull <id>                   Pull package from queue
(16:06:57) jabberinterface: status                      Show general download status
(16:06:57) jabberinterface: help                        Shows this help message

*happy*

Ich hab die Weboberfläche jetzt nur im LAN verfügbar, über einen SSH-Tunnel auf mein Pi steuere ich sie an.
Alternativ ist das XMPP/Jabber Interface recht bequem um mal eben einen Download in die Queue zu adden. :)