Index: src/mapservice-webclient/src/app/app.module.ts
===================================================================
--- src/mapservice-webclient/src/app/app.module.ts	(revision ca1bb14c598c4285a7b235c0eea31e69aa079352)
+++ src/mapservice-webclient/src/app/app.module.ts	(revision 955f4b45cf7b9fdda79e9bf1cdca1b828cd9cc12)
@@ -16,5 +16,5 @@
 import { WatersComponent, WaterComponent, WaterDetailsComponent, GaugesComponent } from './water';
 import { MapComponent } from './map';
-import { UserComponent, WaterAddComponent, GaugeEditComponent } from './mygnuboat';
+import { UserComponent, WaterAddComponent, GaugeEditComponent, DeviceAddComponent } from './mygnuboat';
 
 
@@ -40,4 +40,5 @@
     WaterAddComponent,
     GaugeEditComponent,
+    DeviceAddComponent,
     MapComponent,
   ],
Index: src/mapservice-webclient/src/app/app.routing.ts
===================================================================
--- src/mapservice-webclient/src/app/app.routing.ts	(revision ca1bb14c598c4285a7b235c0eea31e69aa079352)
+++ src/mapservice-webclient/src/app/app.routing.ts	(revision 955f4b45cf7b9fdda79e9bf1cdca1b828cd9cc12)
@@ -4,5 +4,5 @@
 import { LoginComponent, RegisterComponent } from './user';
 import { WatersComponent, WaterDetailsComponent } from './water';
-import { UserComponent, WaterAddComponent } from './mygnuboat';
+import { UserComponent, WaterAddComponent, DeviceAddComponent } from './mygnuboat';
 import { HomeComponent } from './home';
 
@@ -12,4 +12,5 @@
   { path: 'mygnuboat', component: UserComponent, canActivate: [AuthGuard] },
   { path: 'mygnuboat/water/add', component: WaterAddComponent, canActivate: [AuthGuard] },
+  { path: 'mygnuboat/device/add', component: DeviceAddComponent, canActivate: [AuthGuard] },
   { path: 'water', component: WatersComponent },
   { path: 'water/:id', component: WaterDetailsComponent },
