{"id":30755186,"url":"https://github.com/ChargePi/ocmf-go","last_synced_at":"2025-09-04T10:04:33.313Z","repository":{"id":215445696,"uuid":"738942453","full_name":"ChargePi/ocmf-go","owner":"ChargePi","description":"Go SDK for Open Charge Metering Format","archived":false,"fork":false,"pushed_at":"2025-04-26T21:54:37.000Z","size":58,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-26T22:28:27.641Z","etag":null,"topics":["eichrecht","emobility","ev-charging","ocmf"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChargePi.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-04T12:05:33.000Z","updated_at":"2025-04-26T21:54:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"6dc4a018-20ee-4661-b117-048129af23e0","html_url":"https://github.com/ChargePi/ocmf-go","commit_stats":null,"previous_names":["chargepi/ocmf-go"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ChargePi/ocmf-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChargePi%2Focmf-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChargePi%2Focmf-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChargePi%2Focmf-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChargePi%2Focmf-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChargePi","download_url":"https://codeload.github.com/ChargePi/ocmf-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChargePi%2Focmf-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273588928,"owners_count":25132858,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["eichrecht","emobility","ev-charging","ocmf"],"created_at":"2025-09-04T10:01:33.458Z","updated_at":"2025-09-04T10:04:33.302Z","avatar_url":"https://github.com/ChargePi.png","language":"Go","funding_links":[],"categories":["Tools and Resources"],"sub_categories":["OCMF"],"readme":"# OCMF-go\n\n![coverage](https://raw.githubusercontent.com/ChargePi/ocmf-go/badges/.badges/main/coverage.svg)\n\nOCMF-go is an implementation of the Open Charge Metering Format (OCMF) in Go. It provides a simple library for\ngenerating and parsing OCMF messages. The provided message builder generates OCMF-compatible messages and signs the data\nwith the provided private key, desired algorithm and encoding, so you don't have to.\n\n## Installation\n\n```shell\ngo get github.com/ChargePi/ocmf-go\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\tocmf_go \"github.com/ChargePi/ocmf-go\"\n\t\"github.com/lorenzodonini/ocpp-go/ocpp1.6/types\"\n)\n\nfunc main() {\n\t// Generate a new message builder\n\tbuilder := ocmf_go.NewBuilder()\n\n\t// Set the signature algorithm\n\tbuilder.SetSignatureAlgorithm(ocmf_go.SignatureAlgorithmECDSAsecp256r1Sha256)\n\n\t// Set the signature encoding\n\tbuilder.SetSignatureEncoding(ocmf_go.SignatureEncodingBase64)\n\n\t// ... set the desired fields\n\tmessage, err := builder.Build()\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n\n\t// Create a MeterValue message with the generated message as value \n\tmeterValueExample := types.MeterValue{\n\t\tSampledValue: []types.SampledValue{\n\t\t\t{\n\t\t\t\tValue:  message,\n\t\t\t\tFormat: types.ValueFormatSignedData,\n\t\t\t},\n\t\t},\n\t}\n\n\t// Send the message via OCPP 1.5/1.6.\n}\n\n```\n\n## Contributing\n\nContributions are welcome! Please check out the [contributing guide](/docs/contributing/contributing.md) for more\ninformation.\n\n## License\n\nOCMF-go is licensed under the [MIT License](LICENSE.txt).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChargePi%2Focmf-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FChargePi%2Focmf-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChargePi%2Focmf-go/lists"}