Index: src/CMakeLists.txt
===================================================================
--- src/CMakeLists.txt	(revision 8a5cdba84a98b5567b85196773900832b6106e26)
+++ src/CMakeLists.txt	(revision d83a844fd895d9307450f9858168930434e6cb58)
@@ -20,8 +20,9 @@
 ######################
 
-IF(WITH_CLIENT)
-	FIND_PACKAGE(Qt4 REQUIRED)
-	ADD_SUBDIRECTORY(client)
-ENDIF(WITH_CLIENT)
+IF(WITH_STATIONCLIENT)
+	FIND_PACKAGE(Qt5Core REQUIRED)
+	FIND_PACKAGE(Qt5Network REQUIRED)
+	ADD_SUBDIRECTORY(lib)
+ENDIF(WITH_STATIONCLIENT)
 IF(WITH_WEBSERVICE)
 	ADD_SUBDIRECTORY(webservice)
Index: src/lib/CMakeLists.txt
===================================================================
--- src/lib/CMakeLists.txt	(revision d83a844fd895d9307450f9858168930434e6cb58)
+++ src/lib/CMakeLists.txt	(revision d83a844fd895d9307450f9858168930434e6cb58)
@@ -0,0 +1,227 @@
+######################
+#
+#    Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+#
+#    This library is free software; you can redistribute it and/or
+#    modify it under the terms of the GNU Lesser General Public
+#    License as published by the Free Software Foundation; either
+#    version 2.1 of the License, or (at your option) any later version.
+#
+#    This library is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+#    Lesser General Public License for more details.
+#
+#    You should have received a copy of the GNU Lesser General Public
+#    License along with this library; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+#    MA 02110-1301  USA.
+#
+######################
+
+# IF(L10N_DE)
+# 	SET(files_TS ${files_TS} lang/siweather-lib_de.ts)
+# ENDIF(L10N_DE)
+# IF(L10N_EN)
+# 	SET(files_TS ${files_TS} lang/siweather-lib_en.ts)
+# ENDIF(L10N_EN)
+# IF(L10N_FR)
+# 	SET(files_TS ${files_TS} lang/siweather-lib_fr.ts)
+# ENDIF(L10N_FR)
+
+SET(files_UI
+)
+
+SET(files_CPP
+	silibrary.cpp
+	siweatherstation.cpp
+	siwebserviceclient.cpp
+)
+
+INCLUDE_DIRECTORIES(
+	${CMAKE_CURRENT_BINARY_DIR}
+	${CMAKE_CURRENT_SOURCE_DIR}
+# 	${CMAKE_CURRENT_BINARY_DIR}/internal
+# 	${CMAKE_CURRENT_SOURCE_DIR}/internal
+)
+ADD_DEFINITIONS(-DSI_BUILD_LIB)
+SET(LINK_LIBRARIES ${QT_LIBRARIES})
+SET(LIBOUTDIR ${LIBRARY_OUTPUT_PATH})
+SET(SHAREDIR ${share_DIR})
+CONFIGURE_FILE(
+	${CMAKE_CURRENT_SOURCE_DIR}/silibconfig.h.in
+	${CMAKE_CURRENT_BINARY_DIR}/silibconfig.h
+)
+CONFIGURE_FILE(
+	${CMAKE_CURRENT_SOURCE_DIR}/silibrary.h.in
+	${CMAKE_CURRENT_BINARY_DIR}/silibrary.h
+)
+
+# 	QT5_WRAP_UI(libengsas_UI_H ${libengsas_UI})
+# 	QT5_ADD_TRANSLATION(libengsas_TRANS ${libengsas_TS})
+
+ADD_LIBRARY(libsiweather SHARED
+	${files_CPP}
+# 	${files_UI_H}
+# 	${files_TRANS}
+)
+
+TARGET_LINK_LIBRARIES(libsiweather
+  ${LINK_LIBRARIES}
+)
+
+qt5_use_modules(libsiweather Core Network)
+
+SET_TARGET_PROPERTIES(libsiweather PROPERTIES
+	OUTPUT_NAME "siweather"
+	VERSION ${TARGET_VERSION_MAJOR}.${TARGET_VERSION_MINOR}.${${PROJECT_NAME}_PATCH_LEVEL}
+	SOVERSION ${TARGET_VERSION_MAJOR})
+IF(WIN32)
+	# this extra install command is needed by the nsis installer
+	INSTALL(TARGETS libsiweather 
+		RUNTIME DESTINATION ${LIB_INSTALL_DIR} 
+		COMPONENT library 
+	)
+	IF(MSVC)
+		INSTALL(FILES ${LIBRARY_OUTPUT_PATH}/siweather.lib DESTINATION ${LIB_INSTALL_DIR} COMPONENT library)
+	ENDIF(MSVC)
+ELSE(WIN32)
+	INSTALL(TARGETS libsiweather
+		ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+		LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+		COMPONENT library
+	)
+ENDIF(WIN32)
+
+# INSTALL(
+#   FILES ${files_TRANS}
+#   DESTINATION ${qm_DIR}
+#   COMPONENT library
+# )
+
+# SET(LIBENGSAS_VERSION ${${PROJECT_NAME}_VERSION})
+# SET(QTVERSION "${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}")
+# SET(depends_XML ${CMAKE_BINARY_DIR}/depends/libengsas-core.xml)
+# CONFIGURE_FILE(libengsas-core.xml.in ${depends_XML})
+# INSTALL(
+# 	FILES ${depends_XML}
+# 	DESTINATION ${depends_DIR}
+# 	COMPONENT library
+# )
+
+IF(PACK_WIN32_STUFF)
+	# Qt translation files
+	# en has no translation files
+	IF(L10N_DE)
+		FILE(GLOB pack_qt_translations_de "${QT_BINARY_DIR}/../translations/*_de.qm")
+		INSTALL(
+			FILES ${pack_qt_translations_de}
+			DESTINATION ${qm_DIR}
+			COMPONENT library
+		)
+	ENDIF(L10N_DE)
+	IF(L10N_FR)
+		FILE(GLOB pack_qt_translations_fr "${QT_BINARY_DIR}/../translations/*_fr.qm")
+		INSTALL(
+			FILES ${pack_qt_translations_fr}
+			DESTINATION ${qm_DIR}
+			COMPONENT library
+		)
+	ENDIF(L10N_FR)
+
+	# Qt itself
+	FIND_FILE(pack_qtcore QtCore4.dll HINTS ${PACK_HINTS} NO_DEFAULT_PATH)
+	FIND_FILE(pack_qtnetwork QtNetwork4.dll HINTS ${PACK_HINTS} NO_DEFAULT_PATH)
+	
+	IF(NOT MSVC AND NOT CMAKE_CROSSCOMPILING)
+		FIND_FILE(pack_mingwm10 mingwm10.dll HINTS ${PACK_HINTS} NO_DEFAULT_PATH)
+		FIND_FILE(pack_libgcc_s_dw libgcc_s_dw2-1.dll HINTS ${PACK_HINTS} NO_DEFAULT_PATH)
+		SET(pack_extra_libraries
+			${pack_mingwm10}
+			${pack_libgcc_s_dw}
+		)
+	ELSEIF(CMAKE_CROSSCOMPILING)
+		FIND_FILE(pack_libstdcpp libstdc++-6.dll HINTS ${PACK_HINTS} NO_DEFAULT_PATH)
+		FIND_FILE(pack_libpng libpng16-16.dll HINTS ${PACK_HINTS} NO_DEFAULT_PATH)
+		SET(pack_extra_libraries
+			${pack_libstdcpp}
+			${pack_libpng}
+		)
+	ENDIF()
+	
+	INSTALL(
+		FILES 
+			${pack_qtcore}
+			${pack_qtnetwork}
+			${pack_extra_libraries}
+		DESTINATION ${bin_DIR}
+		COMPONENT qtlibs
+	)
+ENDIF()
+	
+IF(BUILD_DEV)
+	FILE(GLOB header "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
+	INSTALL(
+		FILES ${header} "${CMAKE_CURRENT_BINARY_DIR}/siversion.h"
+		DESTINATION ${include_DIR}/core
+		COMPONENT headerfiles
+	)
+
+	# Install FindLibEngsas.cmake
+# 	SET(LIBENGSAS_LIBRARY_DIR 						"\${LIBENGSAS_LIBRARY_DIR}")
+# 	SET(PC_LIBENGSAS_CFLAGS_OTHER 				"\${PC_LIBENGSAS_CFLAGS_OTHER}")
+# 	SET(PC_LIBENGSAS_LIBDIR 							"\${PC_LIBENGSAS_LIBDIR}")
+# 	SET(PC_LIBENGSAS_LIBRARY_DIRS					"\${PC_LIBENGSAS_LIBRARY_DIRS}")
+# 	SET(PC_LIBENGSAS_INCLUDEDIR						"\${PC_LIBENGSAS_INCLUDEDIR}")
+# 	SET(PC_LIBENGSAS_INCLUDE_DIRS					"\${PC_LIBENGSAS_INCLUDE_DIRS}")
+# 	SET(LIBENGSAS_TESTING_LIBRARY_DIR 		"\${LIBENGSAS_TESTING_LIBRARY_DIR}")
+# 	SET(PC_LIBENGSAS_TESTING_CFLAGS_OTHER "\${PC_LIBENGSAS_CFLAGS_OTHER}")
+# 	SET(PC_LIBENGSAS_TESTING_LIBDIR 			"\${PC_LIBENGSAS_LIBDIR}")
+# 	SET(PC_LIBENGSAS_TESTING_LIBRARY_DIRS	"\${PC_LIBENGSAS_LIBRARY_DIRS}")
+# 	SET(PC_LIBENGSAS_TESTING_INCLUDEDIR		"\${PC_LIBENGSAS_INCLUDEDIR}")
+# 	SET(PC_LIBENGSAS_TESTING_INCLUDE_DIRS	"\${PC_LIBENGSAS_INCLUDE_DIRS}")
+# 	SET(LIBENGSAS_CHARTS_LIBRARY_DIR 			"\${LIBENGSAS_CHARTS_LIBRARY_DIR}")
+# 	SET(PC_LIBENGSAS_CHARTS_LIBDIR				"\${PC_LIBENGSAS_CHARTS_LIBDIR}")
+# 	SET(PC_LIBENGSAS_CHARTS_LIBRARY_DIRS 	"\${PC_LIBENGSAS_LIBRARY_DIRS}")
+# 	SET(PC_LIBENGSAS_CHARTS_INCLUDEDIR		"\${PC_LIBENGSAS_INCLUDEDIR}")
+# 	SET(PC_LIBENGSAS_CHARTS_INCLUDE_DIRS	"\${PC_LIBENGSAS_INCLUDE_DIRS}")
+# 	SET(LIBENGSAS_GRAPHS_LIBRARY_DIR 			"\${LIBENGSAS_GRAPHS_LIBRARY_DIR}")
+# 	SET(PC_LIBENGSAS_GRAPHS_LIBDIR				"\${PC_LIBENGSAS_GRAPHS_LIBDIR}")
+# 	SET(PC_LIBENGSAS_GRAPHS_LIBRARY_DIRS 	"\${PC_LIBENGSAS_LIBRARY_DIRS}")
+# 	SET(PC_LIBENGSAS_GRAPHS_INCLUDEDIR		"\${PC_LIBENGSAS_INCLUDEDIR}")
+# 	SET(PC_LIBENGSAS_GRAPHS_INCLUDE_DIRS	"\${PC_LIBENGSAS_INCLUDE_DIRS}")
+# 	SET(LIBENGSAS_PATCH_LEVEL ${${PROJECT_NAME}_PATCH_LEVEL})
+# 	CONFIGURE_FILE(
+# 		${CMAKE_CURRENT_SOURCE_DIR}/FindLibEngsas.cmake.in
+# 		${CMAKE_CURRENT_BINARY_DIR}/FindLibEngsas.cmake
+# 	)
+# 	INSTALL(
+# 		FILES ${CMAKE_CURRENT_BINARY_DIR}/FindLibEngsas.cmake
+# 		DESTINATION ${find_cmake_DIR}
+# 		COMPONENT devfinding
+# 	)
+
+# 	# CMake overrides ${var} during configuration, therefore we insert it with cmake
+# 	SET(prefix ${CMAKE_INSTALL_PREFIX})
+# 	SET(exec_prefix "\${prefix}")
+# 	SET(libdir "\${exec_prefix}/lib")
+# 	SET(includedir "\${prefix}/include/engsas")
+# 	SET(lib_flag "\${libdir}")
+# 	SET(include_flag "\${includedir}")
+# 	SET(LIBNAME engsas)
+# 	SET(REQUIRES "QtCore >= 4, QtGui >= 4, QtXml >= 4, QtXmlPatterns >= 4")
+# # KDE has no pkgconfig .pc file
+# # 	IF(BINDINGS_KDE)
+# # 		SET(REQUIRES "${REQUIRES}, KDELibs >= 4")
+# # 	ENDIF(BINDINGS_KDE)
+# 	CONFIGURE_FILE(
+# 		${CMAKE_CURRENT_SOURCE_DIR}/libengsas.pc.in
+# 		${CMAKE_CURRENT_BINARY_DIR}/libengsas.pc
+# 	)
+# 	# Install pkgconfig file
+# 	INSTALL(
+# 		FILES ${CMAKE_CURRENT_BINARY_DIR}/libengsas.pc
+# 		DESTINATION ${pkgconfig_DIR}
+# 		COMPONENT devfinding
+# 	)
+ENDIF(BUILD_DEV)
Index: src/lib/siglobal.h
===================================================================
--- src/lib/siglobal.h	(revision d83a844fd895d9307450f9858168930434e6cb58)
+++ src/lib/siglobal.h	(revision d83a844fd895d9307450f9858168930434e6cb58)
@@ -0,0 +1,35 @@
+/*
+    Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+*/
+
+/**
+	* @mainpage SiWeatherLibrary
+	*
+	* @author Joachim Langenbach
+	* 
+  */
+#ifndef SIGLOBAL_H
+#define SIGLOBAL_H
+
+#ifdef SI_BUILD_LIB
+	#define SI_LIB_EXPORT Q_DECL_EXPORT
+#else
+  #define SI_LIB_EXPORT Q_DECL_IMPORT
+#endif
+
+#endif // SIGLOBAL_H
Index: src/lib/silibconfig.h.in
===================================================================
--- src/lib/silibconfig.h.in	(revision d83a844fd895d9307450f9858168930434e6cb58)
+++ src/lib/silibconfig.h.in	(revision d83a844fd895d9307450f9858168930434e6cb58)
@@ -0,0 +1,29 @@
+/*
+    Copyright (C) 2010 - 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+*/
+
+#ifndef SILIBCONFIG_H
+#define SILIBCONFIG_H
+
+#cmakedefine SI_SENSOR_PLUGIN_DIR "@SI_SENSOR_PLUGIN_DIR@"
+#cmakedefine SHAREDIR "@SHAREDIR@"
+
+#cmakedefine VERSION "@VERSION@"
+#cmakedefine WEBSERVICE_API_VERSION "@WEBSERVICE_API_VERSION@"
+
+#endif // SILIBCONFIG_H
Index: src/lib/silibrary.cpp
===================================================================
--- src/lib/silibrary.cpp	(revision d83a844fd895d9307450f9858168930434e6cb58)
+++ src/lib/silibrary.cpp	(revision d83a844fd895d9307450f9858168930434e6cb58)
@@ -0,0 +1,34 @@
+/*
+    Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+*/
+
+
+#include "silibrary.h"
+
+#include "silibconfig.h"
+
+using namespace SiWeather::Library;
+
+QString Library::version()
+{
+	return QString( VERSION );
+}
+
+QString Library::geoCoordinateToString(double coordinate){
+	return QString::number(coordinate, 'f', 6);
+}
Index: src/lib/silibrary.h.in
===================================================================
--- src/lib/silibrary.h.in	(revision d83a844fd895d9307450f9858168930434e6cb58)
+++ src/lib/silibrary.h.in	(revision d83a844fd895d9307450f9858168930434e6cb58)
@@ -0,0 +1,49 @@
+/*
+    Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+*/
+
+
+#ifndef SILIBRARY_H
+#define SILIBRARY_H
+
+/**
+ * @file silibrary.h
+ * @brief The file contains macros and functions related to the siweather library.
+ */
+
+#include <siglobal.h>
+
+#include <QString>
+
+/**
+	* @brief Macro contains SiWeather library version at compile time.
+	* 
+	* For SiWeather version at runtime, use SiWeather::Library::Library::version().
+	*/
+#define SIWEATHER_VERSION_STRING "@VERSION@"
+
+namespace SiWeather {
+	namespace Library {
+		class SI_LIB_EXPORT Library {
+			 static QString version();
+			 static QString geoCoordinateToString(double coordinate);
+		};
+	};
+};
+
+#endif // SIVERSION_H
Index: src/lib/siweatherstation.cpp
===================================================================
--- src/lib/siweatherstation.cpp	(revision d83a844fd895d9307450f9858168930434e6cb58)
+++ src/lib/siweatherstation.cpp	(revision d83a844fd895d9307450f9858168930434e6cb58)
@@ -0,0 +1,120 @@
+/*
+    Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+*/
+
+#include "siweatherstation.h"
+
+using namespace SiWeather::Library;
+
+SiWeatherStation::SiWeatherStation()
+{
+	init();
+}
+
+SiWeatherStation::SiWeatherStation(const QString &uuid, const QString &name)
+{
+	init();
+	setUuid(uuid);
+	setName(name);
+}
+
+void SiWeatherStation::setUuid(const QString &uuid)
+{
+	_uuid = QUuid(uuid);
+}
+
+QUuid SiWeatherStation::uuid() const
+{
+	return _uuid;
+}
+
+void SiWeatherStation::setName(const QString &name)
+{
+	_name = name;
+}
+
+QString SiWeatherStation::name() const
+{
+	return _name;
+}
+
+void SiWeatherStation::setCity(const QString &city)
+{
+	_city = city;
+}
+
+QString SiWeatherStation::city() const
+{
+	return _city;
+}
+
+void SiWeatherStation::setLongitude(double longitude)
+{
+	_longitude = longitude;
+}
+
+double SiWeatherStation::longitude() const
+{
+	return _longitude;
+}
+
+void SiWeatherStation::setLatitude(double latitude)
+{
+	_latitude = latitude;
+}
+
+double SiWeatherStation::latitude() const
+{
+	return _latitude;
+}
+
+void SiWeatherStation::setType(const QString &type)
+{
+	_type = type;
+}
+
+QString SiWeatherStation::type() const
+{
+	return _type;
+}
+
+void SiWeatherStation::setTypeUrl(const QString &typeUrl)
+{
+	_typeUrl = QUrl(typeUrl);
+}
+
+QUrl SiWeatherStation::typeUrl() const
+{
+	return _typeUrl;
+}
+
+void SiWeatherStation::setEMail(const QString &address)
+{
+	_eMail = address;
+}
+
+QString SiWeatherStation::eMail() const
+{
+	return _eMail;
+}
+
+void SiWeatherStation::init()
+{
+	_longitude = 0;
+	_latitude = 0;
+}
Index: src/lib/siweatherstation.h
===================================================================
--- src/lib/siweatherstation.h	(revision d83a844fd895d9307450f9858168930434e6cb58)
+++ src/lib/siweatherstation.h	(revision d83a844fd895d9307450f9858168930434e6cb58)
@@ -0,0 +1,66 @@
+/*
+    Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+*/
+
+#ifndef SIWEATHERSTATION_H
+#define SIWEATHERSTATION_H
+
+#include <siglobal.h>
+
+#include <QString>
+#include <QUuid>
+#include <QUrl>
+
+namespace SiWeather {
+	namespace Library {
+		class SI_LIB_EXPORT SiWeatherStation
+		{
+			public:
+				SiWeatherStation();
+				SiWeatherStation(const QString &uuid, const QString &name);
+				
+				void setUuid(const QString &uuid);
+				QUuid uuid() const;
+				void setName(const QString &name);
+				QString name() const;
+				void setCity(const QString &city);
+				QString city() const;
+				void setLongitude(double longitude);
+				double longitude() const;
+				void setLatitude(double latitude);
+				double latitude() const;
+				void setType(const QString &type);
+				QString type() const;
+				void setTypeUrl(const QString &typeUrl);
+				QUrl typeUrl() const;
+				void setEMail(const QString &address);
+				QString eMail() const;
+
+			private:
+				void init();
+				
+				QUuid _uuid;
+				QString _name, _city;
+				QString _type, _eMail;
+				double _longitude, _latitude;
+				QUrl _typeUrl;
+		};
+	};
+};
+
+#endif // SIWEATHERSTATION_H
Index: src/lib/siwebserviceclient.cpp
===================================================================
--- src/lib/siwebserviceclient.cpp	(revision d83a844fd895d9307450f9858168930434e6cb58)
+++ src/lib/siwebserviceclient.cpp	(revision d83a844fd895d9307450f9858168930434e6cb58)
@@ -0,0 +1,122 @@
+/*
+    Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+*/
+
+#include "siwebserviceclient.h"
+#include "moc_siwebserviceclient.cpp"
+
+#include "silibconfig.h"
+#include "silibrary.h"
+#include "siweatherstation.h"
+
+#include <QNetworkAccessManager>
+#include <QNetworkRequest>
+#include <QNetworkReply>
+#include <QJsonObject>
+#include <QJsonDocument>
+
+using namespace SiWeather::Library;
+
+SiWebserviceClient::SiWebserviceClient(QUrl baseUrl, QObject* parent)
+	: QObject(parent)
+{
+	_baseUrl = baseUrl;
+	_networkManager = new QNetworkAccessManager(this);
+}
+
+QString SiWebserviceClient::apiVersion()
+{
+	return QString(WEBSERVICE_API_VERSION);
+}
+
+SiWebserviceClient::ReplyType SiWebserviceClient::stationsRegister(SiWeatherStation station, QString &error)
+{
+	if(!_networkManager)
+		return Error;
+
+	if(station.name().isEmpty() || station.city().isEmpty() || station.eMail().isEmpty()){
+		error = tr("Station has empty name, city or eMail address. All of these are needed!");
+		return Error;
+	}
+	
+	QJsonObject jsonStation;
+	jsonStation["name"] = station.name();
+	jsonStation["city"] = station.city();
+	jsonStation["longitude"] = Library::geoCoordinateToString(station.longitude());
+	jsonStation["latitude"] = Library::geoCoordinateToString(station.latitude());
+	jsonStation["email"] = station.eMail();
+	QJsonDocument jsonDocument(jsonStation);
+
+	QNetworkRequest request;
+	request.setUrl(QString("%1%2").arg(_baseUrl.toString()).arg("/stations/register"));
+	request.setRawHeader("User-Agent", QString("SiWeather Library %1").arg(Library::version()).toUtf8());
+	request.setHeader(QNetworkRequest::ContentTypeHeader, 
+    "application/json");
+	QNetworkReply *reply = _networkManager->post(request, jsonDocument.toJson(QJsonDocument::Indented));
+	connect(reply, SIGNAL(finished()),
+					this, SLOT(replyStationsRegister()));
+	return StationsRegister;
+}
+
+void SiWebserviceClient::replyStationsRegister()
+{
+	QNetworkReply *reply = getNetworkReply(sender(), StationsRegister);
+	if(!reply)
+		return;
+	
+	QByteArray data = reply->readAll();
+	QJsonDocument jsonDocument = QJsonDocument::fromBinaryData(data);
+	QJsonObject json = jsonDocument.object();
+	if(!json.contains("result")){
+		emit finishedStationsRegister(false, "", tr("No result in response found"));
+		return;
+	}
+	if(json["result"].toString() != "success"){
+		emit finishedStationsRegister(false, "", tr("Operation failed for reason: %1").arg(json["message"].toString()));
+		return;
+	}
+	if(!json.contains("uuid")){
+		emit finishedStationsRegister(false, "", tr("No uuid in response found"));
+		return;
+	}
+	emit finishedStationsRegister(true, QUuid(json["uuid"].toString()), "");
+	emit finished(StationsRegister, data);
+	reply->deleteLater();
+}
+
+QNetworkReply* SiWebserviceClient::getNetworkReply(QObject* sender, ReplyType type) const
+{
+	if(!sender){
+		emit error(Error, tr("No sender object found"));
+		return NULL;
+	}
+	QNetworkReply *reply = qobject_cast<QNetworkReply*>(sender);
+	if(!reply){
+		emit error(Error, tr("No reply found"));
+		return NULL;
+	}
+
+	if(reply->error() != QNetworkReply::NoError){
+		emit error(type, reply->errorString());
+		reply->deleteLater();
+		return NULL;
+	}
+
+	return reply;
+}
+
Index: src/lib/siwebserviceclient.h
===================================================================
--- src/lib/siwebserviceclient.h	(revision d83a844fd895d9307450f9858168930434e6cb58)
+++ src/lib/siwebserviceclient.h	(revision d83a844fd895d9307450f9858168930434e6cb58)
@@ -0,0 +1,75 @@
+/*
+    Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+*/
+
+#ifndef SIWEBSERVICECLIENT_H
+#define SIWEBSERVICECLIENT_H
+
+#include <siglobal.h>
+#include <QObject>
+
+class QNetworkAccessManager;
+class QNetworkReply;
+
+#include <QPointer>
+#include <QUrl>
+
+namespace SiWeather {
+	namespace Library {
+
+		class SiWeatherStation;
+
+		class SI_LIB_EXPORT SiWebserviceClient : public QObject
+		{
+			Q_OBJECT
+			public:
+				enum ReplyType{ Error = 1, StationsRegister = 2 };
+
+				SiWebserviceClient(QUrl baseUrl, QObject *parent = NULL);
+				
+				static QString apiVersion();
+				
+				/**
+				 * @brief Registers a station at the server and emits error() or finishedStationsRegister() if finished.
+				 */
+				ReplyType stationsRegister(SiWeatherStation station, QString &error);
+
+			signals:
+				void error(ReplyType replyType, const QString &errorMessage) const;
+				/**
+				 * @brief Generic finish signal for all requests. Use specialized finished signals instead!
+				 *
+				 * @see finishedStationsRegister
+				 */
+				void finished(ReplyType replyType, const QByteArray &data) const;
+				void finishedStationsRegister(bool result, const QUuid &uuid, const QString &message) const;
+				
+
+			private slots:
+				void replyStationsRegister();
+
+			private:
+				QNetworkReply* getNetworkReply(QObject *sender, ReplyType type) const;
+				QUrl _baseUrl;
+				QPointer<QNetworkAccessManager> _networkManager;
+		};
+	};
+};
+Q_DECLARE_METATYPE(SiWeather::Library::SiWebserviceClient::ReplyType)
+
+#endif //SIWEBSERVICECLIENT_H
Index: src/webservice/htdocs/SiWeather/Webservice/WebserviceApi.php
===================================================================
--- src/webservice/htdocs/SiWeather/Webservice/WebserviceApi.php	(revision 8a5cdba84a98b5567b85196773900832b6106e26)
+++ src/webservice/htdocs/SiWeather/Webservice/WebserviceApi.php	(revision d83a844fd895d9307450f9858168930434e6cb58)
@@ -121,5 +121,5 @@
 			}
 
-			$expectedKeys = array("name", "city", "longitude", "latitude", "email");
+			$expectedKeys = array("name", "city", "longitude", "latitude", "email", "type", "typeUrl");
 			$missingKeys = array();
 			foreach($expectedKeys as $key){
