{"id":28581198,"url":"https://github.com/hormold/thermal-printer-gpt","last_synced_at":"2025-06-11T04:16:28.539Z","repository":{"id":254497941,"uuid":"846720463","full_name":"Hormold/thermal-printer-gpt","owner":"Hormold","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-23T20:13:28.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-23T21:37:11.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Hormold.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-08-23T20:11:52.000Z","updated_at":"2024-08-23T21:37:34.039Z","dependencies_parsed_at":"2024-08-23T21:37:32.453Z","dependency_job_id":"72a53459-02e8-4a05-b348-d3e085b663ba","html_url":"https://github.com/Hormold/thermal-printer-gpt","commit_stats":null,"previous_names":["hormold/thermal-printer-gpt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Fthermal-printer-gpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Fthermal-printer-gpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Fthermal-printer-gpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Fthermal-printer-gpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hormold","download_url":"https://codeload.github.com/Hormold/thermal-printer-gpt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Fthermal-printer-gpt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259197983,"owners_count":22820156,"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":[],"created_at":"2025-06-11T04:16:19.284Z","updated_at":"2025-06-11T04:16:28.524Z","avatar_url":"https://github.com/Hormold.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Thermal Printer GPT\n\nThis fun project combines a thermal printer with GPT to create an interactive Q\u0026A experience. It's built using Node.js and is designed to work with specific thermal printer models.\n\n## Supported Printers\n\nThe current implementation supports the thermal printer model:\n\n- Model: QR204\n- P/W: 58mm\n- Baud Rate 9600\n- Power: DC 5-9V/2A\n- Vendor ID: 0x28e9\n- Product ID: 0x0289\n- Aliexpress: [QR204](https://www.aliexpress.us/item/3256805216266967.html)\n\nThis is a small, white thermal printer that uses 58mm wide paper rolls.\n\n## Features\n\n- Direct printing from Node.js to supported thermal printers\n- Interactive GPT-based Q\u0026A functionality\n- Simple configuration for text size and printing width\n\n## Requirements\n\n- Node.js\n- OpenAI API key\n- Supported thermal printer (QR204 or compatible models)\n\n## Installation\n\n1. Clone this repository:\n   ```\n   git clone https://github.com/hormold/thermal-printer-gpt.git\n   ```\n\n2. Install dependencies:\n   ```\n   cd thermal-printer-gpt\n   npm install\n   ```\n\n3. Create a `.env` file in the project root and add your OpenAI API key:\n   ```\n   OPENAI_API_KEY=your_api_key_here\n   ```\n\n## Usage\n\nRun the main script to start the interactive mode:\n\n```\nnode index.js\n```\n\nThis will initialize the printer and start the GPT-based Q\u0026A session. You can type your questions, and the answers will be printed on the thermal printer.\n\n## Contributing\n\nThis project is open for contributions! Here are some areas where help is needed:\n\n- Image printing support\n- Additional printer model support\n- Improved error handling and printer connection management\n\nFeel free to open issues or submit pull requests.\n\n## Disclaimer\n\nThis is a just-for-fun project to experiment with thermal printers and GPT. It may not be suitable for production use.\n\n## License\n\n[MIT License](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhormold%2Fthermal-printer-gpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhormold%2Fthermal-printer-gpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhormold%2Fthermal-printer-gpt/lists"}