-
Notifications
You must be signed in to change notification settings - Fork 0
Install the SensorSamplor on Raspberry Pi
To download and install the SensorSamplor on you RaspberryPi, follow these steps:
Connect yourself to your Pi via secure shell:
$ ssh pi@myRaspberryPi
Clone the git repository into your home directory:
$ cd
$ git clone https://github.com/nwaldispuehl/sensor-samplor.git
$ cd sensor-samplor
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
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/
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.
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.