Index: src/mapservice-webclient/src/app/mygnuboat/deviceadd.component.html
===================================================================
--- src/mapservice-webclient/src/app/mygnuboat/deviceadd.component.html	(revision 955f4b45cf7b9fdda79e9bf1cdca1b828cd9cc12)
+++ src/mapservice-webclient/src/app/mygnuboat/deviceadd.component.html	(revision 955f4b45cf7b9fdda79e9bf1cdca1b828cd9cc12)
@@ -0,0 +1,27 @@
+<div class="header">
+    <h2 i18n="@@deviceaddTitle">Add a new Device</h2>
+</div>
+<div class="content">
+  <form class="pure-form pure-form-aligned" [formGroup]='devicesForm' (ngSubmit)="addDevice()">
+    <fieldset>
+      <div class="pure-control-group">
+        <label for="name" i18n="@@deviceEditName">Name:</label>
+        <input #deviceNameInput id="deviceEditName" formControlName='name' type="text" i18n-placeholder placeholder="Name of Device" required>
+        <span *ngIf="devicesForm.controls['name'].errors" class="pure-form-message-inline" i18n="@@deviceNameRequired">Name is required.</span>
+      </div>
+      <div class="pure-control-group">
+        <label for="sensorDepth" i18n="@@deviceEditSensorDepth">Sensor Depth:</label>
+        <input #deviceSensorDepthInput formControlName='sensorDepth' type='number' placeholder="cm" min="0" required><span>cm</span>
+        <span *ngIf="devicesForm.controls['sensorDepth'].errors" class="pure-form-message-inline" i18n="@@deviceSensorDepthRequired">Sensor Depth is required.</span>
+      </div>
+      <div class="pure-control-group">
+        <label for="comment" i18n="@@deviceEditComment">Comment:</label>
+        <textarea #deviceCommentInput formControlName='comment'></textarea>
+      </div>
+      <div class="pure-controls">
+        <button [disabled]="devicesForm.pristine || devicesForm.invalid" class="pure-button pure-button-primary" i18n="@@deviceButtonAdd">Add</button>
+        <button class="pure-button" (mousedown)="cancelEditing()">Cancel</button>
+      </div>
+    </fieldset>
+  </form>
+</div>
Index: src/mapservice-webclient/src/app/mygnuboat/deviceadd.component.ts
===================================================================
--- src/mapservice-webclient/src/app/mygnuboat/deviceadd.component.ts	(revision 955f4b45cf7b9fdda79e9bf1cdca1b828cd9cc12)
+++ src/mapservice-webclient/src/app/mygnuboat/deviceadd.component.ts	(revision 955f4b45cf7b9fdda79e9bf1cdca1b828cd9cc12)
@@ -0,0 +1,75 @@
+import { Component, OnInit } from '@angular/core';
+import { Observable, Subscription } from 'rxjs';
+import { first } from 'rxjs/operators';
+//import { switchMap, debounceTime, tap, finalize, filter } from 'rxjs/operators';
+import { FormBuilder, FormGroup, Validators } from '@angular/forms';
+import { Router } from '@angular/router';
+
+import { User, Device, DeviceCreation, DevicesService } from '../../../src-gen/gnuboat-mapservice';
+import { AuthenticationService, AlertService } from '../services';
+
+@Component({
+  templateUrl: 'deviceadd.component.html',
+})
+export class DeviceAddComponent implements OnInit {
+  public currentUser:User;
+  private devicesForm: FormGroup;
+  private currentUserSubscription: Subscription;
+
+  constructor(
+      private formBuilder: FormBuilder,
+      private devicesService: DevicesService,
+      private alertService: AlertService,
+      private authenticationService: AuthenticationService,
+      private router: Router
+  ) {
+    this.currentUserSubscription = this.authenticationService.currentUser.subscribe(user => {
+      this.currentUser = user;
+      this.devicesService.configuration.username = user.username;
+      this.devicesService.configuration.password = this.authenticationService.currentUserPassword;
+    });
+  }
+
+  ngOnInit() {
+    this.devicesForm = this.formBuilder.group({
+      name: [, Validators.required],
+      sensorDepth: [, Validators.required],
+      comment: [],
+    });
+  }
+
+  ngOnDestroy() {
+  }
+
+  addDevice(){
+    // stop here if form is invalid
+    if (this.devicesForm.invalid) {
+      this.alertService.error("Please enter all necessary data");
+      return;
+    }
+
+    var device = {} as DeviceCreation;
+    device.name = this.devicesForm.get('name').value;
+    device.sensorDepth = this.devicesForm.get('sensorDepth').value
+    device.comment = this.devicesForm.get('comment').value
+
+    this.devicesService.devicesCreate(device).pipe(first()).subscribe(result => {
+      if(device.name == result.name){
+          this.router.navigate(['/mygnuboat']);
+        }
+        else{
+          console.log(result);
+          // do some error handling here!
+          this.alertService.error("Could not add device!");
+        }
+      },
+      error => {
+        this.alertService.error(error);
+      }
+    );
+  }
+
+  cancelEditing(){
+    this.router.navigate(['/mygnuboat']);
+  }
+}
Index: src/mapservice-webclient/src/app/mygnuboat/index.ts
===================================================================
--- src/mapservice-webclient/src/app/mygnuboat/index.ts	(revision ca1bb14c598c4285a7b235c0eea31e69aa079352)
+++ src/mapservice-webclient/src/app/mygnuboat/index.ts	(revision 955f4b45cf7b9fdda79e9bf1cdca1b828cd9cc12)
@@ -2,2 +2,3 @@
 export * from './wateradd.component';
 export * from './gaugeedit.component';
+export * from './deviceadd.component';
Index: src/mapservice-webclient/src/app/mygnuboat/user.component.html
===================================================================
--- src/mapservice-webclient/src/app/mygnuboat/user.component.html	(revision ca1bb14c598c4285a7b235c0eea31e69aa079352)
+++ src/mapservice-webclient/src/app/mygnuboat/user.component.html	(revision 955f4b45cf7b9fdda79e9bf1cdca1b828cd9cc12)
@@ -19,4 +19,28 @@
   </div>
   <h2 class="content-subhead"><object data="/resources/gnuboat-device.svg" ype="image/svg++xml" class="svg-icon"></object>Devices</h2>
