User Tools

Site Tools


program

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
program [2014/03/24 20:19]
curlymo created
program [2015/11/27 21:09] (current)
Line 6: Line 6:
 |Config|{{http://​wiki.pilight.org/​lib/​images/​supported.gif}}| |Config|{{http://​wiki.pilight.org/​lib/​images/​supported.gif}}|
  
-Supported Brands+==== Supported Brands ​====
  
 //None// //None//
  
-Sender Arguments+==== Sender Arguments ​====
 <​code>​ <​code>​
 -t --running ​            start the program -t --running ​            start the program
Line 17: Line 17:
 </​code> ​ </​code> ​
  
-Config+==== Config ​====
 <​code>​ <​code>​
  "​programs":​ {  "​programs":​ {
Line 37: Line 37:
 </​code>​ </​code>​
  
-Optional Settings+==== Optional Settings ​====
  
 ^Setting^Default^Format^Description^ ^Setting^Default^Format^Description^
Line 43: Line 43:
 |poll-interval|1| >= 1|How ofter do we want to check the program state| |poll-interval|1| >= 1|How ofter do we want to check the program state|
  
-Comments+==== Comments ​====
  
 The program protocol takes two important arguments The program protocol takes two important arguments
Line 64: Line 64:
 </​code>​ </​code>​
 In thise case, i want to control XBMC. The xbian entry with the PID 11642 is what i want to use. In thise case, i want to control XBMC. The xbian entry with the PID 11642 is what i want to use.
-The first word is the program name. In this case ''/​usr/​local/​lib/​xbmc/​xbmc.bin''​. Everything that comes after are the arguments ''​--standalone -fs --lircdev /​run/​lirc/​lircd''​. pilight will now check for a program that matches these exact parameters.+The first word is the program name. In this case ''/​usr/​local/​lib/​xbmc/​xbmc.bin''​. Everything that comes after are the arguments ''​--standalone -fs --lircdev /​run/​lirc/​lircd''​. pilight will now check for a program that matches these exact parameters. ​So the protocol looks for processes matching those lines and when a process is found, it updates the pid value accordingly. (The pid is just informative.)
  
 If you omit the arguments value, all matching programs will be processes with or without matching arguments. If there are more than once matches, pilight will use the first. If you omit the arguments value, all matching programs will be processes with or without matching arguments. If there are more than once matches, pilight will use the first.
program.1395692355.txt.gz ยท Last modified: 2015/11/27 21:08 (external edit)