Index: src/puppetcode/environments/test/hieradata/common.yaml
===================================================================
--- src/puppetcode/environments/test/hieradata/common.yaml	(revision 00a88005332fa72990007fb7bb5d0f4a6936ac8e)
+++ src/puppetcode/environments/test/hieradata/common.yaml	(revision c84f87e939b19c143ee83ae35454d13b2c75ef54)
@@ -39,5 +39,5 @@
 gnuboat_hostapd::config::interface: 'wlan0'
 gnuboat_hostapd::config::country_code: 'de'
-gnuboat_canboat::actisense_primary: '/dev/ttyUSB0'
-gnuboat_canboat::monitor: true
-gnuboat_canboat::actisense_serial: 'Actisense_NGT-1_2C88A'
+gnuboat_canboat::service::actisense_primary: '/dev/ttyUSB0'
+gnuboat_canboat::service::monitor: true
+gnuboat_canboat::service::actisense_serial: 'Actisense_NGT-1_2C88A'
Index: c/puppetcode/environments/test/modules/gnuboat_canboat/files/n2kd_monitor.service
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_canboat/files/n2kd_monitor.service	(revision 00a88005332fa72990007fb7bb5d0f4a6936ac8e)
+++ 	(revision )
@@ -1,15 +1,0 @@
-[Unit]
-Description=n2kd Monitor service
-After=network.target
-
-[Service]
-Type=forking
-PrivateDevices=no
-SyslogLevel=err
-ExecStart=/usr/bin/n2kd_monitor
-ExecStop=
-KillSignal=SIGQUIT
-KillMode=mixed
-
-[Install]
-WantedBy=multi-user.target
Index: src/puppetcode/environments/test/modules/gnuboat_canboat/manifests/service.pp
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_canboat/manifests/service.pp	(revision 00a88005332fa72990007fb7bb5d0f4a6936ac8e)
+++ src/puppetcode/environments/test/modules/gnuboat_canboat/manifests/service.pp	(revision c84f87e939b19c143ee83ae35454d13b2c75ef54)
@@ -36,13 +36,4 @@
 	}
 
-	file{'/etc/systemd/system/n2kd_monitor.service':
-                ensure => present,
-                owner => 'root',
-                group => 'root',
-                mode => '0600',
-                notify => Service['n2kd_monitor'],
-		source => 'puppet:///modules/gnuboat_canboat/n2kd_monitor.service',
-        }
-
 	if $actisense_serial != '' {
 		file{'/etc/udev/rules.d/99-n2kd-actisense.rules':
Index: src/puppetcode/environments/test/modules/gnuboat_gnuboat/manifests/config.pp
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_gnuboat/manifests/config.pp	(revision 00a88005332fa72990007fb7bb5d0f4a6936ac8e)
+++ src/puppetcode/environments/test/modules/gnuboat_gnuboat/manifests/config.pp	(revision c84f87e939b19c143ee83ae35454d13b2c75ef54)
@@ -15,4 +15,5 @@
 			}
 		),
+		notify => Service['lighttpd'],
 	}
 }
Index: src/puppetcode/environments/test/modules/gnuboat_gnuboat/templates/lighttpd.conf.epp
===================================================================
--- src/puppetcode/environments/test/modules/gnuboat_gnuboat/templates/lighttpd.conf.epp	(revision 00a88005332fa72990007fb7bb5d0f4a6936ac8e)
+++ src/puppetcode/environments/test/modules/gnuboat_gnuboat/templates/lighttpd.conf.epp	(revision c84f87e939b19c143ee83ae35454d13b2c75ef54)
@@ -27,2 +27,4 @@
 include_shell "/usr/share/lighttpd/create-mime.assign.pl"
 include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
