Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

[PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

If you have a question or need help, this is the place to be.
Post Reply
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

[PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by topix »

Hello everybody!

I'm working on a plugin to use instant messaging. Actually it consist of two plugins. One for EG and one for Emesene. Emesene is a messenger for the Windows Live Network (MSN).

The plugin is in an early stage. I need to add more error checking and want to add more functionality. To get it working, you need to have both plugins installed (EG & Emesene). Emesene must be started and logged in (and the plugin must be activated).

What's working
  • In Emesene: In a conversation you can generate an event. /eg event (~ payload)
  • In Emesene: Events will be generated when you receive or send a message, a conversation window is opend or closed.
  • In EG: Get a list with the buddies (emails) -> eg.result
  • In EG: Send a message
Installation:
  • download & install Python 2.5.4
  • download & install GTK+ 2.0
  • download & install PyGTK (PyCairo, PyGObject, PyGTK for Python 2.5)
  • download emesene_1578.zip (SVN trunk version 1578)
  • unzip emesene_1578.zip to"c:\program files\"
  • create a directory "%HOMEPATH%\.config\emesene1.0\"
  • (download & install EventGhost)
  • unzip the attached file to "c:program files\"
  • run "c:\program files\emsene\controller.py"
  • log in
  • go to menu "Options\Plugins" and enable the EventGhost plugin
  • run EventGhost ... (you know what to do there ;-))
Attachments
EG-Emesene_0.1.0.zip
(5.57 KiB) Downloaded 149 times
Last edited by topix on Sun Mar 22, 2009 9:28 am, edited 2 times in total.
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: [PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by Livin »

this is great!

Will it work with Microsoft's Live Messenger?

Can you add Events that send IMs?
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: [PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by topix »

Livin wrote:this is great!

Will it work with Microsoft's Live Messenger?

Can you add Events that send IMs?
No and yes :) . On your computer you need the program Emesene. It will use the Live Messenger Network to send and receive messages. So you can use your LM account with Emesene.

In EventGhost you can add an action to send a message and Emesene will automaticly generate an event in EventGhost when you receive a message.
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: [PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by jinxdone »

Great. But I think this thread is in the wrong part of the forum, it should be in the coding corner.
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: [PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by Livin »

topix wrote:
Livin wrote:this is great!

Will it work with Microsoft's Live Messenger?

Can you add Events that send IMs?
No and yes :) . On your computer you need the program Emesene. It will use the Live Messenger Network to send and receive messages. So you can use your LM account with Emesene.

In EventGhost you can add an action to send a message and Emesene will automaticly generate an event in EventGhost when you receive a message.
Cool. I'll try it this weekend... I want to send IMs to myself based on EG events... like ways to monitor what is going on with the HTPC :)

I've been hoping someone would build an IM client. I'd never heard of Emesene until you posted this either.

thx!
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: [PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by topix »

jinxdone wrote:Great. But I think this thread is in the wrong part of the forum, it should be in the coding corner.
I thought that the coding corner is just for questions, but in this thread i don't have questions :). I would have opend it in Plugin support, but i have no write permission there.

@moderator: Feel free to move this thread where it best fit in.
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: [PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by topix »

While testing my plugin, i found out, that it's not easy to install. Changed first post with installation tips.
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: [PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by Livin »

topix wrote:While testing my plugin, i found out, that it's not easy to install. Changed first post with installation tips.
WOW, that is quite a lot to install. Why can't it just use the Python libraries installed with EG?
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: [PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by topix »

Hello Mike,
i found the SVn version 1578 of emesene, but i don't know, if this is the version that i created the plugin for.

https://www.dropbox.com/s/ogy3xx4va6uho ... vn1578.zip
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: [PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by topix »

Currently i'm trying to create a plugin for emesene2. I already get events from e2 when logon/off, start/close a conversation. But i have a problem with e2 itself: i can't receive a message, sending is ok. And after sending/receiving e2 will crash. :(

@Mike: Did you get e2 running?
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: [PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by topix »

Ok, here is a first try. I wasn't able yet to send messages. I wrote in the emesene google group, but have no answer till now.

To use it, copy the folder from the zip file to the plugin folder of emesene2. When you used the installer-version of e2 it's c:\Users\<username>\AppData\Roaming\emesene\emesene2\plugins\. In EG add the Network Event Receiver plugin. Configure both and see what happens :)
Attachments
emesene2-plugin_EventGhost.zip
This is a emesene2 plugin.
(17.16 KiB) Downloaded 130 times
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: [PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by topix »

You can edit the plugin. Put '#' in front of the line to deactivate it. You need to do this in start() and stop().

Code: Select all

    def start(self, session):
        ...
        ...
        self.session.signals.call_invitation.subscribe(self.eg.on_call_invitation) # (self, call, cid, westart=False)


    def stop(self):
        ...
        ...
        self.session.signals.call_invitation.subscribe(self.eg.on_call_invitation)
 

Code: Select all

    def start(self, session):
        ...
        ...
        #self.session.signals.call_invitation.subscribe(self.eg.on_call_invitation) # (self, call, cid, westart=False)


    def stop(self):
        ...
        ...
        #self.session.signals.call_invitation.subscribe(self.eg.on_call_invitation)
 
jayismyson
Posts: 1
Joined: Wed Mar 20, 2013 6:15 am

Re: [PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by jayismyson »

start/close a conversation. But i have a problem with e2 itself: i can't receive a message, sending is ok. And after sending/receiving e2 will crash

_________________
rs gold|wow gold|cheap rs gold|Runescape Gold
User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: [PLUGIN] Instant Messenger: Emesene (v0.1 - 18.03.2009)

Post by topix »

The news is, that MSN is dead. So emesene won't work anymore on with it. There are other protocols that could be used, but atm i don't have the time to investigate in it. Sorry

http://answers.microsoft.com/en-us/wind ... bee1e8c36f
Post Reply