Index: src/webservice/htdocs/index.php
===================================================================
--- src/webservice/htdocs/index.php	(revision 1e376487e79f3268499595a602e4c704176c054c)
+++ src/webservice/htdocs/index.php	(revision d5d4498d66d08bda24d3986a3fb2cde1d85e2e51)
@@ -42,4 +42,28 @@
 }
 
+/**
+  * @brief Registers a new weather station
+  */
+function stationsRegister(){
+	try{
+		$app = \Slim\Slim::getInstance("siweather");
+		$body = $app->request->getBody();
+		$json = json_decode($body);
+
+		$location = new IpGeoLocator($app->request->getIp());
+		if($location->city() != $json["city"]){
+			return json_encode(["result" => "unprovenlocation", "message" => "You send "]);
+		}
+		
+		$app->response()->header("Content-Type", "application/json");
+		echo json_encode($json);
+	}
+	catch(Exception $exception){
+		error_log("Caught exception handling request stationsRegister: ". $exception->getMessage());
+		$app->response()->status(400);
+		$app->response()->header("X-Status-Reason", $exception->getMessage());
+	}
+}
+
 $app = new \Slim\Slim
 (
@@ -49,5 +73,5 @@
 	)
 );
-$app->setName("SiWeather Webservice");
+$app->setName("siweather");
 
 // Only invoked if mode is "production"
@@ -84,9 +108,5 @@
 
 $app->get("/stations", "stations");
-$app->get("/stations/:uuid", function ($uuid){
-	echo "stations 123";
-});
-
-
+$app->post("/stations/register", "stationsRegister");
 
 $app->run();
