{"id":34720121,"url":"https://github.com/edent/trmnl-quiz","last_synced_at":"2026-05-22T20:05:50.279Z","repository":{"id":305641193,"uuid":"1022947894","full_name":"edent/trmnl-quiz","owner":"edent","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-21T07:46:01.000Z","size":3130,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-21T02:03:17.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edent.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,"zenodo":null}},"created_at":"2025-07-20T07:36:50.000Z","updated_at":"2026-03-25T00:57:31.000Z","dependencies_parsed_at":"2025-07-21T09:41:58.213Z","dependency_job_id":null,"html_url":"https://github.com/edent/trmnl-quiz","commit_stats":null,"previous_names":["edent/trmnl-quiz"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edent/trmnl-quiz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edent%2Ftrmnl-quiz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edent%2Ftrmnl-quiz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edent%2Ftrmnl-quiz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edent%2Ftrmnl-quiz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edent","download_url":"https://codeload.github.com/edent/trmnl-quiz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edent%2Ftrmnl-quiz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33364337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"online","status_checked_at":"2026-05-22T02:00:06.671Z","response_time":265,"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":"2025-12-25T01:44:52.050Z","updated_at":"2026-05-22T20:05:50.274Z","avatar_url":"https://github.com/edent.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Library Quiz for TRMNL\n\nEntered for the [bookreaders Hackaton](https://usetrmnl.com/blog/hackathon-book-readers), 2025\n\n\u003cimg src=\"https://raw.githubusercontent.com/edent/trmnl-quiz/refs/heads/main/demo.jpeg\" alt=\"An e-ink display showing…which book it was from.\"\u003e \n\n## About\n\nLibrarians can create an engaging quiz based on some of the most iconic books on their shelves.\n\n* Every 15 minutes, your TRMNL will display the opening line of a popular book. \n* Four choices are shown - including the name of the book and the author.\n* After 10 minutes, the answer is shown by displaying the book cover.\n* Five minutes later, a different book's opening line is displayed.\n\nThis sample plugin contains nearly one-hundred different books.  More can be added to suit the needs of your library or collection.\n\n## How it works\n\nThe file `generator.php` contains a list of books, opening lines, authors, and cover images.\n\nEvery time the generator webpage is requested, it randomly selects four books.  It then creates a JSON document which contains all the information needed to run the quiz.\n\n## Adding new books\n\nIn the file `generator.php` you will see a variable called `$books` - it is an array which holds all the books' information.\n\nA book entry looks like:\n\n```php\n[\n\t\"title\"=\u003e\"Moby Dick\", \n\t\"line\"=\u003e\"Call me Ishmael.\",\n\t\"author\"=\u003e\"Herman Melville\", \n\t\"cover\"=\u003e\"moby-dick-collins-classics.webp\"\n],\n```\n\nYou can add new entries by copying that text, adding it to the end of the array, and saving it.\n\nYou will need a uniquely-named book cover image. Images can be JPEG, PNG, or WebP files. Save the file in the `covers` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedent%2Ftrmnl-quiz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedent%2Ftrmnl-quiz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedent%2Ftrmnl-quiz/lists"}