3. Installation
3.1. Installing from Repository
If you are using Debian, Raspbian, or Ubuntu, you can install the Nanoleaf module from the repository. Please run the following command as root:
apt-get install homegear-nanoleaf
3.2. Manually Install Debian/Raspbian/Ubuntu Package
Download the Nanoleaf package (homegear-nanoleaf) from the Homegear nightly download page or the APT repository. Then install the package as root using dpkg:
dpkg -i homegear-nanoleaf_*.deb
apt-get -f install
The command apt-get -f install installs any missing dependencies.
3.3. Compiling from Source
3.3.1. Compiling Current GitHub Source Using Docker Image
See the Homegear documentation.
3.3.2. Manually Compiling Homegear-Nanoleaf
3.3.2.1. Prerequisites
First install all dependencies:
Homegear
Libgpg-error devel
GnuTLS devel
Libgcrypt devel
3.3.2.1.1. Debian/Raspbian/Ubuntu
Run the following on Debian, Raspbian, or Ubuntu:
apt-get install libgpg-error-dev libgnutls28-dev (libgcrypt11-dev or libgcrypt20-dev)
3.3.2.1.2. openSUSE Leap
On openSUSE Leap, run the following:
zypper install libtool libgnutls-devel libgpg-error-devel libgcrypt-devel
3.3.2.2. Compiling
Next, you need to download Homegear-Nanoleaf and extract it:
wget https://github.com/Homegear/Homegear-Nanoleaf/archive/master.zip
unzip master.zip
rm master.zip
Change into the extracted directory and run makeRelease.sh or makeDebug.sh. You can pass the number of build threads to the script to speed up the compilation process:
cd Homegear-Nanoleaf-master
./makeRelease.sh 4
3.3.2.3. Configuration
3.3.2.3.1. Installing Configuration Files
Install the default configuration file:
cp -R misc/Config\ Directory/nanoleaf.conf /etc/homegear/families
Install the device description files:
mkdir /etc/homegear/devices/22
cp -R misc/Device\ Description\ Files/* /etc/homegear/devices/22
3.3.2.4. First Start
Now you need to restart Homegear. On Debian, Raspbian, or Ubuntu, you do this with:
service homegear restart
And watch the log file with the following command to make sure that everything is working properly:
tail -n 1000 -f /var/log/homegear/homegear.log