{"id":40198348,"url":"https://github.com/thatzok/komsi-lib","last_synced_at":"2026-03-01T04:10:26.544Z","repository":{"id":333406647,"uuid":"1137160896","full_name":"thatzok/komsi-lib","owner":"thatzok","description":"Rust library for the KOMSI protocol, primarily used for vehicle telemetry (speed, lamps, etc.) in simulators.","archived":false,"fork":false,"pushed_at":"2026-01-19T10:13:01.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-24T00:11:49.375Z","etag":null,"topics":["komsi","omsi2","rust","rust-lang","simulator-api","thebus"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/thatzok.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-19T02:06:30.000Z","updated_at":"2026-01-19T16:50:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thatzok/komsi-lib","commit_stats":null,"previous_names":["thatzok/komsi-lib"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/thatzok/komsi-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatzok%2Fkomsi-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatzok%2Fkomsi-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatzok%2Fkomsi-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatzok%2Fkomsi-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thatzok","download_url":"https://codeload.github.com/thatzok/komsi-lib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatzok%2Fkomsi-lib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29960236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"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":["komsi","omsi2","rust","rust-lang","simulator-api","thebus"],"created_at":"2026-01-19T20:07:08.930Z","updated_at":"2026-03-01T04:10:26.536Z","avatar_url":"https://github.com/thatzok.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# komsi\n\n[\u003cimg alt=\"github\" src=\"https://img.shields.io/badge/github-thatzok/komsi--lib-8da0cb?style=for-the-badge\u0026labelColor=555555\u0026logo=github\" height=\"20\"\u003e](https://github.com/thatzok/komsi-lib)\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/komsi.svg?style=for-the-badge\u0026color=fc8d62\u0026logo=rust\" height=\"20\"\u003e](https://crates.io/crates/komsi)\n[![Build](https://github.com/thatzok/komsi-lib/actions/workflows/build.yml/badge.svg)](https://github.com/thatzok/komsi-lib/actions/workflows/build.yml)\n![maintenance-status](https://img.shields.io/badge/maintenance-actively--developed-brightgreen.svg)\n\nThis Rust crate is a library for the KOMSI protocol, primarily used for vehicle telemetry (speed, lamps, etc.) in\nsimulators (e.g., \"The Bus\", \"OMSI 2\") using the [KOMSI protocol](https://github.com/thatzok/Komsi-Protocol).\n\n## Features\n\n- **KOMSI Protocol Implementation:** Support for various [KOMSI protocol](https://github.com/thatzok/Komsi-Protocol)\n  commands like Ignition, Engine, Speed, RPM, etc.\n- **Vehicle State Tracking:** Easily manage and track the state of a vehicle.\n\n## Installation\n\nAdd `komsi` to your `Cargo.toml`:\n\n```bash\ncargo add komsi\n```\n\nOr manually add it to your `Cargo.toml`:\n\n```toml\n[dependencies]\nkomsi = \"0.5\" # Replace with the latest version\n```\n\n## Usage Example\n\n```rust\nuse komsi::vehicle::{VehicleState, VehicleLogger};\n\nstruct MyLogger;\nimpl VehicleLogger for MyLogger {\n    fn log(\u0026self, msg: String) {\n        println!(\"LOG: {}\", msg);\n    }\n}\n\nfn main() {\n    let old_state = VehicleState::new();\n    let mut new_state = old_state.clone();\n\n    new_state.ignition = 1;\n    new_state.speed = 50;\n\n    let logger = MyLogger;\n    let commands = old_state.compare(\u0026new_state, false, Some(\u0026logger));\n\n    // 'commands' now contains the byte buffer to be sent via KOMSI\n    println!(\"Generated {} bytes of commands\", commands.len());\n}\n```\n\n## Documentation\n\nFor detailed API documentation, run:\n\n```bash\ncargo doc --open\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatzok%2Fkomsi-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthatzok%2Fkomsi-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatzok%2Fkomsi-lib/lists"}