Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
livebox:xap_adapter [2011/12/17 19:32] – created brett | livebox:xap_adapter [2012/03/20 12:13] (current) – [1-Wire] minerva9 | ||
---|---|---|---|
Line 5: | Line 5: | ||
< | < | ||
# xap-livebox --help | # xap-livebox --help | ||
- | + | Livebox Connector for xAP | |
- | Livebox Connector for xAP v12 | + | Copyright (C) DBzoo, 2008-2010 |
- | Copyright (C) DBzoo, 2008,2009 | + | |
xap-livebox: | xap-livebox: | ||
- | -n, --instance NAME Default Controller | ||
-i, --interface IF | -i, --interface IF | ||
- | -p, --port NUM | ||
-s, --serial DEV | -s, --serial DEV | ||
- | -d, --debug | + | |
+ | | ||
-h, --help | -h, --help | ||
# | # | ||
Line 24: | Line 22: | ||
There are several sections in the /// | There are several sections in the /// | ||
- | The webserver interacts with this daemon by using an internal (127.0.0.1) socket connection on port 79. This allows each component to be restarted independently of the other. | + | The webserver interacts with this daemon by using an internal (127.0.0.1) socket connection on port 79. This allows each component to be restarted independently of the other. |
- | ===== 1-Wire ===== | + | |
- | <code ini> | + | ===== Inputs and Relays ===== |
- | [1-Wire] | + | |
- | # Up to 15x 1-wire devices may be supported increasing the number | + | |
- | # beyond what you have attached simply presents more xAP endpoints than | + | |
- | # you have devices for. | + | |
- | devices=1 | + | |
- | sensor1.label=Office | + | |
- | </ | + | |
- | Each sensor can be given a label using the nomenclature " | + | {{:livebox:config-relays-inputs.jpg|}} |
- | + | ||
- | ===== RF ===== | + | |
- | + | ||
- | The RF sections contains the pulse codes that are loaded into the EEPROM of the MEGA8 chip to control the RF transmitter. As the HAH boots up, these codes are sent to the MEGA8. However, the EEPROM is only written to if the code presented is different from the one already stored. This reduces the ' | + | |
- | + | ||
- | Details regarding the format of the hex strings can be found [[http:// | + | |
- | + | ||
- | Note that the codes shown below are for the Lidl Rf Mains sockets. If you plan to use BBSB sockets, you will need to use our little Rf code generator program to prepare the correct strings for the .ini file (and you will also need the Mega8 microcontroller that is programmed for use with BBSB). \\ | + | |
- | <code ini> | + | |
- | [rf] | + | |
- | # Up to 12 RF channels may be defined. | + | |
- | devices=4 | + | |
- | rf1.off=4D2AAAAAAA80 | + | |
- | rf1.on=4D2AAAAB2B00 | + | |
- | rf2.off=4D2AAACAAC80 | + | |
- | rf2.on=4D2AAACB2D00 | + | |
- | rf3.off=4D2AAAB2AB00 | + | |
- | rf3.on=4D2AAAB32A80 | + | |
- | rf4.off=4D2AAAD2AD00 | + | |
- | rf4.on=4D2AAAD32C80 | + | |
- | rf1.label=RF 1 | + | |
- | rf2.label=RF 2 | + | |
- | rf3.label=RF 3 | + | |
- | rf4.label=RF 4 | + | |
- | </ | + | |
- | + | ||
- | More recently, we've introduced a ' | + | |
- | + | ||
- | ===== Inputs and Relays ===== | + | |
These sections allow us to configure user friendly names that will appear on the webserver interface. | These sections allow us to configure user friendly names that will appear on the webserver interface. | ||
Line 84: | Line 45: | ||
The inputs are exposed as four pairs of terminal blocks. Simply short the adjacent terminals together to turn the input on. Looking at the connectors, with the LCD connector on the right, each pair is one input. Numbered (left to right) 2,1,4,3. If your environment is ' | The inputs are exposed as four pairs of terminal blocks. Simply short the adjacent terminals together to turn the input on. Looking at the connectors, with the LCD connector on the right, each pair is one input. Numbered (left to right) 2,1,4,3. If your environment is ' | ||
+ | |||
+ | ===== 1-Wire ===== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | <code ini> | ||
+ | # Up to 15x 1-wire devices may be supported increasing the number | ||
+ | # beyond what you have attached simply presents more xAP endpoints than | ||
+ | # you have devices for. | ||
+ | [1wire] | ||
+ | sensor1.label=livebox-temp | ||
+ | devices=1 | ||
+ | timeout=0 | ||
+ | temp_unit=C | ||
+ | sensor1.romid=282E2DCB010000A928 | ||
+ | </ | ||
+ | |||
+ | Each sensor can be given a label using the nomenclature " | ||
+ | |||
+ | 1wire devices can be setup with a calibration (offset) and hysteresis. | ||