{"id":27211618,"url":"https://github.com/mimoja/ptouch-web","last_synced_at":"2025-04-10T01:29:54.131Z","repository":{"id":95809284,"uuid":"607292776","full_name":"Mimoja/PTouch-Web","owner":"Mimoja","description":"Webinterface to print tables on PTouchCube PT-P770 and others","archived":false,"fork":false,"pushed_at":"2024-06-25T13:04:06.000Z","size":1491,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-06-26T14:09:05.229Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mimoja.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":"2023-02-27T17:48:16.000Z","updated_at":"2024-06-25T13:04:10.000Z","dependencies_parsed_at":"2024-06-25T14:08:01.436Z","dependency_job_id":"efc9a2dc-826b-43d0-bd64-6b92af23684d","html_url":"https://github.com/Mimoja/PTouch-Web","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/Mimoja%2FPTouch-Web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mimoja%2FPTouch-Web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mimoja%2FPTouch-Web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mimoja%2FPTouch-Web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mimoja","download_url":"https://codeload.github.com/Mimoja/PTouch-Web/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248140138,"owners_count":21054246,"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-04-10T01:29:53.408Z","updated_at":"2025-04-10T01:29:54.096Z","avatar_url":"https://github.com/Mimoja.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PTouch-Web\nA web interface to your PTouch printer\n\n![Screenshot Multiline](https://user-images.githubusercontent.com/10907336/224796519-85a35ce7-be0c-41db-9288-47eabf4d665d.png)\n\n- PTouch-Web uses the system fonts to render the shown image.\n- The webinterface works without Javascript, however the font selection uses\nJavaScript to change the `font=` parameter in the URL.\n- It provides a `/print` `GET` endpoint for cli usage:\n    ```bash\n    curl http://labelprinter.local/print?fontsize=48\u0026font=Ubuntu-L.ttf\u0026label=Hello%20World\n    ```\n- The Font field is fuzzy searchable by font name and font family\n### Connecting via USB\n```\ngo build .\n./ptouch-web usb\n```\nEnsure your user has the proper permissions to access /dev/bus/usb or change the permissions there\n\n### Recommended fonts (debian):\n- ttf-ubuntu-font-family\n- ttf-mscorefonts-installer\n- fonts-croscore\n- fonts-liberation2\n- fonts-freefont-ttf\n\n```\nsudo apt install ttf-ubuntu-font-family ttf-mscorefonts-installer fonts-freefont-ttf fonts-liberation2 fonts-croscore\n```\n\n### Deployment\n\nYou can create a overwrite `docker-compose.prod.yml` to map custom fonts or device:\n```docker-compose\nversion: \"3.3\"\nservices:\n  ptouch-web:\n    volumes:\n      - /usr/share/fonts/:/usr/local/share/fonts/:ro\n    ports:\n      - 80:8080\n```\nand run with\n`docker-compose -f docker-compose.yml -f docker-compose.prod.yml up --build`\n\n### Connecting an rfcomm node via bluetooth\n\nAfter connecting to the device it will automatically disconnect again.\nOn linux you can list the device by using bluetooth-ctl's paired-devices listing.\ne.g.\n```\n[bluetooth]# paired-devices\nDevice EC:79:49:65:XX:XX PT-P300BTXXXX\n```\n\nYou can then create an rfcom device from the bl address:\n```\nsudo rfcomm bind 0 EC:79:49:65:XX:XX 1\n```\n\nAfterwards PTouch-Web can be passed the rfcomm device\n```\nptouch-web /dev/rfcomm0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimoja%2Fptouch-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmimoja%2Fptouch-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimoja%2Fptouch-web/lists"}