
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
charger-simulator
Advanced tools
EV charger simulator. Supports OCPP/J version 1.6 and OCPP/SOAP version 1.5. Can be used as CLI program, or as library in any JS environment.
Install in project
yarn add vasyas/charger-simulator
or globally
yarn global add vasyas/charger-simulator
Then launch it with command
charger-simulator <URL to central system>
You can also run from a cloned git repository
yarn start <URL to central system>
On successfull launch, you will get this message
debug] OCPP connected
[info] Connected to Central System
[info] Supported keys:
Ctrl+C: quit
Control connector 1
---
a: send Available status
p: send Preparing status
c: send Charging status
f: send Finishing status
You can press keys to send connector status updates to central server.
charger-simulator
Start OCPP charging station simulator, connect simulator to Central System
server.
Options
-s, --csURL URL URL of the Central System server to connect to, ws://server.name/path.
This is also a default option.
-i, --chargerId ChargerId OCPP ID to be used for simulating charger.
Default is 'test'.
-c, --connectorId ConnectorId ID of the connector to send status when pressing keys.
Defaults to 1.
-t, --idTag idTag ID Tag to start transaction.
Defaults to 123456.
By default simulator implements following OCPP operations.
RemoteStartTransaction. Will successfully start new transaction. Call RemoteStartTransaction by server will result in StartTransaction and multiple MeterValues to be sent to central system.
RemoteStopTransaction. Will stop running transaction.
GetConfiguration. Return charge point configuration. ChangeConfiguration. Change charge point configuration.
ReserveNow, CancelReservation, Reset. Return 'Accepted', but do nothing.
All other methods are not implemented.
TBD
TBD
FAQs
## Getting started
The npm package charger-simulator receives a total of 7 weekly downloads. As such, charger-simulator popularity was classified as not popular.
We found that charger-simulator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.