User Tools

Site Tools


start

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
start [2018/08/06 19:25]
Niek
start [2018/10/20 13:33] (current)
felfert Add sendraw action
Line 1: Line 1:
 ===== 3rd Party Modules ===== ===== 3rd Party Modules =====
  
-Due to it'​s ​modular structure, pilight can be easily extended by providing additional modules. This page lists the modules that are available together with installation information.+Due to its modular structure, pilight can be easily extended by providing additional modules. This page lists the modules that are available together with installation information.
  
-Please note that the modules below have been created by pilight users. They are not part of the pilight package and support for these modules has to be provided by their creators. So do not report any issues with these modules as pilight ​bugs+Please note that the modules below have been created by pilight users. They are not part of the pilight package and support for these modules has to be provided by their creators. ​**So do not report any issues with these modules as pilight ​issues!** 
 Only post your questions, comments and issues in the Addons forum: [[https://​forum.pilight.org/​forumdisplay.php?​fid=24 Only post your questions, comments and issues in the Addons forum: [[https://​forum.pilight.org/​forumdisplay.php?​fid=24
 ]] ]]
Line 17: Line 17:
 None None
  
-==== Event Actions ​====+==== Events ​====
  
-|< 100% 100px - 125px 50px >| +=== Instructions for the installation of lua eventing modules ===
-^Name^Description^pilight version^Source^ +
-|http|Perform GET and POST actions|v8.1.1|[[action_http|http]]|+
  
-==== Event Functions ====+All eventing modules are written in the lua language and don't need compilation. The downloaded lua code can simply be copied to pilights module folders and then can be used right away in your rules. The module folders are: 
 +  * for actions: /​usr/​local/​lib/​pilight/​actions/​ 
 +  * for operators /​usr/​local/​lib/​pilight/​operators/​ 
 +  * for functions: /​usr/​local/​lib/​pilight/​functions/ ​  
 + 
 +To install one of the eventing modules, follow these steps: 
 + 
 +  - Click the link in the "​Source"​ column for the module you wish to install. The code will then be listed. 
 +  - Download the module by clicking the tab at the top of the code listing ​  
 +  - Move or copy the lua file to the appropriate folder as indicated above. 
 + 
 +=== Event Actions === 
 + 
 +|< 100% 100px - 125px 50px 50px>| 
 +^Name^Description^pilight version^Information^Source^ 
 +|http|Perform GET and POST actions|v8.1.1|[[docu_http|documentation]]|[[action_http|http]]| 
 +|write|Write text to a file|v8.1.1|[[docu_write|documentation]]|[[action_write|write]]| 
 +|read|Read all text from a file into a label|v8.1.1|[[docu_read|documentation]]|[[action_read|read]]| 
 +|set|Set, update or delete a variable|v8.1.1|[[docu_set|documentation]]|[[action_set|set]]| 
 +|sendraw|Send raw codes|v8.1.2|[[docu_sendraw|documentation]]|[[action_sendraw|sendraw]]| 
 + 
 +=== Event Functions === 
 + 
 +|< 100% 100px - 125px 50px 50px>| 
 +^Name^Description^pilight version^Information^Source^ 
 +|GETVAR|Retrieve value from variable|v8.1.1|[[docu_getvar|documentation]]|[[function_gevar|GETVAR]]| 
 +|FIND|Returns the number of occurrences of one string in another string|v8.1.1|[[docu_find|documentation]]|[[function_find|FIND]]| 
 +|FORMAT|Format a number into a string|v8.1.1|[[docu_format|documentation]]|[[function_format|FORMAT]]| 
 +|EXTRACT|Extract value from http query string|v8.1.1|[[docu_extract|documentation]]|[[function_extract|EXTRACT]]| 
 +|ROUND|Rounds a number to a given number of decimals|v8.1.1|[[docu_round|documentation]]|[[function_round|ROUND]]|
  
-None 
  
-==== Event Operators ​====+=== Event Operators ===
  
 None None
start.1533576311.txt.gz · Last modified: 2018/08/06 19:25 by Niek