Skip to content

Habarama

AdrianFarmadin edited this page Nov 11, 2016 · 21 revisions

Habarama is a part of the Hogarama Project responsible for collecting data and controlling gadgets. It uses MQTT to interconnect the Raspberries and OpenHab to collect data from sensors.

Architecture

Build

docker build -t habarama Habarama/docker

NOTE: For Raspberry build please first modify Dockerfile.

Usage

The following command will run Habarama with default configuration on the host machine:

docker run -p 8080:8080 habarama

Visit localhost:8080 to see the result.

NOTE: This is not the preferred method to get Habarama up and running. To properly run the container, please specify the configuration.

docker run \
       -p 8080:8080 \
       -v configuration-dir:/OpenHab/configurations \
       -d \
       habarama

Manual Installation

Raspberry Installation (Step by Step):

country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="{SSID}"
        scan_ssid=1
        psk="{PASSWORD}"
        mode=0
        proto=WPA2
        key_mgmt=WPA-PSK
        pairwise=CCMP
        group=CCMP
        auth_alg=OPEN
        id_str="raspi"
        priority=1
}

Troubleshooting

libsigar-arm-linux.so for raspberry

wget http://sourceforge.net/projects/sigar/files/sigar/1.6/hyperic-sigar-1.6.4-src.tar.gz
tar -zxf hyperic-sigar-1.6.4-src.tar.gz
cd hyperic-sigar-1.6.4-src/bindings/java
ant

Path to libsigar-arm-linux.so file: sigar-bin/lib/libsigar-arm-linux.so. To test run: java -jar sigar-bin/lib/sigar.jar.