+  <div>
+    <a name="devices"></a>
+    <p><a class="pure-button button-add" routerLink="device/add">Add Device</a></p>
+    <table id="devices" class="pure-table pure-table-horizontal pure-table-striped">
+      <thead>
+        <tr>
+          <th>Name</th>
+          <th>Sensor Depth</th>
+          <th>Comment</th>
+          <th></th>
+          <th></th>
+        </tr>
+      </thead>
+      <tbody>
+        <tr *ngFor="let device of devices">
+          <td id="name">{{device.name}}</td>
+          <td id="sensorDepth">{{device.sensorDepth}}cm</td>
+          <td id="comment">{{device.comment}}</td>
+          <td id="button"><button disabled (click)="deviceUploadLogfile(apiKey)" class="button-add pure-button">Upload Logfile</button></td>
+          <td id="button"><button (click)="deviceDelete(device)" class="button-remove pure-button">Delete</button></td>
+        </tr>
+      </tbody>
+    </table>
+  </div>
   <h2 class="content-subhead">Your API keys</h2>
   <div>
Index: src/mapservice-webclient/src/app/mygnuboat/user.component.ts
===================================================================
--- src/mapservice-webclient/src/app/mygnuboat/user.component.ts	(revision ca1bb14c598c4285a7b235c0eea31e69aa079352)
+++ src/mapservice-webclient/src/app/mygnuboat/user.component.ts	(revision 955f4b45cf7b9fdda79e9bf1cdca1b828cd9cc12)
@@ -3,6 +3,6 @@
 import { first } from 'rxjs/operators';
 
-import { User, UsersService, Water, WatersService } from '../../../src-gen/gnuboat-mapservice';
-import { AuthenticationService } from '../services';
+import { User, UsersService, Water, WatersService, Device, DevicesService } from '../../../src-gen/gnuboat-mapservice';
+import { AuthenticationService, AlertService } from '../services';
 
 @Component({ templateUrl: 'user.component.html' })
@@ -12,9 +12,12 @@
     apiKeys: string[] = [];
     waters: Water[] = [];
+    devices: Device[] = [];
 
     constructor(
         private authenticationService: AuthenticationService,
         private usersService: UsersService,
-        private watersService: WatersService
+        private watersService: WatersService,
+        private devicesService: DevicesService,
+        private alertService: AlertService
     ) {
         this.currentUserSubscription = this.authenticationService.currentUser.subscribe(user => {
@@ -26,4 +29,7 @@
             this.watersService.watersGet(undefined, user.username).pipe(first()).subscribe(waters => {
               this.waters = waters
+            });
+            this.devicesService.devicesGet().pipe(first()).subscribe(devices => {
+              this.devices = devices
             });
         });
@@ -39,7 +45,19 @@
     }
 
+     deviceDelete(device: Device) {
+        this.devicesService.devicesDeviceDelete(device.deviceId).pipe(first()).subscribe(devices => {
+          this.devices = devices
+        },
+        error => {
+          this.alertService.error(error);
+        });
+    }
+
     apiKeyDelete(apiKey: string) {
         this.usersService.usersApiKeyDelete(apiKey).pipe(first()).subscribe(keys => {
           this.apiKeys = keys
+        },
+        error => {
+          this.alertService.error(error);
         });
     }
@@ -48,4 +66,7 @@
       this.usersService.usersApiKeyCreate().pipe(first()).subscribe(keys => {
         this.apiKeys = keys
+      },
+      error => {
+        this.alertService.error(error);
       });
     }
Index: src/mapservice-webclient/src/app/water/gauges.component.html
===================================================================
--- src/mapservice-webclient/src/app/water/gauges.component.html	(revision ca1bb14c598c4285a7b235c0eea31e69aa079352)
+++ src/mapservice-webclient/src/app/water/gauges.component.html	(revision 955f4b45cf7b9fdda79e9bf1cdca1b828cd9cc12)
@@ -15,5 +15,7 @@
         <td>{{decimalDegreesToDegreesMinutesSeconds(gauge.location[1], Coordinate.Latitude)}}</td>
         <td>{{decimalDegreesToDegreesMinutesSeconds(gauge.location[0], Coordinate.Longitude)}}</td>
-        <td><a *ngIf="user && gauge.manager==currentuser.username" class="pure-button" [routerLink]="['/water', water.waterId]">Edit</a></td>
+        <td>
+          <a *ngIf="currentUser" class="pure-button" [routerLink]="['/water', water.waterId]">Edit</a>
+        </td>
       </tr>
     </ng-container>
