+++ /dev/null
-[submodule "src/assets/configs-aws"]
- path = src/assets/configs-aws
- url = ../../E-Mobility/ev-aws.git
- branch = master
-[submodule "src/assets/configs-scp"]
- path = src/assets/configs-scp
- url = ../../E-Mobility/ev-scp-config.git
- branch = master-qa
+++ /dev/null
-Subproject commit 2dc38e36a569dc1266e48d85e7e87ed0d3f18528
+++ /dev/null
-Subproject commit cf40aecc4b7c099f6b5b8bc6690f975a6db006b6
logger.debug(this.logPrefix() + ' Template file ' + this.stationTemplateFile + ' have changed, reload');
// Initialize
this.initialize();
- // Stop the ATG
+ // Restart the ATG
if (!this.stationInfo.AutomaticTransactionGenerator.enable &&
this.automaticTransactionGeneration) {
await this.automaticTransactionGeneration.stop();
}
- // Start the ATG
this.startAutomaticTransactionGenerator();
+ if (this.getEnableStatistics()) {
+ this.performanceStatistics.restart();
+ } else {
+ this.performanceStatistics.stop();
+ }
// FIXME?: restart heartbeat and WebSocket ping when their interval values have changed
} catch (error) {
logger.error(this.logPrefix() + ' Charging station template file monitoring error: %j', error);
clearInterval(this.displayInterval);
}
performance.clearMarks();
- this.performanceObserver.disconnect();
+ this.performanceObserver?.disconnect();
+ }
+
+ public restart(): void {
+ this.stop();
+ this.start();
}
private initializePerformanceObserver(): void {
this.performanceObserver = new PerformanceObserver((list) => {
- this.logPerformanceEntry(list.getEntries()[0]);
+ this.addPerformanceEntry(list.getEntries()[0]);
});
this.performanceObserver.observe({ entryTypes: ['measure'] });
}
- private logPerformanceEntry(entry: PerformanceEntry): void {
+ private addPerformanceEntry(entry: PerformanceEntry): void {
this.addPerformanceStatistic(entry.name, entry.duration);
logger.debug(`${this.logPrefix()} '${entry.name}' performance entry: %j`, entry);
}
return value;
}
// Check
- if (typeof value === 'string') {
+ if (Utils.isString(value)) {
// Create Object
changedValue = parseInt(value);
}
return 0;
}
// Check
- if (typeof value === 'string') {
+ if (Utils.isString(value)) {
// Create Object
changedValue = parseFloat(value);
}