{"id":28400348,"url":"https://github.com/blauret/pyg5","last_synced_at":"2026-03-11T00:02:59.438Z","repository":{"id":39885876,"uuid":"400452973","full_name":"blauret/pyG5","owner":"blauret","description":"This repository Garmin G5 AI + HSI in dual stack mode. This model interfaces with X-Plane flight simulator and intends to run on a 7 inches Raspberry Pi display in vertical mode","archived":false,"fork":false,"pushed_at":"2024-06-13T07:12:32.000Z","size":4467,"stargazers_count":26,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-28T09:37:12.333Z","etag":null,"topics":["g5","garmin","python","raspberry-pi","x-plane"],"latest_commit_sha":null,"homepage":"","language":"Python","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/blauret.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","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":"2021-08-27T09:12:30.000Z","updated_at":"2025-02-24T08:20:14.000Z","dependencies_parsed_at":"2023-01-23T10:01:14.656Z","dependency_job_id":"c10e4842-a702-44a8-b550-bdcf0c9e033d","html_url":"https://github.com/blauret/pyG5","commit_stats":{"total_commits":61,"total_committers":5,"mean_commits":12.2,"dds":0.5901639344262295,"last_synced_commit":"11559a8a8c3cdfdd425028fa16f930cece12a154"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/blauret/pyG5","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blauret%2FpyG5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blauret%2FpyG5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blauret%2FpyG5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blauret%2FpyG5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blauret","download_url":"https://codeload.github.com/blauret/pyG5/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blauret%2FpyG5/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269372642,"owners_count":24406273,"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-08-08T02:00:09.200Z","response_time":72,"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":["g5","garmin","python","raspberry-pi","x-plane"],"created_at":"2025-06-01T10:07:44.905Z","updated_at":"2026-03-11T00:02:59.419Z","avatar_url":"https://github.com/blauret.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyG5\n\n![CI](https://github.com/blauret/pyg5/workflows/CI/badge.svg?branch=main)\n\n## Description\n\nThis project aims at development a Garmin G5 view targeting a Raspberry Pi 7 inches display (640x480) . The intent is to provide a G5 Attitude indicator + G5 Horizontal Situation Indicator stacked on the display in vertical mode. The `pyG5` connects to X-Plane flight simulator.\n\nIt does not require any plugin and use the standard DREF UDP interface from X-Plane. It should not require any configuration. Start it and\nit will connect to X-Plane and fetch the required data.\n\nThis is currently developed on macOS with python 3.9 and testing on a Raspberry Pi 4 with Raspberry Pi OS and an official 7 inches display in vertical mode.\n\nBelow is a view of the user interface.\n\n![demoView](https://raw.githubusercontent.com/blauret/pyG5/main/assets/demoView.png?raw=true)\n\nAnd you can see it in its simulation environment\n\n![flightSimView](https://raw.githubusercontent.com/blauret/pyG5/main/assets/23-12-13%2019-58-23%201732.jpg)\n\n## Second Display\n\nIt's also possible to run pyG5 with a secondary window. In my sim setup this contains all the missing items to fly a C172 without display. In thery you could do a complete IFR flight switcing of displays right after take-off down to minimums. \n\nThe secondary window contains:\n- Transpoder control and status, works with a touch screen to input code\n- Fuel selector status\n- Carb heat and Fuel pump status\n- Advisory Panel\n- Flap indicator\n- Trim indicator\n\nThe view:\n\n![secondWidget](https://raw.githubusercontent.com/blauret/pyG5/main/assets/Screenshot%202024-06-13%20at%2009.10.52.png)\n\nWith the XPDR expanded:\n\n![secondWidget](https://raw.githubusercontent.com/blauret/pyG5/main/assets/Screenshot%202024-06-13%20at%2009.10.54.png)\n\n\n\n## Maturity\n\nIt's currently in pretty early phase. It's functional and should be easy to install but might suffer from issues here and  there.\n\nNot all the features of the G5 are implemented. It's currently missing:\n\n* Glide scope\n* lateral guidance on the AI\n* Distance to next way point on the Horizontal Situation Indicator.\n\n## Installation\n\n`pyG5` depends on `pySide6`. Due to failure to install `pySide6` from pip on Raspberry Pi OS it is not\na dependency of the `pyG5`. As a result it needs to be installed manually.\n\n```console\n        \u003e sudo pip3 install pyside6\n```\n\nThe install `PyG5`:\n\n```console\n        \u003e sudo pip3 install pyG5\n```\n\n## Running\n\n```console\n        \u003e pyG5DualStacked\n```\n\nRunning on Raspberry Pi it is recommended to install FreeSans fonts in order to be consistent with the rendering on the current main development platform, ie. macOS. Most liked this is solved with:\n\n```console\n        \u003e sudo apt-get install libfreetype6\n```\n\n## Developers\n\nIf you intend to develop based on this project. At a glance:\n\n* The application runs on PyQt5 event loop.\n* It's loosely implementing a Model View Controller coding style\n* The `pyG5Network` contains X-Plane network interface is monitoring the connection and feed data at 30Hz to a slot\n* The view is repainting the interface every time the data is received from the network interface\n* The `pyG5Widget` is derived twice into and Horizontal Situation Indicator and an AI. the `pyG5DualStack` instantiate both into a single widget. That means it's easy to build the view with just one of them.\n* The `pyG5Main` module contains the application and the main window class.\n\n### Running from sources\n\nClone the repository\n\n```console\n        \u003e git clone \n```\n\nInitialize the virtual environment\n\n```console\n        \u003e source bootstrap.sh\n```\n\nStart the Application\n\n```console\n        \u003e python -m pyG5.pyG5Main\n```\n\nIn order to evaluate the design without X-Plane running you can use:\n\n```console\n        \u003e python -m pyG5.pyG5ViewTester\n```\n\nThis will feed the data from the sliders in the UI instead of the X-Plane network interface:\n\n![ViewTester](https://raw.githubusercontent.com/blauret/pyG5/main/assets/pyG5ViewTester.png)\n\n## License\n\n[License files](LICENSE.TXT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblauret%2Fpyg5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblauret%2Fpyg5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblauret%2Fpyg5/lists"}