diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 0c72f16..4e3b994 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -25,6 +25,7 @@ import * as firebase from 'firebase/app'; import {ServiceWorkerModule} from '@angular/service-worker'; import {LineChartModule, NgxChartsModule} from '@swimlane/ngx-charts'; import {RoundPipe} from './round.pipe'; +import { WidgetComponent } from './battery/widget/widget.component'; export const firebaseApp = firebase.initializeApp(environment.firebase); @@ -36,7 +37,8 @@ export const firebaseApp = firebase.initializeApp(environment.firebase); WeatherComponent, SecurityComponent, LoginComponent, - RoundPipe + RoundPipe, + WidgetComponent ], imports: [ AppRoutingModule, diff --git a/src/app/battery/battery.component.html b/src/app/battery/battery.component.html index a956ac2..99a2fec 100644 --- a/src/app/battery/battery.component.html +++ b/src/app/battery/battery.component.html @@ -1,4 +1,4 @@ -
+

Powerwall: {{batteryService.charge | round}} V

@@ -17,7 +17,7 @@
{{battery.name}}
- +
diff --git a/src/app/dashboard/dashboard.component.html b/src/app/dashboard/dashboard.component.html index 14742dc..0fb098c 100644 --- a/src/app/dashboard/dashboard.component.html +++ b/src/app/dashboard/dashboard.component.html @@ -1 +1,7 @@ -

Coming Soon

+
+ + + + + +
diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts index 91ad974..af51c7f 100644 --- a/src/app/dashboard/dashboard.component.ts +++ b/src/app/dashboard/dashboard.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit } from '@angular/core'; +import {AppComponent} from '../app.component'; @Component({ selector: 'app-dashboard', @@ -6,7 +7,7 @@ import { Component, OnInit } from '@angular/core'; }) export class DashboardComponent implements OnInit { - constructor() { } + constructor(private app: AppComponent) { } ngOnInit() { }