Index: src/webservice/htdocs/SiWeather/Webservice/WebserviceApi.php
===================================================================
--- src/webservice/htdocs/SiWeather/Webservice/WebserviceApi.php	(revision 7271978802fa864be967315bc81a473539c6f02e)
+++ src/webservice/htdocs/SiWeather/Webservice/WebserviceApi.php	(revision 8a5cdba84a98b5567b85196773900832b6106e26)
@@ -80,10 +80,11 @@
 
 	/**
-	* @brief Registers a new weather station
-	*
-	* @note Call this function with a big timeout > 2seconds, because we use another webservice
-	*       to fetch location data. This fetch runs already 2seconds.
-		* @note Requires php-pecl-uuid
-	*/
+	  * @brief Registers a new weather station
+	  *
+	  * @note Call this function with a big timeout > 2seconds, because we use another webservice
+	  *       to fetch location data. This fetch runs already max. 2 seconds.
+	  * @note Requires php-pecl-uuid
+	  * @note Requires php-pecl-rrd
+	  */
 	public static function stationsRegister(){
 		$geoLocationRadius = 5;
@@ -97,4 +98,5 @@
 
 			if(!function_exists("uuid_create")){
+				error_log("pecl uuid extension not installed!");
 				echo json_encode
 				(
@@ -102,4 +104,16 @@
 						"result" => "missinguuidcreate",
 						"message" => "The function uuid_create() from pecl package http://pecl.php.net/package/uuid is not installed, but needed!",
+					]
+				);
+				return;
+			}
+
+			if(!function_exists("rrd_create") || !function_exists("rrd_update")){
+				error_log("pecl rrd extension not installed!");
+				echo json_encode
+				(
+					[
+						"result" => "missingrrd",
+						"message" => "The function rrd_create() or rrd_update() from pecl package http://pecl.php.net/package/rrd is not installed, but needed!",
 					]
 				);
@@ -305,4 +319,46 @@
 			}
 
+			// creating rrd file
+			$webserviceConfig = new WebserviceConfig();
+			$rrdFileName = $webserviceConfig->dataDirectory() . $uuid .".rrd"; 
+			$rrdCreator = new \RRDCreator($rrdFileName, "now", 900);
+			$rrdCreator->addDataSource("Temp:GAUGE:1320:-100:100");
+			$rrdCreator->addDataSource("Humidity:GAUGE:1320:0:100");
+			$rrdCreator->addDataSource("Pressure:GAUGE:1320:800:1200");
+			$rrdCreator->addDataSource("WindSpeed:GAUGE:1320:0:999");
+			$rrdCreator->addDataSource("Winddirection:GAUGE:1320:1:360");
+			$rrdCreator->addDataSource("Rainfall:GAUGE:1320:0:999");
+			$rrdCreator->addArchive("AVERAGE:0.5:1:96");
+			$rrdCreator->addArchive("AVERAGE:0.5:4:96");
+			$rrdCreator->addArchive("AVERAGE:0.5:8:360");
+			$rrdCreator->addArchive("AVERAGE:0.5:16:2190");
+			$rrdCreator->addArchive("AVERAGE:0.5:24:146000");
+			$rrdCreator->addArchive("AVERAGE:0.5:48:146000");
+			$rrdCreator->addArchive("AVERAGE:0.5:96:146000");
+			$rrdCreator->addArchive("MIN:0.5:4:96");
+			$rrdCreator->addArchive("MIN:0.5:8:360");
+			$rrdCreator->addArchive("MIN:0.5:16:2190");
+			$rrdCreator->addArchive("MIN:0.5:24:146000");
+			$rrdCreator->addArchive("MIN:0.5:48:146000");
+			$rrdCreator->addArchive("MIN:0.5:96:146000");
+			$rrdCreator->addArchive("MAX:0.5:4:96");
+			$rrdCreator->addArchive("MAX:0.5:8:360");
+			$rrdCreator->addArchive("MAX:0.5:16:2190");
+			$rrdCreator->addArchive("MAX:0.5:24:146000");
+			$rrdCreator->addArchive("MAX:0.5:48:146000");
+			$rrdCreator->addArchive("MAX:0.5:96:146000");
+			if(!$rrdCreator->save()){
+				$db->query("ROLLBACK");
+				$errorMessage = rrd_error();
+				echo json_encode
+				(
+					[
+						"result" => "failed",
+						"message" => "Could not create rrd files for this station: ". $errorMessage,
+					]
+				);
+				return;
+			}
+
 			// finish transaction
 			$db->exec("COMMIT");
