deactivate XBMC lirc controls at runtime with http api or event server ?
#1
Hello all.

I have a slight problem here.

I use VDR and XBMC running at the same time.

VDR is used with a eHD hdmi output on one side, and XBMC use motherboard hdmi output on the other side.

I use the same IR remote for booth ( Harmony remote with Imon/LCD module )

When I switch from VDR to XBMC, i have a irexec sending an SVDRP command to VDR for switching the remote control Off ( svdrpsend.pl REMO OFF ), while the Harmony switch the hdmi output on the TV to give me xbmc on screen.

Then i can control XBMC with my remote while not send remote keys to vdr at the same time.

My problem is on the other side,
What i need, is a way to enable/disable lirc ( or complete control i don't bother ) on XBMC side when I quit xbmc output to get vdr one.

I don't want to kill XBMC as i use it as upnp server. XBMC needs to stays up on the background.

Perhaps while using http api event ?
I've checked on the wiki and gave a little look on source side, but didn't find such function ( but perhaps I've missed it? ).

Would it be too much to ask for such functionality if it's not already implemented ?

That woul be muchly appreicated here . Rolleyes

Cheers.
Reply
#2
No way through httpapi or eventserver afaik, submit a feature request on trac for it.

But I have a vauge memory that it's possible to do via external player, but in your setup I guess using XBMC for it all is not an option? VDR is possible through XBMC just as a fyi.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#3
NVM scratch that.

There is a Builtin function:
"LIRC.Stop"
"LIRC.Start"

Here is a read about how to do it: http://forum.xbmc.org/showthread.php?tid=48817 but in that thread it's XBMC.Quit()
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#4
Thanks a lot. That's exactly what i was looking for.

Works really well.

edit: btw i use this method to call Lirc.stop instead of http ( grabbed from a friend, dunno where it came from. ) :

http://xmltv.free.fr/xbmc_lirc.cpp

Regards
Reply
#5
Looks like it used the eventclient approach, muuuch more secure IMHO.

Cheers,
Tobias
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#6
any function to start/stop lcdproc xbmc client too ?

like lcdproc.stop ?
Reply
#7
Yup. Exactly Smile
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#8
I've tryed many things blindly: LCDproc.Stop , lcdproc.Stop LCD.stop lcd.stop LCDPROC.stop but didn't find the exact function name i think.

Is there a page somewhere with all the built in fonction of xbmc ?

Thanks.

Ps: to answer to your first post, off course i've tryed xbmc streamdev implementation with alcoheca patches.

That looks really promising. For the moment it's still too unstable and there's still some tuner lock issues taht prevent to be used in production side. But works is really going on the good way as i's the best streamdev integration wth VTP protocol i've seen yet.
Reply
#9
little up.

Any update on this ? The lcdproc is making some interference with the lcdproc plugin of vdr when used simultaneously.



Thanks.
Reply
#10
Looks like it didn't had the same conventions. Sorry:

"lcd.suspend"
"lcd.resume"
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#11
that's doing the job well.. thanks for the tip
Reply
#12
Hi


Since few revisions it seems the lirc stop fonction using eventclient doesn't work anymore.

Each time i invoke LIRC.Stop, it starts it anyway:

Code:
INFO: LIRC Initialize: sucessfully started on: /dev/lircd
Reply
#13
You can test it with curl:

curl --get "http://localhost:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=LIRC.Stop"

It will always initialize LIRC instead of disabling it.
Reply

Logout Mark Read Team Forum Stats Members Help
deactivate XBMC lirc controls at runtime with http api or event server ?0