{"id":18604889,"url":"https://github.com/x-rays5/edjournal-handler","last_synced_at":"2025-11-02T11:30:25.198Z","repository":{"id":118767600,"uuid":"359622560","full_name":"X-rays5/EDJournal-Handler","owner":"X-rays5","description":"EDJournal-Handler is a single header library to listen to journal events from elite dangerous and handle them","archived":false,"fork":false,"pushed_at":"2021-04-25T11:55:21.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-26T23:43:40.664Z","etag":null,"topics":["elite-dangerous","elite-journal","elitedangerous","event","winapi"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/X-rays5.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":"2021-04-19T23:10:38.000Z","updated_at":"2023-09-08T18:21:22.000Z","dependencies_parsed_at":"2023-07-30T03:01:20.724Z","dependency_job_id":null,"html_url":"https://github.com/X-rays5/EDJournal-Handler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X-rays5%2FEDJournal-Handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X-rays5%2FEDJournal-Handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X-rays5%2FEDJournal-Handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X-rays5%2FEDJournal-Handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/X-rays5","download_url":"https://codeload.github.com/X-rays5/EDJournal-Handler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239394720,"owners_count":19631121,"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","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":["elite-dangerous","elite-journal","elitedangerous","event","winapi"],"created_at":"2024-11-07T02:19:21.433Z","updated_at":"2025-11-02T11:30:25.149Z","avatar_url":"https://github.com/X-rays5.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EDJournal-Handler\nThis library is meant to be a simple way to interact with the elite dangerous journals.\nThis library can be used asynchronous.\n\n\u003ch2\u003eexample on how to use\u003c/h2\u003e\n\n```c++\n#include \"journal_logger.hpp\"\n\nint main() {\n     // there are multiple ways to create a instance of the library\n\n    // init with default settings 10 seconds between event checks and non async\n    EDJournalLogger::Logger journal;\n\n    // init with custom time between new event checks in ms and non async\n    EDJournalLogger::Logger journal(5000);\n\n    // init async with standard time between new event checks\n    EDJournalLogger::Logger journal(true);\n\n    // init with custom time between new event checks and async\n    EDJournalLogger::Logger journal(5000, true);\n\n    // this will be triggered on a new event\n    journal.SetEventHandler([](std::string event, std::string event_info) {\n       std::cout \u003c\u003c event \u003c\u003c \"\\n\" \u003c\u003c event_info \u003c\u003c \"\\n\";\n    });\n\n    // This starts the library and will trigger the event handler on a new event\n    journal.StartListening();\n\n    // if we get to here the game has closed\n    std::cout \u003c\u003c \"Game closed shutting down\\n\";\n    std::this_thread::sleep_for(std::chrono::seconds(5));\n\n    // You can do journal.StartListening() again or shutdown\n    // if you do journal.StartListening() again the library will wait for the game to launch\n    // and will then start logging again\n\n    return 0;\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-rays5%2Fedjournal-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx-rays5%2Fedjournal-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-rays5%2Fedjournal-handler/lists"}