[Plugin] XMPP Notify plugin for 1.2.3

Suggest, post, or discuss plugins for Deluge
enikesha
New User
New User
Posts: 7
Joined: Fri Apr 23, 2010 5:03 pm

[Plugin] XMPP Notify plugin for 1.2.3

Post by enikesha »

Hello!

This is XMPP notify/control bot for 1.2.3 version.
http://bitbucket.org/enikesha/deluge-xmppnotify/
It requires twisted.words, twisted.names and wokkel library.

Bot usage with GTalk account requires python-openssl.

Features:
-- GTK and WebUI client interface
-- Notify on torrent finish
-- List current torrents
-- Add torrents from URL
-- Two access lists, for viewing and control commands

For now it supports following commands:
pass <pass> -- Send password to gain viewer or controller access (if not on whitelist, see below)
Viewing commands
list -- Lists all current torrents.
down -- Lists downloading torrents.
up -- Lists uploading(seeding) torrents.
paused/queued -- Lists paused and queued torrents.
help -- Shows this help.
Control commands
url <torrent url> [download location or L:label] -- Adds new torrent with optional download location or assigned label.
start notify -- Add user to notify list
stop notify -- Remove user from notify list
notify <text> -- Debugging command. Sends <text> to all configured notifees.

Configuration:
Notifier jabber account/password: Pre-registered jabber account for bot.
Users to notify: Line separated list of jabber/gtalk accounts to notify.
View password -- Use 'pass <password>' command to allow view commands for this jid
View whitelist -- Users in this list are allowed to use view commands without sending password.
If password is empty - only users on whitelist will be allowed to communicate with bot, it will be silent to all others.
If password and whitelist are empty - everyone will be allowed to use view commands (prev version behavior)
Control password and whitelist -- analogous to view, but allows control commands (url, start notify, stop notify)
If control's password and whitelist are empty -- only users in 'notify' list will be allowed to use control commands (prev version behavior)

Feel free to use http://bitbucket.org/enikesha/deluge-xm ... issues/new for any ideas/feature requests.

PS. When installing via WebUI it's needed to refresh page to see configuration tab.

Download
Last edited by enikesha on Wed Jan 19, 2011 10:07 pm, edited 6 times in total.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: XMPP Notify plugin for 1.2.3

Post by Cas »

Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: XMPP Notify plugin for 1.2.3

Post by Cas »

Installed all the dependencies but I cannot get the plugin to start on 1.2.3
enikesha
New User
New User
Posts: 7
Joined: Fri Apr 23, 2010 5:03 pm

Re: XMPP Notify plugin for 1.2.3

Post by enikesha »

Thanks for wiki!

Anything in the logs?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: XMPP Notify plugin for 1.2.3

Post by Cas »

Nothing at all in the logs
enikesha
New User
New User
Posts: 7
Joined: Fri Apr 23, 2010 5:03 pm

Re: XMPP Notify plugin for 1.2.3

Post by enikesha »

There should be something in 'info' logs, try launching daemon with '-L info'
Could you get Preferences page visible?
Plugin will be silent if something wrong with Jabber account.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: XMPP Notify plugin for 1.2.3

Post by Cas »

Well that is strange as I tried it again just now and its now working. My best guess is that it probably wasn't loading the new dependencies. You could add a try statement around those imports with an error message on fail as nothing was showing in debug logs.

Thanks for developing the plugin its working great now. One thing though, could you add a test button for sending notifications out rather than waiting for events?
enikesha
New User
New User
Posts: 7
Joined: Fri Apr 23, 2010 5:03 pm

Re: XMPP Notify plugin for 1.2.3

Post by enikesha »

Import errors are visible in daemon's 'error' log when enabling plugin.

For testing you could use 'list' command or debugging 'notify <text>' command which sends <text> to all configured notifees.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: XMPP Notify plugin for 1.2.3

Post by Cas »

there were no error in the debug log when i tried to enable the plugin last night so must be something else.

thanks the notify command works, you should add it to the list of commands :)
enikesha
New User
New User
Posts: 7
Joined: Fri Apr 23, 2010 5:03 pm

Re: XMPP Notify plugin for 1.2.3

Post by enikesha »

I've updated plugin,

Now it support assigning label to torrent instead of setting download location on 'url' command.

Starting post attach updated.
Post Reply