Poc-1 Installation & Configuration

Local Sensor Node



1. User creation

- Create a Linux user named 'clensensors'
- Assign the user to the 'dialout' group

$ sudo usermod -a dialout clensensors

2. Bitnami Dreamfactory installation

- Create as 'root' the directory /opt/dreamfactory and assign it to the 'clensensors' user as owner
This directory will be indicated as $DREAMFACTORY_HOME

- bitnami-dreamfactory-2.0.2-0 version shall be used.

- The automatic installer is used for the installation, run by the clensensors user

$ ./bitnami-dreamfactory-2.0.2-0-linux-x64-installer.run

The installation will ask for a password for the root user of the installation. The password can be freely chosen and must be noted down for future use

Dreamfactory documentation is available on the website https://wiki.bitnami.com

3. Python libraries

- If not available, install the Python module installer 'pip' in the system:

$ sudo apt-get install pip

- The libraries pyserial and unirest are required:

$ sudo pip install pyserial
$ sudo pip install unirest

4. Freeboard

Freeboard can be cloned from its git repository to any target directory


- As the 'clensensors' user, create a directory 'freeboard' under the apache directory of Dreamfactory

$ mkdir /opt/dreamfactory/apache2/freeboard

and copy all the content of the cloned repository under the created directory


1. Dreamfactory configuration

- As the 'clensensors' user, run the DreamFactory management GUI:

$ $DREAMFACTORY_HOME/manager-linux-x64.run &

- Configure DreamFactory http port to 8081

- Start the DreamFactory services:

$ $DREAMFACTORY_HOME/ctlscript.sh start

- Browse to the location 'http://localhost:8081'

- Login as the 'root' user

- Create the 'oi.srosnesnelc|srosneSnElC#oi.srosnesnelc|srosneSnElC' application user

2. MySQL configuration and schema creation
(to be written)

3. DreamFactory service creation
(to be written)

4. XBee modems configuration

The XBee modems configuration must be repeated for two modems: the server node side and the sensor node side.

- Connect the XBee to the USB of any PC using a USB breakout. A serial port /dev/ttyUSB0 should be created if no other USB serial are in operation.

- The Digi utility XCTU must be installed on the PC

- The server node side modem must be configured with the following settings:

PAN ID: 0x2016
MY = 1
DH = 0x0

- The sensor node side modem must be configured with the following settings:

PAN ID: 0x2016
MY = 2
DH = 0x0
DL = 0x1

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License