{"id":27180164,"url":"https://github.com/jmarrec/energyplus-cpp-demo","last_synced_at":"2026-01-27T03:13:21.560Z","repository":{"id":61691616,"uuid":"549212815","full_name":"jmarrec/EnergyPlus-Cpp-Demo","owner":"jmarrec","description":"Using C++ to drive EnergyPlus. A fancy CLI for E+ with a terminal UI based on FTXUI","archived":false,"fork":false,"pushed_at":"2022-10-25T18:02:50.000Z","size":23890,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T14:30:30.530Z","etag":null,"topics":["cpp","cpp20","energyplus","ftxui","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"C++","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/jmarrec.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}},"created_at":"2022-10-10T21:12:38.000Z","updated_at":"2022-11-05T17:18:00.000Z","dependencies_parsed_at":"2023-01-20T19:05:47.664Z","dependency_job_id":null,"html_url":"https://github.com/jmarrec/EnergyPlus-Cpp-Demo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jmarrec/EnergyPlus-Cpp-Demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmarrec%2FEnergyPlus-Cpp-Demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmarrec%2FEnergyPlus-Cpp-Demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmarrec%2FEnergyPlus-Cpp-Demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmarrec%2FEnergyPlus-Cpp-Demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmarrec","download_url":"https://codeload.github.com/jmarrec/EnergyPlus-Cpp-Demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmarrec%2FEnergyPlus-Cpp-Demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28798693,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T01:07:07.743Z","status":"online","status_checked_at":"2026-01-27T02:00:07.755Z","response_time":168,"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":["cpp","cpp20","energyplus","ftxui","hacktoberfest"],"created_at":"2025-04-09T14:25:46.041Z","updated_at":"2026-01-27T03:13:21.555Z","avatar_url":"https://github.com/jmarrec.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example C++ to drive EnergyPlus\n\n## A FTXUI-based CLI that uses the EnergyPlus C/C++ API layer to run a file, with SQL Queries built-in\n\nThis was a proof of concept  / demonstration that started at the end of 2022 when I added an export of a CMake Configuration target ot EnergyPlus so one could link to EnergyPlus more easily (see [NREL/EnergyPlus#9712](https://github.com/NatLabRockies/EnergyPlus/pull/9712)) and wanted to try out [FTXUI](https://github.com/ArthurSonzogni/FTXUI))\n\n[![C++ CI](https://github.com/jmarrec/EnergyPlus-Cpp-Demo/actions/workflows/build.yml/badge.svg)](https://github.com/jmarrec/EnergyPlus-Cpp-Demo/actions/workflows/build.yml)\n[![clang-format](https://github.com/jmarrec/EnergyPlus-Cpp-Demo/actions/workflows/clang-format-check.yml/badge.svg)](https://github.com/jmarrec/EnergyPlus-Cpp-Demo/actions/workflows/clang-format-check.yml)\n[![cppcheck](https://github.com/jmarrec/EnergyPlus-Cpp-Demo/actions/workflows/cppcheck.yml/badge.svg)](https://github.com/jmarrec/EnergyPlus-Cpp-Demo/actions/workflows/cppcheck.yml)\n\n![demo GIF](EnergyPlus-Cpp-Demo.gif)\n\n## Usage\n\nThis started on one of my branches that added exporting a cmake configuration target so one could link to EnergyPlus more easily (https://github.com/NatLabRockies/EnergyPlus/pull/9712) but now E+ has it out of the box since EnergyPlus v23.1.0, so you can build and link against the regular installer!\n\n```shell\nepcli -w /path/to/weather.epw -d out 1ZoneUncontrolled.idf\n```\n\nThen follow the UI.\n\n## Building\n\nMake sure you have conan installed: `pip install conan` (tested with \u003e= 2, \u003c= 3)\n\n```shell\nconan install . --output-folder=build --build=missing -c tools.cmake.cmaketoolchain:generator=Ninja -s compiler.cppstd=20 -s build_type=Release\ncmake --preset conan-release -Denergyplus_DIR:PATH=/Applications/EnergyPlus-25-2-0/lib/cmake/energyplus\ncmake --build --preset conan-release\n./build/Products/epcli -w /path/to/weather.epw -d out 1ZoneUncontrolled.idf\n```\n\nYou can copy 1ZoneUncontrolled.idf from the ExampleFiles, and add `Output:SQLite, SimpleAndTabular;` so you have access to the SQL reports\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmarrec%2Fenergyplus-cpp-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmarrec%2Fenergyplus-cpp-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmarrec%2Fenergyplus-cpp-demo/lists"}