LIRC Client

Questions and comments specific to a particular plugin should go here.

Re: LIRC Client

Postby Bartman » Wed Feb 13, 2008 3:14 pm

Ok.
Im just wondering why it does not happen all the time but on only sometimes.
Since this IR Trans device does not have the ability to send I would not miss a feature.
Bartman
Plugin Developer
 
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: LIRC Client

Postby jinxdone » Wed Feb 13, 2008 5:35 pm

If you want you could try telneting to your ir trans device's lirc server and just type in "LIST<enter>" and see if you get any response
User avatar
jinxdone
Plugin Developer
 
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: LIRC Client

Postby jinxdone » Fri Feb 22, 2008 7:48 pm

I recently installed WinLirc & EventGhost on a HTPC machine and here's a little how-to for running winlirc with realtime priority for anybody interested:


First of all, I had my windows set up so that the account used on the computer is only in "users" group, so he does not have administrative priviledges. That then leads to winlirc being run only at "High" priority, which is not enough, I wanted "Realtime" priority for the winlirc process.. To fix it you must run the winlirc process with more priviledges and this is the tricky part if you want to keep your system clean.

You could do one of these three things to make it work:

1. Start the winlirc process with different account than your own, namely the "Run As" feature of windows.
2. Start the winlirc process as a system service (using firedaemon for example).
3. Start using an account with more priviledges.


I went for option no.1 because it is the cleanest way to do it.

WinXP actually ships with a tool for doing exactly this (runas.exe), but that will present you with problems since you want to autorun winlirc without being prompted for a password. You definately don't want to use the /savecred feature of runas.exe since it's basically a gaping security hole.

