Azureus IM Notification Plugin

## Instant Messaging Notifications 1.0.4
Copyright(c) 2006 Chris Rose and AIMedia.
(GPL, blah blah…)

MD5: b2472fbeb47da6731a4873c39057ad0e azjabber-1.0.4.zip

### Purpose

This plugin grew out of my frustration with headless Azureus instances, and
never knowing when they were finished downloading torrents. This plugin will
send you an instant message when a torrent starts, finishes, etc…

### Usage

The plugin doesn’t ship configured to work with your IM service out of the box,
obviously, so it won’t do too much until you enter your password and username
into the `Jabber Notifications` plugin page in the Plugins section of the
Azureus configuration dialog.

At that point, you’ll receive the notifications you’d expect from the UI. Note
that not all notifications are fully supported at this time.

#### Security Notice

The password is stored in plain text in the configuration, regrettably — I need
to pass it through to the chat service, and I don’t know any safer way to do that.
At some point I’ll allow the option of storing it in some simple hashed way, or
to enter it on startup.

### Limitations

It currently only supports google talk for notifications.

Not all notifications are implemented.

### Contact

The plugin has a page at [http://www.offlineblog.com/projects/azureus-jabber-plugin](http://www.offlineblog.com/projects/azureus-jabber-plugin)
for comment. Bug reports can be entered here: [OffByOne JIRA](http://offby1.no-ip.org:8080/browse/AZIM)

### Version History

- 1.0
- initial release
- 1.0.1
- UI enhancements in the configuration dialog
- Fixed some potential error conditions during Azureus shutdown
- 1.0.2
- Renamed the plugin to ‘azjabber’ from ‘com.aimedia.azjabber’
- 1.0.3
- Fixed a few NPE conditions in the logging of messages.
- Added a button to access the plugin configuration from the log view.
- 1.0.4
- Added reconnection logic

If you have not received this file either from [http://azureus.sourceforge.net/](http://azureus.sourceforge.net/)
or [http://offlineblog.com/](http://offlineblog.com/) I would suggest that you do so, since anyone could
have done anything with it. There will always be a current version at
[http://www.offlineblog.com/?dl=azjabber-current.zip](http://www.offlineblog.com/?dl=azjabber-current.zip)

Enjoy!

### Files

#### Current Version

MD5: b2472fbeb47da6731a4873c39057ad0e azjabber-1.0.4.zip

#### Older Versions

MD5: b4a227990136c3ca693819a313f5362d azjabber-1.0.3.zip
MD5: 6d74e971b15c4fc236248df845a69e96 azjabber-1.0.2.zip
MD5: 344d5fb26d749244cb712d153e2fb65a azjabber-1.0.1.zip
MD5: 59e6573ef2627b2ffdd55ab718c7e1c9 azjabber-1.0.0.zip

13 Responses to “Azureus IM Notification Plugin”

  • Leonard

    Hi,

    I’m the developer of AzSMRC and I would like to cooperate with you in extending the jabber plugin.

    Since AzSMRC allows multiuser it would be cool if AzSMRC could send each user a message.

    This could be done via IPC (http://azureuswiki.com/index.php/IPC) please contact me if you are interested.

    -Leonard

  • Chris

    That’s an interesting concept; I’m not sure how well I could do that, though — The integration with Google Talk is pretty single-user.

    Still, I could look into abstracting the communications layer some, and maybe adding subscriptions to the notifications…

    What use pattern did you have in mind for this?

  • Leonard

    Well I thought you could send any jabber user a message via jabber, so I thought about a function that takes the jabber account and the message and sends it to the user.

    Well i would like to continue the talk via email, or jabber.

    -Leonard

  • tommy

    it wont work if you’d like i can post the error report.

  • Chris

    I’d need a few details, yeah :)

    define: “won’t work”, first.

    Then, if there’s anything in the plugin log (plugins->log views->…)
    I’d like that, too.

  • Tommy

    ok this is what i get after azureus start up:

    No response from the server.:
    at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:58)
    at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:228)
    at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:426)
    at com.aimedia.azjabber.xmpp.XMPPConnectionManager.connect(XMPPConnectionManager.java:105)
    at com.aimedia.azjabber.AzJabberPlugin.startUp(AzJabberPlugin.java:186)
    at com.aimedia.azjabber.AzJabberPlugin.access$100(AzJabberPlugin.java:40)
    at com.aimedia.azjabber.AzJabberPlugin$3.initializationComplete(AzJabberPlugin.java:146)
    at org.gudy.azureus2.pluginsimpl.local.PluginInterfaceImpl.initialisationComplete(PluginInterfaceImpl.java:586)
    at org.gudy.azureus2.pluginsimpl.local.PluginInitializer.initialisationComplete(PluginInitializer.java:1477)
    at com.aelitis.azureus.core.impl.AzureusCoreImpl$6.runSupport(AzureusCoreImpl.java:503)
    at org.gudy.azureus2.core3.util.AEThread.run(AEThread.java:69)

    plugin log:

    [Sat Jan 27 17:25:22 CST 2007] [17:25:22] Handle downloading_to_seeding events: true.
    [Sat Jan 27 17:25:22 CST 2007] [17:25:22] Handle downloading_to_stopping events: true.
    [Sat Jan 27 17:25:22 CST 2007] [17:25:22] Handle seeding_to_stopped events: true.
    [Sat Jan 27 17:25:22 CST 2007] [17:25:22] Handle seeding_to_stopping events: true.
    [Sat Jan 27 17:25:22 CST 2007] [17:25:22] Handle downloading_to_stopped events: true.
    [Sat Jan 27 17:25:22 CST 2007] [17:25:22] Handle ready_to_downloading events: true.
    [Sat Jan 27 17:25:23 CST 2007] [17:25:23] Starting up AzJabber.
    [Sat Jan 27 17:25:38 CST 2007] [17:25:38] Connected to talk.google.com.
    [Sat Jan 27 17:25:43 CST 2007] [17:25:43] Unable to perform initial connection to the Jabber service.
    No response from the server.
    [Sat Jan 27 17:25:56 CST 2007] [17:25:56] Discarding state notification “queued_to_waiting” for vlcsnap-100769.png.
    [Sat Jan 27 17:25:57 CST 2007] [17:25:57] Discarding state notification “waiting_to_preparing” for Fight Songs For Fuck-Ups.
    [Sat Jan 27 17:25:57 CST 2007] [17:25:57] Discarding state notification “waiting_to_preparing” for Songs from Under the Sink.
    [Sat Jan 27 17:25:57 CST 2007] [17:25:57] Discarding state notification “waiting_to_preparing” for Just the Best Party.
    [Sat Jan 27 17:25:57 CST 2007] [17:25:57] Discarding state notification “waiting_to_preparing” for Zydepunks.
    [Sat Jan 27 17:25:57 CST 2007] [17:25:57] Discarding state notification “waiting_to_preparing” for Red-Eyed Soul.
    [Sat Jan 27 17:25:57 CST 2007] [17:25:57] Discarding state notification “waiting_to_preparing” for A SCANNER DARKLY.
    [Sat Jan 27 17:25:58 CST 2007] [17:25:58] Discarding state notification “waiting_to_preparing” for Rosetta Stone Compressed.
    [Sat Jan 27 17:25:58 CST 2007] [17:25:58] Discarding state notification “preparing_to_ready” for Red-Eyed Soul.
    [Sat Jan 27 17:25:58 CST 2007] [17:25:58] Discarding state notification “preparing_to_ready” for Just the Best Party.
    [Sat Jan 27 17:25:58 CST 2007] [17:25:58] Discarding state notification “preparing_to_ready” for Fight Songs For Fuck-Ups.
    [Sat Jan 27 17:25:58 CST 2007] [17:25:58] Discarding state notification “waiting_to_preparing” for vlcsnap-100769.png.
    [Sat Jan 27 17:25:58 CST 2007] [17:25:58] Discarding state notification “preparing_to_ready” for vlcsnap-100769.png.
    [Sat Jan 27 17:25:58 CST 2007] [17:25:58] Discarding state notification “preparing_to_ready” for Zydepunks.
    [Sat Jan 27 17:25:58 CST 2007] [17:25:58] Disconnecting existing connection to localinformation@gmail.com.
    [Sat Jan 27 17:26:14 CST 2007] [17:26:14] Connected to talk.google.com.
    [Sat Jan 27 17:26:19 CST 2007] [17:26:19] Connection to XMPP server lost.
    No response from the server.

  • Arioch

    1) saying this pugin works only with Google Talks is a bit untrue. Google Talks is just a jabber server, and AFAIR is not most secure at login/passwod exchange :-)
    Surely plugin works with another jabber servers. Did not tried it with LiveJournal.com though.

    2) plugin misdetects staus change and sends tons of spam in the scenario:
    a) some private torrent allows only seeding of XX torents max.
    b) i set up Azureus Queue to only allow up to XX seedings
    c) Azureus in reatime queries tracker for uploaders/leachers ratio and atomatically stops some seeds and starts other.

    This time plugin send me tons of “Started downloading”/”Complete downloading, seeding” message pairs.

  • Chris

    That’s not technically a bug- it is detecting the state change in the torrent — stop/start seeding — and notifying you of it. However, your usage pattern is one that probably should be addressed.

    Hhm.

    Submit a bug report, please, and I’ll look into it. It’s something that annoys me too (it happens to me) and that I’ve been too lazy to address, so perhaps this will be the excuse. I’ve added the bug tracker URL to the page above, but here it is for you: http://offby1.no-ip.org:8080/browse/AZIM

  • Colin

    I don’t really understand how to use this plugin…I have the fields filled out like so:
    Host: talk.google.com
    Port: 5222
    Name: myemailaddress@gmail.com (is this right?)

    User Name: myemailaddress@gmail.com (?)
    Resource Name: windows_computer
    Password: mypassword

    In the log it says:
    Unable to perform initial connection to the Jabber service.
    XMPPError connecting to talk.google.com:5222.

    So I’m guessing one of those fields is wrong.

  • Arioch

    Google is not full-featured jabber server.
    Read many jabber clients FAQs – there are special description how o connect to GTalk, which features to suspend and which to enforce.

    For example, jabber server should support multiple connections with different programs/computers into the single login/password. Can you connect to the same GTalk from two computers at the same time ? If you cannot, AzJabber would seems fail too.

  • Chris

    azjabber does, however, work with gmail; it’s gmail that I use it for. Colin, here’s the settings that work:

    Host: talk.google.com
    Port: 5222
    Name: gmail.com

    User name:
    Resource name: anything at all
    Password: I can’t tell you that

  • fuzzymok

    @Colin

    In Host configuration Name must be gmail.com and
    in client configuration “username” is your gmail username, but you don’t have to put “@gmail.com”, for me these settings work well.

  • Coyttl

    So after a few years. it appears so,ething in Google changed. Anyone else getting this?

    [02:30:54.811] {plug} [azjabber] Transmitted XMPP packet “”.
    [02:30:54.810] {plug} [azjabber] Connection to XMPP server lost.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.