+
+url.redirect = ( "^/$" => "/webclient/" )
Index: src/webapp/webclient/javascript/main.js
===================================================================
--- src/webapp/webclient/javascript/main.js	(revision 00a88005332fa72990007fb7bb5d0f4a6936ac8e)
+++ src/webapp/webclient/javascript/main.js	(revision c84f87e939b19c143ee83ae35454d13b2c75ef54)
@@ -28,4 +28,8 @@
 
 function displayDataSet(data){
+	if(!Array.isArray(data)){
+		console.log("No data array returned!");
+		return;
+	}
 	if(!("lastvalid" in data)){
 			console.log("No last valid values given!");
@@ -119,5 +123,5 @@
 	displayDataGet();
 	setInterval(displayDataGet, 10000);
-	
+
 	$.getJSON("../webservice/tileserver.php?/map.json", mapSetup);
 	
Index: src/webapp/webservice/inc/Config.php
===================================================================
--- src/webapp/webservice/inc/Config.php	(revision 00a88005332fa72990007fb7bb5d0f4a6936ac8e)
+++ src/webapp/webservice/inc/Config.php	(revision c84f87e939b19c143ee83ae35454d13b2c75ef54)
@@ -1,5 +1,5 @@
 <?php
 /*
-    Copyright (C) 2016 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+    Copyright (C) 2016 - 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
 
     This program is free software: you can redistribute it and/or modify
@@ -35,7 +35,7 @@
 
 	public function databaseFile(){
-		return $this->dataDirectory() ."log-webservice.rrd";
+		return $this->dataDirectory() ."gnuboat.rrd";
 	}
-	
+
 	public function shutdownRequestFile(){
 		if(array_key_exists("shutdownfile", $this->_config))
@@ -43,5 +43,5 @@
 		return "/var/spool/gnuboat/shutdown.request";
 	}
-	
+
 	public function dataDirectory(){
 		if(array_key_exists("datadirectory", $this->_config))
@@ -49,5 +49,5 @@
 		return "/var/lib/gnuboat/";
 	}
-	
+
 	private static function addTrailingSlash($path){
 		$length = strlen($path);
@@ -57,5 +57,5 @@
 		return $path;
 	}
-	
+
 	private $_config;
 }
Index: src/webapp/webservice/index.php
===================================================================
--- src/webapp/webservice/index.php	(revision 00a88005332fa72990007fb7bb5d0f4a6936ac8e)
+++ src/webapp/webservice/index.php	(revision c84f87e939b19c143ee83ae35454d13b2c75ef54)
@@ -16,4 +16,6 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
+
+xdebug_start_trace();
 
 require_once(__DIR__ ."/inc/Config.php");
@@ -68,11 +70,14 @@
 	$lastTime = -1;
 	$keys = array_keys($data);
-	if(count($keys) < 0 ){
+	$keyTimeframes = $keys[0];
+	$itemCount = count($keys);
+	if($itemCount < 0 ){
 		error_log("No keys in fetched rrd data from ". $dbFile);
 		echo json_encode("");
 		exit;
 	}
+	$timeframesCount = count($data[$keyTimeframes]);
 	if($debug > 0){
-		echo "<p>Variables: ". count($keys) ."; Timeframes: ". count($data[$keys[0]]) ."</p>\n";
+		echo "<p>Variables: ". $itemCount ."; Timeframes: ". $timeframesCount ."</p>\n";
 	}
 	foreach($data[$keys[0]] as $timeframe => $value){
@@ -185,3 +190,5 @@
 }
 
+xdebug_stop_trace();
+
 ?>
Index: src/webapp/webservice/tileserver.php
===================================================================
--- src/webapp/webservice/tileserver.php	(revision 00a88005332fa72990007fb7bb5d0f4a6936ac8e)
+++ src/webapp/webservice/tileserver.php	(revision c84f87e939b19c143ee83ae35454d13b2c75ef54)
@@ -294,5 +294,5 @@
       $this->db = new PDO('sqlite:' . $tileset, '', '', array(PDO::ATTR_PERSISTENT => true));
     } catch (Exception $exc) {
-      echo $exc->getTraceAsString();
+      error_log($exc->getTraceAsString());
       die;
     }
@@ -300,5 +300,5 @@
     if (!isset($this->db)) {
       header('Content-type: text/plain');
-      echo 'Incorrect tileset name: ' . $tileset;
+      error_log('Incorrect tileset name: ' . $tileset);
       die;
     }
@@ -401,5 +401,5 @@
     } else {
       header('HTTP/1.1 404 Not Found');
-      echo 'Server: Unknown or not specified dataset "' . $tileset . '"';
+      error_log('Server: Unknown or not specified dataset "' . $tileset . '"');
       die;
     }
