Skip to content

Install the SensorSamplor on Raspberry Pi

Nico Waldispühl edited this page Apr 26, 2015 · 1 revision

To download and install the SensorSamplor on you RaspberryPi, follow these steps:

Login in to Raspberry Pi

Connect yourself to your Pi via secure shell:

$ ssh pi@myRaspberryPi

Download source code

Clone the git repository into your home directory:

$ cd 
$ git clone https://github.com/nwaldispuehl/sensor-samplor.git
$ cd sensor-samplor

Build project

Then, after having changed into the project directory, build an installable version of the software:

$ ./gradlew installDist

After some minutes, the usable software is to be found in the directory:

sensorsamplor.app/build/install/sensorsamplor.app

Copy to nice place

We want the software to be placed in a nice place, namely the 'optionals' directory /opt:

$ sudo cp -r sensorsamplor.app/build/install/sensorsamplor.app /opt/

Configure SensorSamplor

The configuration files are now to be found in the following directory:

/opt/sensorsamplor.app/conf

Change into this directory to inspect them:

$ cd /opt/sensorsamplor.app/conf
$ ls -l

logback.xml  
quartz-scheduler.properties
sensor-samplor.properties

How to do configuration is described one the page Configure SensorSamplor.

Make it to be run on startup

We are placing the script in the rc.local file to have it run on startup. For this, we edit the respective file:

$ sudo vim /etc/rc.local

and add the following line above the exit statement:

...

/opt/sensorsamplor.app/bin/sensorsamplor.app &

exit 0

On next reboot the script is started automatically.