{"id":13634618,"url":"https://github.com/shellrechargesolutionseu/ocpp-charger","last_synced_at":"2025-12-27T01:35:41.386Z","repository":{"id":141004346,"uuid":"6711126","full_name":"ShellRechargeSolutionsEU/ocpp-charger","owner":"ShellRechargeSolutionsEU","description":"Simple ocpp charger simulator","archived":false,"fork":false,"pushed_at":"2021-08-17T13:49:10.000Z","size":145,"stargazers_count":35,"open_issues_count":1,"forks_count":17,"subscribers_count":31,"default_branch":"master","last_synced_at":"2024-11-09T04:35:43.036Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShellRechargeSolutionsEU.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}},"created_at":"2012-11-15T20:26:54.000Z","updated_at":"2024-08-01T13:27:11.000Z","dependencies_parsed_at":"2023-09-23T10:41:44.702Z","dependency_job_id":"bd506f3f-bd2e-44ac-9c73-f701108afd5a","html_url":"https://github.com/ShellRechargeSolutionsEU/ocpp-charger","commit_stats":{"total_commits":97,"total_committers":10,"mean_commits":9.7,"dds":"0.41237113402061853","last_synced_commit":"5a07243c1a6c584e0de9993f8afbfe6a34204ccc"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShellRechargeSolutionsEU%2Focpp-charger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShellRechargeSolutionsEU%2Focpp-charger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShellRechargeSolutionsEU%2Focpp-charger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShellRechargeSolutionsEU%2Focpp-charger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShellRechargeSolutionsEU","download_url":"https://codeload.github.com/ShellRechargeSolutionsEU/ocpp-charger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249565246,"owners_count":21292427,"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":[],"created_at":"2024-08-02T00:00:27.565Z","updated_at":"2025-12-27T01:35:41.337Z","avatar_url":"https://github.com/ShellRechargeSolutionsEU.png","language":"Scala","funding_links":[],"categories":["OCPP"],"sub_categories":["OCPP Simulators"],"readme":"# OCPP charger simulator [![Build Status](https://secure.travis-ci.org/thenewmotion/ocpp-charger.png)](http://travis-ci.org/thenewmotion/ocpp-charger)\n\nActor based representation of ocpp chargers.\nCan be run standalone against Central System as ordinary charger.\n\nIt now also supports OCPP-J (OCPP over WebSocket with JSON) but it does not\nsupport receiving incoming requests this way, and does a blocking wait on the\nresponses from the central system. This happens because we implemented the\nOCPP-SOAP API on top of the JSON API. If the package were refactored to use the\nJSON API natively it could be more functional and performant.\n\n\n## Setup\n\n1. Compile and publish the library locally\n\n2. Add dependency to your pom.xml:\n    ```xml\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.thenewmotion.chargenetwork\u003c/groupId\u003e\n        \u003cartifactId\u003eocpp-charger_2.10\u003c/artifactId\u003e\n        \u003cversion\u003e2.6.1\u003c/version\u003e\n    \u003c/dependency\u003e\n    ```\n\n## Start the charger\n\nCompile \u0026 run with `sbt run`\n\n### Options\n\nSee the source file src/main/scala/com/thenewmotion/chargenetwork/ocpp/charger/ChargerApp.scala for the different options.\n\nOptions can be passed using the a `-Dexec.args=\"...\"` option to Maven, like this:\n\n`sbt \"run --connection-type soap http://localhost:8080/ocpp/\"`\n\nor\n\n`sbt \"run --connection-type json http://localhost:8080/ocppws/\"` \n\nwith basic authentication (ocpp-json only):\n\n`sbt \"run --id 01234567 --auth-password abcdef1234abcdef1234abcdef1234abcdef1234 ws://localhost:8017/ocppws/\"`\n\nwith basic authentication and a specific ssl certificate (ocpp-json only):\n\n`sbt \"run --id 01234567 --auth-password abcdef1234abcdef1234abcdef1234abcdef1234 --keystore-file ./trust.jks --keystore-password my-beautiful-password wss://test-cn-node-internet.thenewmotion.com/ocppws/\"`\n\nThe password is given in a hex-encoded form. If you have a plain text password, you can quickly encode it in hex as follows:\n\n```\n$ scala                                                                                                                                                                                                                         [13:19:11]\nWelcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_51).\nType in expressions for evaluation. Or try :help.\n\nscala\u003e \"mypasswordof20chars!\".getBytes(\"US-ASCII\").map(\"%02x\".format(_)).mkString\nres1: String = 6d7970617373776f72646f663230636861727321\n\n```\n\n## License\n\n© 2012 - 2017 The New Motion B.V. Licensed under the terms of the [GPL version 3](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellrechargesolutionseu%2Focpp-charger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshellrechargesolutionseu%2Focpp-charger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellrechargesolutionseu%2Focpp-charger/lists"}