User Tools

Site Tools


config

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
config [2015/04/16 06:54]
wo_rasp send-repeats
config [2015/11/27 21:09] (current)
Line 7: Line 7:
 The pilight configuration has to be put in an external file called config.json. It is located under /​etc/​pilight/​config.json The pilight configuration has to be put in an external file called config.json. It is located under /​etc/​pilight/​config.json
  
-For any questions regarding JSON, http://​en.wikipedia.org/​wiki/​JSONWikipedia ​provides a brief introduction into JSON. In particular the section "Data types, Syntax and Examples"​ is helpful to understand where to use square and curly brackets, commas, double quotes and the colon.+For any questions regarding JSON, [[http://​en.wikipedia.org/​wiki/​JSON|Wikipedia]] ​provides a brief introduction into JSON. In particular the section "Data types, Syntax and Examples"​ is helpful to understand where to use square and curly brackets, commas, double quotes and the colon.
  
 ===== Basic Syntax ===== ===== Basic Syntax =====
Line 351: Line 351:
 <​code>​ <​code>​
 { {
-    ​"​none":​ { }+  ​"​none":​ { }
 } }
 </​code>​ </​code>​
Line 357: Line 357:
 In case the computer that the pilight-daemon is running on does not have GPIO capabilities,​ choose this option. In case the computer that the pilight-daemon is running on does not have GPIO capabilities,​ choose this option.
  
-==== 433.92Mhz ====+==== 433.92 MHz ====
 === lirc_rpi Kernel Module === === lirc_rpi Kernel Module ===
  
Line 363: Line 363:
 { {
     "​433lirc":​ {     "​433lirc":​ {
-        ​"​socket":​ "/​dev/​lirc0"​+      ​"​socket":​ "/​dev/​lirc0"​
     }     }
 } }
Line 370: Line 370:
 === Direct GPIO Access === === Direct GPIO Access ===
  
 +<​code>​
 { {
     "​433gpio":​ {     "​433gpio":​ {
Line 376: Line 377:
     }     }
 } }
 +</​code>​
  
 For pin numbering, please refer to the specification of the platform used on http://​www.wiringx.org. To disable either sending or receiving with 433gpio, just set the appropriate pin to -1. For pin numbering, please refer to the specification of the platform used on http://​www.wiringx.org. To disable either sending or receiving with 433gpio, just set the appropriate pin to -1.
 +
 +=== Arduino USB-Nano ===
 +
 +<​code>​
 +{
 +    "​433nano":​ {
 +        "​comport":​ "/​dev/​ttyUSB0"​
 +    }
 +}
 +</​code>​
 +
 +You can not configure the ports on the [[arduino]],​ the receiver is connected to pin D2 and the transmitter is connected to pin D5 of the nano.
 +
 +the only port you can configure currently is the USB port the Nano is connected to.
 +
 +<​code>​
 +{
 +    "​433nano":​ {
 +        "​comport":​ "​COM5"​
 +    }
 +}
 +</​code>​
 +
 +On Windows machines use the windows syntax for the com port.
 +
  
 ===== Registry ===== ===== Registry =====
 Besides all the fixed configuration objects, pilight also allows developers to use the integrated registry. This registry allows developers to store information and to retrieve them later on. pilight itself will for example store its current version in the registry and the pilight webgui will store additional settings in there as well. You are therefore advised to leave the registry untouched so all additional information created by the different GUIs isn't lost. Besides all the fixed configuration objects, pilight also allows developers to use the integrated registry. This registry allows developers to store information and to retrieve them later on. pilight itself will for example store its current version in the registry and the pilight webgui will store additional settings in there as well. You are therefore advised to leave the registry untouched so all additional information created by the different GUIs isn't lost.
  
config.1429167262.txt.gz ยท Last modified: 2015/11/27 21:08 (external edit)