Index: src/webservice/htdocs/index.php
===================================================================
--- src/webservice/htdocs/index.php	(revision 1e376487e79f3268499595a602e4c704176c054c)
+++ src/webservice/htdocs/index.php	(revision b858e6f6273177f7d332d702b6bba8ec3f9cdc60)
@@ -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();
Index: src/webservice/tests/StationsTest.php
===================================================================
--- src/webservice/tests/StationsTest.php	(revision 1e376487e79f3268499595a602e4c704176c054c)
+++ src/webservice/tests/StationsTest.php	(revision b858e6f6273177f7d332d702b6bba8ec3f9cdc60)
@@ -52,4 +52,24 @@
 	}
 	
+	public function testRegisterStation()
+	{
+		$baseUrl = $this->_webserviceConfig->webserviceBaseUrl();
+		$this->assertInternalType('string', $baseUrl, "baseUrl is not of type string: ". $baseUrl);
+		$this->assertTrue(!empty($baseUrl), "baseUrl is empty: ". $baseUrl);
+		$client = new GuzzleHttp\Client
+		(
+			[
+				"base_uri" => $baseUrl,
+				"timeout" => 2.0,
+				"http_errors" => false,
+			]
+		);
+		$response = $client->post("index.php/stations/register",
+			[ "json" => ["name" => "Cool Station", "longitude" => 23.2, "latitude" => 90, "city" => "Krefeld"]]
+		);
+		echo $response->getStatusCode();
+		echo $response->getBody();
+	}
+	
 	protected function query($url){
 		$baseUrl = $this->_webserviceConfig->webserviceBaseUrl();
