log
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
|||||||
TidalGetCurrent,
|
TidalGetCurrent,
|
||||||
type ServiceResult,
|
type ServiceResult,
|
||||||
} from "@dpu/shared";
|
} from "@dpu/shared";
|
||||||
import { logWarning } from "@dpu/shared/dist/logger.js";
|
import { logInfo, logWarning } from "@dpu/shared/dist/logger.js";
|
||||||
import { HomeAssistantService } from "../homeassistant/service";
|
import { HomeAssistantService } from "../homeassistant/service";
|
||||||
import { TidalService } from "../tidal/service";
|
import { TidalService } from "../tidal/service";
|
||||||
|
|
||||||
@@ -137,12 +137,15 @@ export class HomepageService extends BaseService<null> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
startPolling(): void {
|
startPolling(): void {
|
||||||
|
logInfo("Polling started");
|
||||||
this.pollingInterval = setInterval(() => {
|
this.pollingInterval = setInterval(() => {
|
||||||
|
logInfo("Polling now");
|
||||||
this.getFullInformation();
|
this.getFullInformation();
|
||||||
}, 30000);
|
}, 30000);
|
||||||
}
|
}
|
||||||
|
|
||||||
stopPolling(): void {
|
stopPolling(): void {
|
||||||
|
logInfo("Polling ended");
|
||||||
if (this.pollingInterval) {
|
if (this.pollingInterval) {
|
||||||
clearInterval(this.pollingInterval);
|
clearInterval(this.pollingInterval);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user