ocppsim
v1.0.1
Published
A simple OCPP 1.6 charge point simulator built with TypeScript and WebSocket.
Readme
OCPP Simulator (Node.js)
A simple OCPP 1.6 charge point simulator built with TypeScript and WebSocket.
Requirements
- Node.js >= 18
- pnpm (recommended) or npm
Install
pnpm installBuild
pnpm run buildBuild output is generated at ./_dist/simulator.mjs.
Run
Local script
node ./_dist/simulator.mjs wss://host:portBinary (after install)
If this package is installed globally or linked, use:
ocpp-sim wss://host:portUsage
Usage: ocpp-sim [options] <wss://host:port>
Options:
-h, --help Show this help message
-c, --connectors <number> Set total connectors (default: 1)
-t, --temperature Include Temperature in MeterValues
--soc Include SoC in MeterValues
-s, --serial <value> Set charge point serial number (default: SIMULATED-MACHINE-01)Notes
- The simulator uses ESM (
"type": "module"). - The WebSocket URL path is forced to the serial number.
