Index: src/clientcommandline/inputoutputhandler.cpp
===================================================================
--- src/clientcommandline/inputoutputhandler.cpp	(revision 93ea008b0e411edb8b21375d92f22d79b60e2b09)
+++ src/clientcommandline/inputoutputhandler.cpp	(revision 17ef75d3213dffae4f437137296468dca34916e6)
@@ -46,6 +46,14 @@
 		return QString();
 	
-	_in->skipWhiteSpace(); //Important line!
-	return _in->readLine();
+	QString line = _in->readLine();
+	return line.trimmed();
+}
+
+void InputOutputHandler::setFieldWidth(int columns)
+{
+	if(!_out)
+		return;
+	_out->setFieldWidth(columns);
+	_out->setFieldAlignment(QTextStream::AlignLeft);
 }
 
Index: src/clientcommandline/inputoutputhandler.h
===================================================================
--- src/clientcommandline/inputoutputhandler.h	(revision 93ea008b0e411edb8b21375d92f22d79b60e2b09)
+++ src/clientcommandline/inputoutputhandler.h	(revision 17ef75d3213dffae4f437137296468dca34916e6)
@@ -30,7 +30,8 @@
 	public:
 		InputOutputHandler(QObject *parent = NULL);
-    ~InputOutputHandler();
+		~InputOutputHandler();
 
 		QString readLine();
+		void setFieldWidth(int columns);
 		
 		InputOutputHandler& operator<<(const QString &output);
Index: src/clientcommandline/siweatherclientconfig.h.in
===================================================================
--- src/clientcommandline/siweatherclientconfig.h.in	(revision 93ea008b0e411edb8b21375d92f22d79b60e2b09)
+++ src/clientcommandline/siweatherclientconfig.h.in	(revision 17ef75d3213dffae4f437137296468dca34916e6)
@@ -21,4 +21,5 @@
 #define SIWEATHERCLIENTCONFIG_H
 
+#cmakedefine WEBSERVICE_BASE_URL "@WEBSERVICE_BASE_URL_COMPLETE@"
 #cmakedefine VERSION "@VERSION@"
 #cmakedefine WEBSERVICE_API_VERSION "@WEBSERVICE_API_VERSION@"
Index: src/clientcommandline/stationsregister.cpp
===================================================================
--- src/clientcommandline/stationsregister.cpp	(revision 93ea008b0e411edb8b21375d92f22d79b60e2b09)
+++ src/clientcommandline/stationsregister.cpp	(revision 17ef75d3213dffae4f437137296468dca34916e6)
@@ -22,4 +22,5 @@
 
 #include "inputoutputhandler.h"
+#include "siweatherclientconfig.h"
 
 #include <siweatherstation.h>
