import { EventEmitter } from 'node:events';
import { dirname, extname, join } from 'node:path';
import { EventEmitter } from 'node:events';
import { dirname, extname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { isMainThread } from 'node:worker_threads';
import chalk from 'chalk';
import { availableParallelism } from 'poolifier';
import { fileURLToPath } from 'node:url';
import { isMainThread } from 'node:worker_threads';
import chalk from 'chalk';
import { availableParallelism } from 'poolifier';
import type { AbstractUIServer } from './ui-server/AbstractUIServer';
import { UIServerFactory } from './ui-server/UIServerFactory';
import { version } from '../../package.json' assert { type: 'json' };
import type { AbstractUIServer } from './ui-server/AbstractUIServer';
import { UIServerFactory } from './ui-server/UIServerFactory';
import { version } from '../../package.json' assert { type: 'json' };
missingChargingStationsConfiguration = 1,
noChargingStationTemplates = 2,
missingChargingStationsConfiguration = 1,
noChargingStationTemplates = 2,
this.uiServer.buildProtocolRequest(
generateUUID(),
ProcedureName.STOP_CHARGING_STATION,
this.uiServer.buildProtocolRequest(
generateUUID(),
ProcedureName.STOP_CHARGING_STATION,
- }' received with data: ${JSON.stringify(msg.data, null, 2)}`,
+ }' received with data: ${JSON.stringify(msg.data, undefined, 2)}`,
}
if (this.numberOfChargingStations === 0) {
console.warn(
chalk.yellow('No charging station template enabled in configuration, exiting'),
);
}
if (this.numberOfChargingStations === 0) {
console.warn(
chalk.yellow('No charging station template enabled in configuration, exiting'),
);