Webapp for automated sensor reading using a Raspberry Pi. Datalogger captures and stores sensor data, presenting this data using either a graph or table view.
1. Install Java (`sudo apt-get install oracle-java7-jdk`)
2. Download and install Tomcat (`sudo apt-get install tomcat7`)
3. The Pi4J library will need root privileges in order to control the GPIO pins, so Tomcat must run under the user root and under the group root. On the Raspberry Pi verify your `/etc/default/tomcat7` configuration file. Find the `TOMCAT7_USER` and `TOMCAT7_GROUP` variables and make sure they are both set to root:
* `TOMCAT7_USER=root`
* `TOMCAT7_GROUP=root`
4. Restart Tomcat: `sudo service tomcat7 restart`
Deploy
Deploy Datalogger by either copying the datalogger.war file to the webapps folder of Tomcat (`/var/lib/tomcat7/webapps`) onto your Raspberry Pi or, if configured, use the Tomcat manager (`http://raspberrypi:8080/manager/`) to deploy the datalogger.war file.