javierojan/ocpp-virtual-charger ? reverse-engineered prompt
Reverse engineered prompt
Build me a browser based and Node.js OCPP 1.6J virtual charger that behaves like a real charging point when it talks to a central system.
I want to be able to connect it to any CSMS, tap start and stop locally, and watch the OCPP messages and charging states change in real time. It should support several connectors, smart charging limits, remote start and stop, heartbeat and status updates, meter values, unlock connector, reset, and configuration changes. If the network drops, it should keep charging offline, queue the messages, then send them later in the right order with the original timestamps.
It would also be great if it could simulate a whole charging site behind one grid connection, with load balancing, cars arriving and leaving, battery state, phase aware power, voltage drop, and a simple garage view drawn to scale. If it helps, check the current OCPP docs online as needed.
Are you gonna build this?
make sure you review the code using coderabbit