Jump to content
Flirc Forums
sIRwa2

Flirc to execute a bash script (or python) outside xbmc

Recommended Posts

Hi, is it possible to trigger a script of some sort directly from Flirc without the use of some xbmc keymap.xml edditing?

 

i like to execute something without xbmc "waking up" i run xbmcbuntu. How is Flirc "connected" to the system?  does it act like a keyboard? i already asked in Ubuntu forums, not a real direct answer. maybe if i understand how flirc "talks" to the system, i can look for a simple program that might do the job.

Share this post


Link to post
Share on other sites

A yes, thats what i figured, then my problem is, besides only having novice knowlege of linux, that in order to "interpet" and reroute the keystrokes, you need somthing like gnome or kde. something that is running, but that is not the case on xbmcbuntu, so i thought maybe somebody here has a idea where to look. i guess im better of at the xbmc forum for linux.

 

tnx.

Share this post


Link to post
Share on other sites

Hi, is it possible to trigger a script of some sort directly from Flirc without the use of some xbmc keymap.xml edditing?

 

i like to execute something without xbmc "waking up" i run xbmcbuntu. How is Flirc "connected" to the system?  does it act like a keyboard? i already asked in Ubuntu forums, not a real direct answer. maybe if i understand how flirc "talks" to the system, i can look for a simple program that might do the job.

 

I think you are way off...

Xbmcbuntu has striped down, and a bit modified ubuntu underneath XBMC, you can log to terminal and I think there is a desktop environment.

Yes keyboard is "hardcoded" to xbmc, but key-presses should go through to system it self  - it is logical  :) XBMC only uses ones

it can understand (by defoult or ones configured in keyboard.xml) "Keymap.xml" is for XBMC only it has no influence to OS (windowws, linux or any other) 

 

Here is link how to start script using keyboard shortcut 

 

But I am not sure waht you want to do?  

 

You can not run script without waking xbmc, if xbmc is a sleep so is the system. Could you provide more info pls.

 

What kind of script do you want to run?

 

thx

Share this post


Link to post
Share on other sites

sry for the late reply,

 

i have 2 scripts running triggered by the callback add-on for xbmc, on screensaver on, a file is created and a 30 minut timer starts. if the file is still in place after 30 minuts, my amplifier get a IR command to shutdown. on screensaver off, the script removes the file. the 1st script then opun not finding it, does nothing, telling me enjoy my buissines.

 

The reason i like to execute a command outside xbmc is because if i decide to play some vinyl after watching a serie, the timer will kill the amp. and removing the little file with an 3th script will let me enjoy my music without disruption.

 

its not a big problem, maybe i have to rethink the whole process anyway.

 

tnx for the link burke, it looks promissing, only thing thats not working is getting the escape code part ( im ssh-ing) but i read something on this forum about that, so ill digg some later.  cheers!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...