Install Eibd/Linknx/knxweb
How to Install (configure and make) EIBD, Linknx and Knxweb on Linux Debian without paquage
In this page the command "sudo" is format have the right of root if your a not connect with the user "root"
in this document we install all on the same "computer"
we have to change "IPKNX" in for exemple "192.168.1.10" it's the IP adresse of the KNX/IP interface if you use one
EIBD
package need for install :
apt-get install gcc g++ make apt-get install liblog4cpp5-dev apt-get install libesmtp-dev apt-get install libmysqlclient-dev apt-get install liblua5.1-0-dev apt-get install dpkg apt-get install libcurl4-openssl-dev apt-get install build-essential file autoconf dh-make debhelper devscripts fakeroot gnupg
PTHSEM : [pthsem_homepage] "pthsem is a fork, with support for semaphores added. It can be installed parallel to a normal pth and provides a compatibilty layer to compile GNU pth programs with pthsem. The header file is called pthsem.h, the configuration programm pthsem-config and the autoconf macro AC_CHECK_PTHSEM. If references to one of these names are changed, pthsem can be used as an replacement of GNU pth. "
$ wget http://downloads.sourceforge.net/sourceforge/bcusdk/pthsem_2.0.8.tar.gz $ tar -xzvf pthsem_2.0.8.tar.gz $ cd pthsem-2.0.8/ $ ./configure $ make (sudo) $ make install $ export LD_LIBRARY_PATH=/usr/local/lib $ cd ..
EIBD is include into BCUSDK : [BCUSDK_homepage] [An_other_interessting_link]
$ wget http://downloads.sourceforge.net/sourceforge/bcusdk/bcusdk_0.0.5.tar.gz $ tar -xzf bcusdk_0.0.5.tar.gz $ cd bcusdk-0.0.5/ * For USB and IP Interface $ ./configure --enable-onlyeibd --enable-eibnetip --enable-eibnetiptunnel --enable-eibnetipserver --enable-usb --enable-ft12 $ make $ make install $ cd ..
start EIBD : exemple :
- with IP Interface ( with IP 192.168.1.10 )
$ eibd -d -D -S -T -i ipt:192.168.1.10:3671
- with USB Interface
usbport=$(findknxusb | /bin/sed -e '1 d' -e 's/device //' | /bin/cut -d':' -f1-2) eibd -d -D -S -T -i usb:$usbport
For testing :
- exemple : send "1" = "on" to the GA 1/1/1 with EIB Datapoint type is 1.001
if you send "0" it's "off"
$ groupswrite ip:127.0.0.1 1/1/1 1
- in "Debug Mode" we can run eibd like this (not in dameon) for more "verbose" informations
$ eibd -t65535 -D -S -T -i ipt:192.168.1.10:3671
Linknx
$ wget http://downloads.sourceforge.net/sourceforge/linknx/linknx-0.0.1.30.tar.gz $ tar -xzf linknx-0.0.1.30.tar.gz $ cd linknx-0.0.1.30/ $ ./configure --enable-smtp --with-log4cpp --with-lua --with-mysql=/usr/bin/mysql_config $ make $ sudo make install
Looking at the XML configuration file (example here)
Datapoint type use in linknx :
* 1.001: switching (on/off) (EIS1) * 3.007: dimming (control of dimmer using up/down/stop) (EIS2) * 3.008: blinds (control of blinds using close/open/stop) * 5.xxx: 8bit unsigned integer (from 0 to 255) (EIS6) * 5.001: scaling (from 0 to 100%) * 5.003: angle (from 0 to 360°) * 6.xxx: 8bit signed integer (EIS14) * 7.xxx: 16bit unsigned integer (EIS10) * 8.xxx: 16bit signed integer * 9.xxx: 16 bit floating point number (EIS5) * 10.001: time (EIS3) * 11.001: date (EIS4) * 12.xxx: 32bit unsigned integer (EIS11) * 13.xxx: 32bit signed integer * 14.xxx: 32 bit IEEE 754 floating point number * 16.000: string (max 14 ASCII char) (EIS15) * 20.102: heating mode (comfort/standby/night/frost)
For start linknx for exemple
$ linknx -d -w --config=/var/lib/linknx/linknx.xml
KnxWeb
We need a web serveur here we use apache2 (we can use lighthttpd if you want) and php5
apt-get install apache2 apt-get install php5
- KnxWeb "old version"
cd /var/www/ (change the path according to your configuration) wget -O knxweb.tar "http://linknx.cvs.sourceforge.net/viewvc/linknx/knxweb/knxweb/?view=tar" tar xvf knxweb.tar rm knxweb.tar
- KnxWeb2
Currently, there is no final release of this new version, you have to download the release from the sourceforge repository. It has only been tested on Firefox and is only available in english. You can simply go to http://linknx.cvs.sourceforge.net/viewvc/linknx/knxweb/knxweb2/ and download the tar file :
cd /var/www/ (change the path according to your configuration) wget -O knxweb2.tar "http://linknx.cvs.sourceforge.net/viewvc/linknx/knxweb/knxweb2/?view=tar" tar xvf knxweb2.tar rm knxweb2.tar
Once done, browse to http://x.x.x.x/knxweb2/ (where x.x.x.x is the IP address of your web server) and follow the instructions.