{"id":44332385,"url":"https://github.com/bringauto/virtual-fleet","last_synced_at":"2026-02-11T10:09:55.494Z","repository":{"id":245454735,"uuid":"816783700","full_name":"bringauto/virtual-fleet","owner":"bringauto","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-19T08:22:38.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-01T21:59:31.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/bringauto.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":"2024-06-18T11:55:06.000Z","updated_at":"2024-07-19T08:22:41.000Z","dependencies_parsed_at":"2024-07-17T15:21:25.989Z","dependency_job_id":null,"html_url":"https://github.com/bringauto/virtual-fleet","commit_stats":null,"previous_names":["bringauto/virtual-fleet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bringauto/virtual-fleet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bringauto%2Fvirtual-fleet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bringauto%2Fvirtual-fleet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bringauto%2Fvirtual-fleet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bringauto%2Fvirtual-fleet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bringauto","download_url":"https://codeload.github.com/bringauto/virtual-fleet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bringauto%2Fvirtual-fleet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29331744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-02-11T10:09:54.674Z","updated_at":"2026-02-11T10:09:55.490Z","avatar_url":"https://github.com/bringauto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Virtual fleet\n\nThe virtual fleet provides the ability to simulate the movement of multiple vehicles. The script will run one MQTT broker using VerneMQ and will launch a virtual vehicle, a module gateway, and an external server for each entry in the configuration JSON\n\n## Installation\n\n```bash\ngit clone https://github.com/bringauto/virtual-fleet.git\ncd virtual-fleet\npip install -r requirements.txt\n```\n\n## Command line arguments\n\n* `--config=\u003cstring\u003e` - path to the JSON configuration file. If not set, the default path `./config/virtual-fleet-config.json` is used.\n\n## Configuration\n\n### JSON Configuration of Virtual Fleet\n\nThe JSON configuration file should contain the following fields:\n\n* **`vernemq-docker-image`**: MQTT broker docker image name/address\n* **`vernemq-docker-tag`**: MQTT broker image tag\n* **`external-server-docker-image`**: External server docker image name/address\n* **`external-server-docker-tag`**: External server image tag\n* **`gateway-docker-image`**: Module gateway docker image name/address\n* **`gateway-docker-tag`**: Module gateway image tag\n* **`vehicle-docker-image`**: Virtual vehicle docker image name/address\n* **`vehicle-docker-tag`**: Virtual vehicle image tag\n* **`start-port`**: Starting port used for communication between virtual vehicles and their module gateway. The port will be iterated, so 8 virtual vehicles will use ports 42000 - 42007. If a port is already used by another program, it will skip it and try the next one.\n* **`stop-running-containers`**: If set to `true`, all running containers used by the virtual fleet will be stopped and removed. If set to `false`, the script will run alongside the already running containers, which may cause vehicles to exhibit undefined behavior. Default is `true`.\n* **`vehicles`**: Array of vehicles to create\n  * **`vehicles.name`**: Name of the vehicle. The name must be unique and adhere to the regular expression `^[a-z0-9_]*$`\n  * **`vehicles.company`**: Name of the company that runs the vehicle. The name must adhere to the regular expression `^[a-z0-9_]*$`\n\nExample JSON configuration: [config/virtual-fleet-config.json](config/virtual-fleet-config.json)\n\n### Configuration of Individual Components\n\n| Component         | Configuration Directory    | Repository Link                                                               |\n|-------------------|----------------------------|-------------------------------------------------------------------------------|\n| External Server   | `config/external-server`   | [External Server Repository](https://github.com/bringauto/external-server)    |\n| Module Gateway    | `config/module-gateway`    | [Module Gateway Repository](https://github.com/bringauto/module-gateway)      |\n| Virtual Vehicle   | `config/virtual-vehicle`   | [Virtual Vehicle Repository](https://github.com/bringauto/virtual-vehicle)    |\n| MQTT Broker       | `config/vernemq`           | [VerneMQ Repository](https://github.com/bringauto/vernemq)                    |\n\n## Usage\n\n```bash\npython3 VirtualFleetDocker.py --config=./config/virtual-fleet-config.json\n```\n\nDo not run multiple virtual fleets on the same machine. Since they will share the same MQTT broker, this can lead to conflicts in car names and operational issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbringauto%2Fvirtual-fleet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbringauto%2Fvirtual-fleet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbringauto%2Fvirtual-fleet/lists"}