{"id":13634628,"url":"https://github.com/vasyas/charger-simulator","last_synced_at":"2025-04-05T21:06:06.807Z","repository":{"id":39668163,"uuid":"267290562","full_name":"vasyas/charger-simulator","owner":"vasyas","description":"OCPP charger (charging station) simulator","archived":false,"fork":false,"pushed_at":"2025-01-02T09:06:03.000Z","size":57,"stargazers_count":63,"open_issues_count":3,"forks_count":17,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T20:02:54.076Z","etag":null,"topics":["charger","charging","emulator","ocpp","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vasyas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-27T10:34:37.000Z","updated_at":"2025-03-12T14:49:24.000Z","dependencies_parsed_at":"2023-12-26T10:23:05.938Z","dependency_job_id":"7a80f315-10f2-440d-8b5a-7c84febb69e8","html_url":"https://github.com/vasyas/charger-simulator","commit_stats":{"total_commits":33,"total_committers":5,"mean_commits":6.6,"dds":"0.12121212121212122","last_synced_commit":"b876a34b7508f3caa7c1715df12a548dd4c3f1fa"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasyas%2Fcharger-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasyas%2Fcharger-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasyas%2Fcharger-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasyas%2Fcharger-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vasyas","download_url":"https://codeload.github.com/vasyas/charger-simulator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399871,"owners_count":20932876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["charger","charging","emulator","ocpp","typescript"],"created_at":"2024-08-02T00:00:27.819Z","updated_at":"2025-04-05T21:06:06.785Z","avatar_url":"https://github.com/vasyas.png","language":"TypeScript","funding_links":[],"categories":["Tools and Resources"],"sub_categories":["OCPP"],"readme":"EV charger simulator. Supports OCPP/J version 1.6 and OCPP/SOAP version 1.5. \nCan be used as CLI program, or as library in any JS environment.\n\n# CLI usage\n\n## Getting started\n\nInstall in project\n```\nyarn add vasyas/charger-simulator\n```\n\nor globally\n```\nyarn global add vasyas/charger-simulator\n```\n\nThen launch it with command\n```\ncharger-simulator \u003cURL to central system\u003e\n```\n\nYou can also run from a cloned git repository\n```\nyarn start \u003cURL to central system\u003e\n```\n\nOn successfull launch, you will get this message\n\n```\ndebug] OCPP connected\n[info] Connected to Central System\n[info] Supported keys:\n    Ctrl+C:   quit\n\n    Control connector 1\n    ---\n    a:        send Available status\n    p:        send Preparing status\n    c:        send Charging status\n    f:        send Finishing status\n```\n\nYou can press keys to send connector status updates to central server.\n\n## CLI options\n```\ncharger-simulator\n\n  Start OCPP charging station simulator, connect simulator to Central System\n  server.\n\nOptions\n\n  -s, --csURL URL                 URL of the Central System server to connect to, ws://server.name/path.\n                                  This is also a default option.\n  -i, --chargerId ChargerId       OCPP ID to be used for simulating charger.\n                                  Default is 'test'.\n  -c, --connectorId ConnectorId   ID of the connector to send status when pressing keys.\n                                  Defaults to 1.\n  -t, --idTag idTag               ID Tag to start transaction.\n                                  Defaults to 123456.\n```\n\n## Default behavior\n\nBy default simulator implements following OCPP operations.\n\n*RemoteStartTransaction*. Will successfully start new transaction. Call RemoteStartTransaction by server\nwill result in StartTransaction and multiple MeterValues to be sent to central system.\n\n*RemoteStopTransaction*. Will stop running transaction.\n\n*GetConfiguration*. Return charge point configuration.\n\n*ChangeConfiguration*. Change charge point configuration.\n\n*ChangeAvailability, ClearCache, ReserveNow, CancelReservation, Reset*. Return 'Accepted', but do nothing.\n\nAll other methods are not implemented.\n\n# Library usage\n\n## Getting started\nTBD  \n\n## API\nTBD  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasyas%2Fcharger-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvasyas%2Fcharger-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasyas%2Fcharger-simulator/lists"}