Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Target Raspberry installation

Andreas Drollinger edited this page Jun 12, 2016 · 14 revisions

THC installation on a Raspberry

These are the instruction about the the THC installation on a Raspberry running with the Raspbian/Debian Wheezy operating system.

THC installation

Install Tcl

Run the following command to install Tcl without graphical extension (Tk)

 sudo apt-get install tcl

Optionally you can also install the graphical extension/toolkit Tk by running the following command

 sudo apt-get install tk

Install the RRDTool library for Tcl

Run the following command to install the RRDTool library for Tcl

 sudo apt-get install rrdtool-tcl

You can also install the standalone RRDTools. This provides tools to manipulate the RRD databases

 sudo apt-get install rrdtool

Install mail send support

For details see http://rpi.tnet.com/project/faqs/smtp. Run the following command

 sudo apt-get install ssmtp heirloom-mailx

Configure the SMTP settings inside /etc/ssmtp/ssmtp.conf

 sudo nano /etc/ssmtp/ssmtp.conf

Check with the command 'mail' that the mail settings are correct

 mail <MailDestinationAddress> ...

Install THC

Download a fresh THC package copy from GitHub, unzip and copy it into /opt/thc and make the main THC program file executable :

 wget -q -O thc-master.zip https://github.com/Drolla/thc/archive/master.zip
 sudo unzip -d /opt thc-master.zip
 sudo mv /opt/thc-master /opt/thc
 sudo chmod 775 /opt/thc/bin/thc.tcl

Edit the configuration file config.tcl in the THC home directory. See Configuring THC.

 nano /opt/thc/config.tcl

Create the log directory if necessary (default log directory is /var/thc).

 sudo mkdir /var/thc

Setup THC as a service

Copy the THC service start/stop script from the Razberry target into /etc/init.d, make it executable, and register it:

 cd /etc/init.d
 sudo cp /opt/thc/targets/Raspberry/thc.sh .
 sudo chmod 775 ./thc.sh
 sudo update-rc.d thc.sh defaults 98 02

zWay/Razberry installation

To download the latest Z-Way version for your RaZberry, execute the following line:

 wget -q -O - razberry.z-wave.me/install | sudo bash

Avoid using z-Way version 1.7; performance issues have been observed with this version. THC has been successfully tested with z-Way v1.5.0, 1.5.1, 2.0.1, 2.1.1, 2.2.0.

Others

Configure static IP address

Dhcpcd based configuration (Raspbian Wheezy 2015-05-05 and further, Raspbian Jessie 2015-09-24 and further). See http://raspberrypi.stackexchange.com/questions/37920/how-do-i-set-up-networking-wifi-static-ip Add to the end of the file /etc/dhcpcd.conf the following lines

 interface eth0
 static ip_address=<IpAddress>/24                (f.e: 192.168.1.21)
 static routers=<RouterAddress>                  (f.e: 192.168.1.1)
 static domain_name_servers=<DnsServerAddress>   (f.e: 192.168.1.1)

Disable TV output (HDMI)

Execute the following command

 sudo /opt/vc/bin/tvservice -o

Clone this wiki locally