- CitrineOS core extracted (CSMS OCPP 2.0.1) - OpenOCPP extracted (firmware OCPP 1.6J/2.0.1) - ShapeShifter library installed (pip install -e) - ShapeShifter specification extracted - EVerest extracted TODO updated with progress
27 lines
751 B
TypeScript
27 lines
751 B
TypeScript
// SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { EventGroup, loadBootstrapConfig } from '@citrineos/base';
|
|
import { CitrineOSServer } from './citrineOSServer.js';
|
|
import { getSystemConfig } from './config/index.js';
|
|
|
|
async function main() {
|
|
const bootstrapConfig = loadBootstrapConfig();
|
|
const config = await getSystemConfig(bootstrapConfig);
|
|
const server = new CitrineOSServer(
|
|
process.env.APP_NAME?.toLowerCase() as EventGroup,
|
|
bootstrapConfig,
|
|
config,
|
|
);
|
|
server.run().catch((error: any) => {
|
|
console.error(error);
|
|
process.exit(1);
|
|
});
|
|
}
|
|
|
|
main().catch((error) => {
|
|
console.error('Failed to initialize server:', error);
|
|
process.exit(1);
|
|
});
|