@@ -37,46 +38,99 @@
 void StationsRegister::registerStation()
 {
-	QUrl baseUrl("http://localhost:9999/0.1/");
+	registerStation(SiWeatherStation());
+}
+
+void StationsRegister::webserviceError(SiWeather::Library::SiWebserviceClient::ReplyType replyType, const QString& message)
+{
+	if(replyType != SiWebserviceClient::StationsRegister)
+		return;
+
+	*_ioHandler << "      "+ tr("FAILED") << endl;
+	*_ioHandler << "  "+ message << endl;
 	
+	QString result = getValue(tr("Do you want to change the station and try it again? (Y/n)"), "Y");
+	if(result != "Y"){
+		*_ioHandler << tr("Aborting!") << endl;
+		qApp->quit();
+		return;
+	}
+	registerStation(_lastStation);
+}
+
+void StationsRegister::webserviceFinished(bool result, const QUuid& stationUuid, const QString& message)
+{
+	if(!result){
+		*_ioHandler << "      "+ tr("FAILED") << endl;
+		*_ioHandler << "  "+ message << endl;
+		QString result = getValue(tr("Do you want to change the station and try it again? (Y/n)"), "Y");
+		if(result != "Y"){
+			*_ioHandler << tr("Aborting!") << endl;
+			qApp->quit();
+			return;
+		}
+		registerStation(_lastStation);
+		return;
+	}
+	
+	*_ioHandler << "      "+ tr("SUCCESS") << endl;
+	*_ioHandler << "  "+ tr("Registered station with uuid %1").arg(stationUuid.toString()) << endl;
+	*_ioHandler << "  "+ message << endl;
+	qApp->quit();
+}
+
+void StationsRegister::registerStation(SiWeatherStation station)
+{
+	if(!_ioHandler)
+		return;
+
+	QUrl baseUrl(QString(WEBSERVICE_BASE_URL));
+
 	*_ioHandler << tr("Please enter some data to describe your station") << endl;
-	SiWeatherStation station;
 	
-	*_ioHandler << tr("Name") +": ";
-	station.setName(_ioHandler->readLine());
+	station.setName(getValue(tr("Name"), station.name()));
+	station.setCity(getValue(tr("City"), station.city()));
+	station.setLatitude(getCoordinate(tr("Latitude"), station.latitude()).toDouble());
+	station.setLongitude(getCoordinate(tr("Longitude"), station.longitude()).toDouble());
 	
-	*_ioHandler << tr("City") +": ";
-	station.setCity(_ioHandler->readLine());
+	station.setEMail(getValue(tr("Your E-Mail Address"), station.eMail()));
+	QString defaultType = "siweatherstation 1";
+	if(!station.type().isEmpty())
+		defaultType = station.type();
+	station.setType(getValue(tr("Type, describing your station"), defaultType));
+	station.setTypeUrl(getValue(tr("Url with information about your type (optional)"), station.typeUrl().toString()));
 	
-	station.setLatitude(getCoordinate(tr("Latitude")).toDouble());
-	station.setLongitude(getCoordinate(tr("Longitude")).toDouble());
-	
-	*_ioHandler << tr("Your E-Mail Address") +": ";
-	station.setEMail(_ioHandler->readLine());
-	
-	QString defaultType = "siweatherstation 1";
-	*_ioHandler << tr("Type, describing your station") +" ["+ defaultType +"]: ";
-	QString type = _ioHandler->readLine();
-	if(type.isEmpty())
-		type = defaultType;
-	station.setType(type);
-	
-	*_ioHandler << tr("Url with information about your type (optional)") + ": ";
-	station.setTypeUrl(_ioHandler->readLine());
-	
+	*_ioHandler << tr("Your station is defined as follows:") << endl;
+	_ioHandler->setFieldWidth(20);
+	*_ioHandler << endl;
+	*_ioHandler << tr("Name:") << station.name() << endl;
+	*_ioHandler << tr("City:") << station.city() << endl;
+	*_ioHandler << tr("Latitude:") << coordinateToString(station.latitude()) << endl;
+	*_ioHandler << tr("Longitude:") << coordinateToString(station.longitude()) << endl;
+	*_ioHandler << tr("Type:") << station.type() << endl;
+	*_ioHandler << tr("Type Url:") << station.typeUrl().toString() << endl;
+	*_ioHandler << tr("E-Mail:") << station.eMail() << endl;
+	_ioHandler->setFieldWidth(0);
+	*_ioHandler << endl;
+
 	if(!station.isValidForRegister()){
 		*_ioHandler << tr("Your station is not valid for register at the webservice.") << endl;
 		*_ioHandler << tr("This means, the name, city, e-mail address or type is empty.") << endl;
+		QString result = getValue(tr("Do you want to change the station? (Y/n)"), "Y");
+		if(result != "Y"){
+			*_ioHandler << tr("Aborting!") << endl;
+			qApp->quit();
+			return;
+		}
+		registerStation(station);
+		return;
 	}
 	else{
-		*_ioHandler << tr("Your station is defined as follows:") << endl;
-		*_ioHandler << "  "+ tr("Name: ") + station.name() << endl;
-		*_ioHandler << "  "+ tr("City: ") + station.city() << endl;
-		*_ioHandler << "  "+ tr("Latitude: ") + QString::number(station.latitude()) << endl;
-		*_ioHandler << "  "+ tr("Longitude: ") + QString::number(station.longitude()) << endl;
-		*_ioHandler << "  "+ tr("Type: ") + station.type() << endl;
-		*_ioHandler << "  "+ tr("Type Url: ") + station.typeUrl().toString() << endl;
-		*_ioHandler << "  "+ tr("E-Mail: ") + station.eMail() << endl;
-		*_ioHandler << tr("Do you want to register this station at %1? (Y/n) [n]").arg(baseUrl.host()) +": ";
-		if(_ioHandler->readLine() != "Y"){
+		QString result = getValue(tr("Do you want to register this station at %1? (Y/e/n)").arg(baseUrl.host()), "n");
+		if(result != "Y"){
+			if(result == "e"){
+				registerStation(station);
+				return;
+			}
+
 			*_ioHandler << tr("Aborting!") << endl;
 			qApp->quit();
@@ -97,40 +151,38 @@
 			return;
 		}
+		_lastStation = station;
 	}
 }
 
-void StationsRegister::webserviceError(SiWeather::Library::SiWebserviceClient::ReplyType replyType, const QString& message)
+QString StationsRegister::getValue(const QString& label, const QString& defaultValue)
 {
-	if(replyType != SiWebserviceClient::StationsRegister)
-		return;
+	if(!_ioHandler)
+		return QString();
 
-	*_ioHandler << "      "+ tr("FAILED") << endl;
-	*_ioHandler << "  "+ message << endl;
-	qApp->quit();
+	QString defaultValueLabel;
+	if(!defaultValue.isEmpty())
+		defaultValueLabel = QString(" [%1]").arg(defaultValue);
+	*_ioHandler << label + defaultValueLabel +": ";
+	QString value = _ioHandler->readLine();
+	if(value.isEmpty())
+		value = defaultValue;
+	return value;
 }
 
-void StationsRegister::webserviceFinished(bool result, const QUuid& stationUuid, const QString& message)
+QString StationsRegister::getCoordinate(const QString& type, double defaultValue)
 {
-	if(!result){
-		*_ioHandler << "      "+ tr("FAILED") << endl;
-		*_ioHandler << "  "+ message << endl;
-		qApp->quit();
-		return;
-	}
-	
-	*_ioHandler << "      "+ tr("SUCCESS") << endl;
-	*_ioHandler << "  "+ tr("Registered station with uuid %1").arg(stationUuid.toString()) << endl;
-	*_ioHandler << "  "+ message << endl;
-	qApp->quit();
-}
+	if(!_ioHandler)
+		return QString();
 
-QString StationsRegister::getCoordinate(const QString& type)
-{
-	*_ioHandler << tr("%1 (at least 4 digits, point as separator)").arg(type) +": ";
-	QString coordinate = _ioHandler->readLine();
-	if(coordinate.right(5).left(1) != "."){
+	QString coordinate = getValue(tr("%1 (at least 4 digits, point as separator)").arg(type), coordinateToString(defaultValue));
+	if(coordinate.length() - coordinate.indexOf(".") < 5){
 		*_ioHandler << tr("Your %1 does not contain 4 digits. Try it again!").arg(type) << endl;
-		return getCoordinate(type);
+		return getCoordinate(type, defaultValue);
 	}
 	return coordinate;
 }
+
+QString StationsRegister::coordinateToString(double coordinate) const
+{
+	return QString::number(coordinate, 'f', 4);
+}
Index: src/clientcommandline/stationsregister.h
===================================================================
--- src/clientcommandline/stationsregister.h	(revision 93ea008b0e411edb8b21375d92f22d79b60e2b09)
+++ src/clientcommandline/stationsregister.h	(revision 17ef75d3213dffae4f437137296468dca34916e6)
@@ -24,4 +24,5 @@
 
 #include <siwebserviceclient.h>
+#include <siweatherstation.h>
 
 #include <QPointer>
@@ -41,7 +42,11 @@
 		
 	private:
-		QString getCoordinate(const QString &type);
+		void registerStation(SiWeather::Library::SiWeatherStation station);
+		QString getValue(const QString &label, const QString &defaultValue = QString());
+		QString getCoordinate(const QString &type, double defaultValue);
+		QString coordinateToString(double coordinate) const;
 		
 		QPointer<InputOutputHandler> _ioHandler;
+		SiWeather::Library::SiWeatherStation _lastStation;
 };
 
