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