I recommend using a freeware app called CPAU to archieve the same thing and more! First place the cpau.exe in the winlirc directory. ("C:\winlirc\" in my case) And here's how to use it:

Code: Select all
C:\winlirc>CPAU.exe -u VIDEO\winlirc -p PaSSWoRD -ex winlirc.exe -enc -file winlirc.job -crc winlirc.exe

CPAU V01.11.00cpp Joe Richards (joe@joeware.net) November 2005

Current Security Context: MYDOMAIN\video

WARN:
WARN: This will not be an interactive authentication. This means
WARN: that the credentials are only valid for connecting to remote
WARN: resources, locally you will have the credentials CPAU was
WARN: launched with. If you need the specified credentials to work
WARN: on the local machine you need to use -LWP or -LWOP options.
WARN:

Generating CRC Information...
Attempting to create CPAU job file: winlirc.job
Job file Created with following information:
  Job File: winlirc.job
  Domain  : VIDEO
  User    : winlirc
  Password: PaSSWoRD
  Execute : winlirc.exe
  CRC Files:
      winlirc.exe

Note that other options including -profile are NOT encoded, use
them in the decode command.

The command completed successfully.

So now you have created a .job file which is a crypted file containing instructions & all the credentials for cpau.exe to launch winlirc with elevated priviledges without asking for input. When used with cpau.exe this .job file can not be used to run anything except a winlirc.exe file that matches the crc checksum, so it can not be misused to run any other executable.

Keep in mind though that this winlirc.job file contains the password for the account you specified and in theory with enough determination and cracking know-how it is possible to decrypt the file and get the password. Therefore as a precaution I created a new local user "winlirc" which I gave local administrator rights. This way I'm not potentially compromising any of my even more important accounts or their passwords.


To run the winlirc.job file:
Code: Select all
C:\winlirc>CPAU.exe -dec -file winlirc.job -lwop

CPAU V01.11.00cpp Joe Richards (joe@joeware.net) November 2005

Current Security Context: MYDOMAIN\video
Attempting to use job file winlirc.job
Successfully Processed Job File
Verifying CRCs...
Process Created...

The command completed successfully.



Then finally make a shortcut in "start menu\programs\startup\" to autorun it when you logon and you should be all set!
Attachments
shortcut.jpg
WinLirc startup shortcut properties
Last edited by jinxdone on Mon Apr 21, 2008 8:23 am, edited 1 time in total.
User avatar
jinxdone
Plugin Developer
 
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: LIRC Client

Postby crussell1 » Fri Mar 14, 2008 3:24 am

Hey guys,

I'm trying to run version 0.7 but I'm having problems getting it started. I can get v0.6 to work but I'm most interested in mapping macros in EventGhost to transmit IR codes. The error I get is the following - which happens whenever EventGhost tries to initialize the plugin:

NameError: name 'eg' is not defined

I've confirmed that v0.6 worked when I saw the IR commands being received - but is there something else I'm missing thats required to use the latest version? Any help would be greatly appreciated.


*** Never Mind ***
I wasn't using the latest BETA version - was using a release build. Next time I'll RTFM closer :mrgreen:
crussell1
 
Posts: 2
Joined: Fri Mar 14, 2008 3:15 am

Re: LIRC Client

Postby jinxdone » Wed Oct 15, 2008 8:38 am

Added a checkbox in the configuration dialog to enable / disable sending the 'LIST' command when connecting to the server. Uncheck the box if your lirc server does not support it.

Due to changes you may also need to re-configure the plugin when using an xml made with an older version.
User avatar
jinxdone
Plugin Developer
 
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: LIRC Client

Postby flankerrider » Fri Apr 17, 2009 10:40 pm

Is there still some development going on?

If not, here is my question: I installed Eventghost with the lirc-plugin. However, it fails to install the plugin with the error-message

Code: Select all
Can't read __init__.py for plugin "Lirc"


When I look in the package and compare it to the other plugins, I see that there is only 2 files,

__init__.py and
icon.png,

whereas in some of the other plugins we seem to have a *.py and a *.pyc-file

As I am no expert, this might be correct, but then: how do I get the plugin installed?

Regards,

Thomas
flankerrider
 
Posts: 1
Joined: Fri Apr 17, 2009 10:27 pm

Re: LIRC Client

Postby jinxdone » Sat Apr 18, 2009 4:28 pm

The latest version is included in the betas. http://www.eventghost.org/downloads/

It should work out of the box, no need to get files from this thread with the new versions. The .pyc file is compiled python code of the .py file, it is automatically generated when you start eg if it does not already exist.
User avatar
jinxdone
Plugin Developer
 
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: LIRC Client

Postby atri7202 » Sat May 02, 2009 11:32 pm

what version of winlirc does this support
and im using the latest version of winlirc on the sourcefourge page which would be 6.5
and im using eventghost version 3.6.1487

so heres the problem:
i can get eventghost to recieve and everything but not transmit back to the winlirc server it doesnt seem to be recieving it

any ideas???

and on a side note, is it possiable to use more than one remote with winlirc and if it is can you please tell me how {ex i want to be able to control my projector and stero system but they use diffrent remote codes}
atri7202
 
Posts: 14
Joined: Thu Mar 12, 2009 10:54 pm

Re: LIRC Client

Postby jinxdone » Sun May 03, 2009 11:55 am

atri7202 wrote:what version of winlirc does this support
and im using the latest version of winlirc on the sourcefourge page which would be 6.5
and im using eventghost version 3.6.1487

so heres the problem:
i can get eventghost to recieve and everything but not transmit back to the winlirc server it doesnt seem to be recieving it

any ideas???

and on a side note, is it possiable to use more than one remote with winlirc and if it is can you please tell me how {ex i want to be able to control my projector and stero system but they use diffrent remote codes}


The Lirc Client plugin should work with any version of Lirc and WinLirc. Also you seem to be using an old version of EG, you should consider using the latest beta from the downloads section

WinLirc uses a "transmit password", this is unique to winlirc and it simply renames the "SEND_ONCE" command to whatever the password is set to. By default the password is not set so the whole sending feature is disabled. You should create a new string "password" in HKEY_LOCAL_MACHINE\SOFTWARE\LIRC and set it's value to "SEND_ONCE" and then restart winlirc to make it work.

Yes you can use as many remotes with winlirc as you like. Simply copy & paste your winlirc remote .conf files together so that you have multiple "begin remote", "end remote" pairs in one file. Each remote should be defined between it's own begin remote and end remote tags. I think it should be possible to include other remote files with "include <file.ext>" but I'm not sure if that is working in winlirc.

-jinxdone
User avatar
jinxdone
Plugin Developer
 
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: LIRC Client

Postby atri7202 » Sun May 03, 2009 5:54 pm

thank you so much for helping me with that but I'm still having a problem with it i went into the registry and created a new string like you said and set its value to SEND_ONCE but it seems still not to be receiving......
shouldn't the winlirc icon in the lower right hand corner turn blue when it has received a command to transmit
atri7202
 
Posts: 14
Joined: Thu Mar 12, 2009 10:54 pm

Re: LIRC Client

Postby jinxdone » Sun May 03, 2009 6:21 pm

Yes, I think it should blink blue when you transmit when it is set up correctly (it does that on my setup). I don't think there should be anything problematic in setting it up though.

Did you restart winlirc after setting the password in the registry? It may needs a restart.
Is the Lirc Client plugin receiving the events OK when you attempted to transmit? If not then restart EG and make sure it's connected.

Do you see the selectable events corresponding to your winlirc remotes in the drop down boxes of the send event action? (like in the attached pic I posted earlier in this thread)

Also did you update EG to the latest version like I suggested?

-jinxdone
User avatar
jinxdone
Plugin Developer
 
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: LIRC Client

Postby atri7202 » Tue May 05, 2009 11:59 am

i restarted it and all and it still did not work until i downloaded the latest version of eventghost and got it to work on that and then went back to my previous version it started to work, but its kinda glitchy sometimes it wont see the winlirc send as a action when its supposed to be activated by an event
yes the list remotes works and i really dont have the option to change evenghost version right now unless there is the newer version of EG support the CM11A plugin so i'm kinda stuck in a rut.
atri7202
 
Posts: 14
Joined: Thu Mar 12, 2009 10:54 pm

Re: LIRC Client

Postby jinxdone » Tue May 05, 2009 1:39 pm

Did you grab the latest version of the CM11A plugin from this thread?
If there is a problem with it in the latest beta's please report about any new issues that break the compatibility to the author so he can update the plugin if neccessary.

-- back to the lirc plugin

If I understood you correctly the "Send event" action of the Lirc Plugin is working only part of the time? Is there anything in common when it seems to work and when it seems to fail?

Also in the send event could you try setting the repeat value to "1" (or more) and see if that helps?

-jinxdone
User avatar
jinxdone
Plugin Developer
 
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: LIRC Client

Postby atri7202 » Wed May 06, 2009 2:05 am

yea theres seems to be some compatibiltity issues with the CM11A plugin ill be sure to post about it in the other thread

and this morning i installed the 2d latest version of EG and it stopped everything from working so i just unistalled it and it just made it stop working again until i set the repeat value to one so i think that will work for now im satisfied so thanks for your help ill be sure to link a video when my setup is all said and done its going to be pretty cool

so thank you very much for your help and i hope this helps some others as well with theyre problems
atri7202
 
Posts: 14
Joined: Thu Mar 12, 2009 10:54 pm

Re: LIRC Client

Postby liquidx » Sat May 30, 2009 9:52 pm

Hi, I'm having a problem trying to use the LIRC Client with a LIRC (Not WinLIRC) server.

I'm running EventGhost 0.3.7.r1016 and LIRC Client plugin 0.7.1.

When I check on "List remotes from the LIRC server" this happens:

error: uncaptured python exception, closing channel <eg.PluginModule.Lirc.Lirc_Reader connected at 0x3cb79b8> (<type 'exceptions.IndexError'>:list index out of range [asyncore.pyc|read|74] [asyncore.pyc|handle_read_event|413] [C:\Program Files\EventGhost\plugins\Lirc\__init__.py|handle_read|256])
No remotes found! (bad lirc configuration?)
Disconnected from the LIRC server!
Disconnected from the LIRC server!


When I uncheck that list remotes option I get nothing at all, and no connection is being made to the LIRC server (not even attempted).

Any clues on what I should do? TIA

Edit: When I look in the C:\progra~1\EventGhost\plugins\Lirc\__init__.py the changelog shows the latest change being version 0.7.3 not 0.7.1 so I guess it's just not updated in the dialog window.
liquidx
 
Posts: 2
Joined: Sat May 30, 2009 9:48 pm

PreviousNext

Return to Plugin Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron