Index: src/webservice/htdocs/SiWeather/Webservice/Setup.php
===================================================================
--- src/webservice/htdocs/SiWeather/Webservice/Setup.php	(revision db3869689166c7f2f4ad48f564ba1e317cc5e531)
+++ src/webservice/htdocs/SiWeather/Webservice/Setup.php	(revision 1e376487e79f3268499595a602e4c704176c054c)
@@ -306,11 +306,5 @@
 	
 	public function apiCheckWithRewrite(&$errorMessage){
-		$apiVersion = $this->_webserviceConfig->getConfig("webserviceApiVersion");
-		if(!$apiVersion || empty($apiVersion)){
-			$errorMessage = _("Could not determine API version");
-			return false;
-		}
-		
-		return $this->apiCheck($apiVersion ."/stations", $errorMessage);
+		return $this->apiCheck("stations", $errorMessage);
 	}
 
@@ -326,5 +320,5 @@
 	
 	private function apiCheck($url, &$errorMessage){
-		$baseUrl = $this->_webserviceConfig->getConfig("webserviceBaseUrl");
+		$baseUrl = $this->_webserviceConfig->webserviceBaseUrl();
 		if(!$baseUrl || empty($baseUrl)){
 			$errorMessage = _("No webservice base url given!");
@@ -332,4 +326,5 @@
 		}
 
+		# base_url needs to end with a /, otherwise the last element is chopped
 		$client = new \GuzzleHttp\Client
 		(
@@ -347,5 +342,5 @@
 		$result = $response->getStatusCode();
 		if($result != 200){
-			$errorMessage = \Translator::swGettext("Got http error %s (%s)", $result, $response->getReasonPhrase());
+			$errorMessage = \Translator::swGettext("Got http error %s (%s) at url %s", $result, $response->getReasonPhrase(), $baseUrl ."/". $url);
 			return false;
 		}
Index: src/webservice/htdocs/SiWeather/Webservice/WebserviceConfig.php
===================================================================
--- src/webservice/htdocs/SiWeather/Webservice/WebserviceConfig.php	(revision db3869689166c7f2f4ad48f564ba1e317cc5e531)
+++ src/webservice/htdocs/SiWeather/Webservice/WebserviceConfig.php	(revision 1e376487e79f3268499595a602e4c704176c054c)
@@ -24,5 +24,5 @@
 
 	function __construct(){
-		require(__DIR__ ."/../../config/config.php");
+		require(__DIR__ ."/../../../config/config.php");
 		$this->_config = $config;
 		$this->loadAdditionalConfiguration();
@@ -35,4 +35,14 @@
 	private function loadAdditionalConfiguration(){
 		$this->_config["dataDirectory"] = "data";
+		
+		require(__DIR__ ."/../../inc/internalconfig.php");
+		foreach(array_keys($internalconfig) as $key){
+			if(array_key_exists($key, $this->_config)){
+				error_log("Internal config entry ". $key ." already exists --> Keeping existing value and discard internal config value");
+			}
+			else{
+				$this->_config[$key] = $internalconfig[$key];
+			}
+		}
 	}
 
@@ -47,4 +57,8 @@
 			return $this->dataDirectory();
 		}
+		if($key == "webserviceBaseUrl"){
+// 			error_log("Use dataDirectory() function to access this value");
+			return $this->webserviceBaseUrl();
+		}
 		
 		return $this->_config[$key];
@@ -52,5 +66,13 @@
 
 	public function dataDirectory(){
-		return __DIR__ ."/../../". $this->_config["dataDirectory"];
+		return __DIR__ ."/../../../". $this->_config["dataDirectory"];
+	}
+	
+	public function webserviceBaseUrl(){
+		$baseUrl = $this->_config["webserviceBaseUrl"];
+		if(substr($baseUrl, strlen($baseUrl) - 1, 1) != "/"){
+			$baseUrl .= "/";
+		}
+		return $baseUrl;
 	}
 
