{"id":50305116,"url":"https://github.com/halldorstefans/v2c","last_synced_at":"2026-05-28T15:31:41.815Z","repository":{"id":287418995,"uuid":"964659783","full_name":"halldorstefans/v2c","owner":"halldorstefans","description":"Real-time vehicle data control and monitoring to demonstrate vehicle-to-cloud connection","archived":false,"fork":false,"pushed_at":"2026-05-23T12:12:55.000Z","size":24261,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-23T14:10:45.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/halldorstefans.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-04-11T15:16:09.000Z","updated_at":"2026-05-23T12:12:58.000Z","dependencies_parsed_at":"2025-04-11T17:05:14.476Z","dependency_job_id":null,"html_url":"https://github.com/halldorstefans/v2c","commit_stats":null,"previous_names":["halldorstefans/autosoa","halldorstefans/v2c"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/halldorstefans/v2c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halldorstefans%2Fv2c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halldorstefans%2Fv2c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halldorstefans%2Fv2c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halldorstefans%2Fv2c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halldorstefans","download_url":"https://codeload.github.com/halldorstefans/v2c/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halldorstefans%2Fv2c/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33615489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"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":[],"created_at":"2026-05-28T15:31:38.557Z","updated_at":"2026-05-28T15:31:41.808Z","avatar_url":"https://github.com/halldorstefans.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vehicle-to-Cloud Service Mock\n\nA project to learn and understand modern Service-Oriented Architecture (SOA) implementation for vehicle systems, featuring multiple interconnected services for vehicle data management and control.\n\n\u003cimg width=\"1715\" height=\"935\" alt=\"sdv_cloud_dash\" src=\"https://github.com/user-attachments/assets/4ae99ef5-a0bb-4ddb-a796-7930252c1aa3\" /\u003e\n\n## System Overview\n\nThis project implements a modern automotive software architecture with the following components:\n\n1. **Zonal Controller** (`zonal_controller/`)\n   - C++17-based gRPC service\n   - Handles OBD (On-Board Diagnostics) functionality\n   - Controls vehicle lighting systems\n   - Implements real-time fuel level monitoring\n   - Manages headlight state control\n\n2. **Signal Service** (`signalservice/`)\n   - Go-based gRPC gateway service\n   - Provides unified access to vehicle signals\n   - Supports both OBD and lighting system signals\n   - Configurable gateway with environment variables\n   - Implements middleware for request handling\n\n3. **Vehicle Dashboard** (`dashboard/`)\n   - Flask-based web interface\n   - Real-time vehicle data monitoring\n   - Vehicle feature control\n   - Server-Sent Events (SSE) for live updates\n   - RESTful API endpoints\n\n## Architecture\n\nThe system follows a service-oriented architecture with clear separation of concerns:\n\n```\n├── zonal_controller/     # Low-level vehicle control\n├── signalservice/        # Signal gateway and management\n└── dashboard/            # Web interface and monitoring\n```\n\n## Dependencies\n\n### For C++ Services (Zonal Controller)\n```bash\nsudo apt update\nsudo apt install -y build-essential cmake\nsudo apt install -y libgrpc++-dev libgrpc-dev\nsudo apt install -y protobuf-compiler protobuf-compiler-grpc libprotobuf-dev\n```\n\n### For Go Services (Signal Service)\n```bash\nsudo apt update\nsudo apt install golang-go\nsudo apt install -y protobuf-compiler\n\n# Required Go packages\ngo install google.golang.org/protobuf/cmd/protoc-gen-go@latest\ngo install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest\nexport PATH=\"$PATH:$(go env GOPATH)/bin\"\ngo get google.golang.org/grpc\n```\n\n### For Python Services (Dashboard)\n```bash\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n## Building and Running\n\n### 1. Build the Zonal Controller\n```bash\ncd zonal_controller\nrm -rf build\nmkdir build\ncd build\ncmake ..\nmake\n```\n\n### 2. Build the Signal Service\n```bash\ncd signalservice\ngo mod download\ngo build -o signalservice cmd/signalservice/main.go\n```\n\n### 3. Build the Dashboard\n```bash\ncd dashboard\npip install -r requirements.txt\n```\n\n## Running the System\n\n1. Start the Zonal Controller:\n```bash\ncd zonal_controller/build\n./zonal_controller\n```\n\n2. Start the Signal Service:\n```bash\ncd signalservice\n./signalservice\n```\n\n3. Start the Dashboard:\n```bash\ncd dashboard\npython3 app.py\n```\n\n## Configuration\n\nEach component can be configured through environment variables:\n\n- **Signal Service**:\n  - `OB_SERVER_ADDR`: OBD server address (default: \"localhost:50051\")\n  - `DEFAULT_VEHICLE`: Default vehicle identifier\n  - `GATEWAY_PORT`: Gateway service port (default: 8080)\n\n- **Dashboard**:\n  - `DEBUG`: Enable/disable debug mode\n  - `PORT`: Server port (default: 5000)\n  - `VEHICLE_GATEWAY_URL`: V2C gateway URL\n\n## Development Status\n\nThe system is currently in active development with the following features implemented:\n\n- Real-time vehicle data monitoring\n- Vehicle lighting control\n- OBD functionality\n- Web-based dashboard interface\n- gRPC-based service communication\n- Protocol Buffers for message serialization\n- Configuration management\n- Logging system\n- Security features\n\n## Potential Future Improvements\n\n- Comprehensive API documentation\n- Additional vehicle data points\n- Enhanced error handling and logging\n- User authentication and authorization\n- Historical data visualization\n- CI/CD pipeline configuration\n- Comprehensive testing suite\n- Metrics and monitoring\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalldorstefans%2Fv2c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalldorstefans%2Fv2c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalldorstefans%2Fv2c/lists"}