mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
Fix pressure updating
This commit is contained in:
@@ -19,10 +19,12 @@ export class PressureTrendComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
this.update();
|
||||
|
||||
setInterval(this.update, 60000);
|
||||
setInterval(() => this.update(), 60000);
|
||||
}
|
||||
|
||||
async update() {
|
||||
this.pressureDifference = null;
|
||||
|
||||
const end: moment.Moment = moment();
|
||||
const start: moment.Moment = moment(end).subtract(3, 'hours');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user