------------------------------------------------------------------------
A poll associated with this post was created, to vote and see the
results, please visit http://forums.slimdevices.com/showthread.php?t=79524
------------------------------------------------------------------------
Question: Are you interested in IR-over-IP?
    
- Yes, I'd like to have IRoIP.
- No, I don't care.
------------------------------------------------------------------------

virx71 wrote: 
> Hello Douglas,
> new install and same problems, but I remembered you wrote me how to
> solve them and here I am again reading this old thread.
> This time it was trickier as I had a lirc file that got corrupted while
> passing from windows to debian, but at the end all was solved!
> 
> I have a new question for you: since SqueezeIR is a only-controller
> plugin, is there any way I could tweak xml playeraction elements to
> trigger a script on the server?
> 
> Something like
> > 
Code:
--------------------
  >   > 
  >     <playerActions>
  >                     <playerAction order="1">somescript.sh 
someparam</playerAction>
  >     </playerActions>                                        
  > 
--------------------
> > 
> I'm afraid your reply will be "no" but since I feel quite ignorant in
> perl I'd better ask ;)
> 
> Thanks again for this last old and precious reply of yours,
> V
> 
> EDIT: Here what I've tried so far without success.
> 
> I have a php script on my server which I modified to trigger an sh
> script with a parameter. I have several working scripts which I can
> call via web browser.
> 
> In SqueezeIRApplet.lua in Main function I tried replacing line
> "Framework:pushAction(strPlayerAction)" with either
> "os.execute(strPlayerAction)" or "system(strPlayerAction)" as I wanted
> at least to be able to trigger a local script on the controller.
> Obviously this is a test, I would greatly prefer to have a
> strScriptAction or strServerScriptAction instead...
> 
> In SqueezeIR.xml I created several examples as indicated before. I've
> not tested scripts with full path so far (as /usr/bin dir is in $PATH
> variable).
> 
> In /usr/sbin of the controller I put a custom script that triggered
> via wget the http command that launches one of the scripts on the LMS
> The chainloading works correctly if called manually but I couldn't
> make it work yet via SqueezeIR.
> 
> Knowing that I might have chosen the most complex way to get closer to
> my idea, any hint/suggestion would be greatly appreciated.

Hi,

I had almost forgotten that this thread still existed! 

As far as I am aware, you are correct, the answer is "no", although I
think you might be on the right track with Framework:pushAction().  That
function sends command to SBS using its API to start/stop players etc. 
Maybe a plugin on the SBS server (such as this one?
http://forums.slimdevices.com/showthread.php?69121-Execute-Script) could
intercept those and call a script? If that works then you might just
need to specify some custom playerActions in your SqueezeIR xml and have
the SBS plugin watch out for them.  I'm not that familiar with *NIX so
not sure.

Running a script locally should work too (with a bit of a hack).
SqueezeIR uses os.execute() to call the c glue between lua and the ir
driver to do its stuff so it should work for other programs too (if
permissions allow).  Take a look at TimerCallback() to see it in use.
The only other thing I can think of (and am not too sure about it
either) is to use RequestHTTP() to invoke a url on the server to invoke
the script.



1xRadio, 2xReceiver, 2xController, 1xSB3, 2xSqueezeSlave, SBS 7.5.3
Inventor of SqueezeIR applet for the Controller
------------------------------------------------------------------------
indifference_engine's Profile: 
http://forums.slimdevices.com/member.php?userid=20698
View this thread: http://forums.slimdevices.com/showthread.php?t=79524

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to