RunOnRaspberryPi
(thanks to Fabio a.k.a. Tinwor)
This shows how to properly setup your enviroment and make JEMMA run on Raspberry PI. This tutorial has been tested with Flexkey and Flexplug by FlexGrid, Raspbian and Java8 (Development environment: Ubuntu 14.04 LTS).
##Setting up Java8
###Get Java8 Visit this page, click to Accept License Agreement and download jdk-8-linux-arm-vfp-hflt.tar.gz for Linux ARM v6/v7 Hard Float ABI.
###Install Java8
Log-in Raspberry Pi, run the command for extracting jdk-8u6-linux-arm-vfp-hflt.tar.gz to /opt directory
sudo tar zxvf jdk-8u6-linux-arm-vfp-hflt.tar.gz -C /opt
Set default java and javac to the new installed jdk8.
sudo update-alternatives –-install /usr/bin/javac javac /opt/jdk1.8.0_06/bin/javac 1
sudo update-alternatives –-install /usr/bin/java java /opt/jdk1.8.0_06/bin/java 1
sudo update-alternatives –-config javac
sudo update-alternatives –-config java
After all, verify with the commands with -version option.
java -version
javac -version
##Jemma execution
###Install FlexGrid device
Plug into Raspberry Pi the FlexGrid device. For some weird reason, the Raspberry will automatically reboot(you can solve this issue using an hub usb, connect it in a USB raspberry port and then plug into the hub the flexgrid). You are now ready to install Jemma.
###Get Jemma
Download Jemma Binary distribution for Raspberry Pi from here, unpack it and upload it on the Raspberry via ssh/scp e.g. into /opt/jemma
##Running Jemma
Before running Jemma execute this command to avoid Core dump error
ulimit -c unlimited
Now you can run JEMMA by executing start.sh.
If you get "permission denied" set the privileges to start.sh using this command sudo chmod 777 start.sh
and then try again.
Now open your browser and visit the localhost of Raspberry Pi at this directory system/console/ah on port 8080(eg 192.168.0.5:8080/system/console/ah). You can login with these credentials:
user: admin
password:admin
NOTE: you can edit both port and credentials of felix web console by editing the file configuration/config.ini in the JEMMA distribution
On this felix webconsole tab will let you interact with ZigBee plugs and appliances. This GUI will also let you interact with the ZigBee network to install appliances and associate plugs.
After installation of device in Web Console AH, configure device with the proper details and hit update.