{"id":49569596,"url":"https://github.com/dirk007/ancientplotter","last_synced_at":"2026-05-03T13:07:56.259Z","repository":{"id":255852298,"uuid":"853733654","full_name":"Dirk007/ancientPlotter","owner":"Dirk007","description":"CLI and backend+WebGUI to help with ancient serial hpgl-plotters","archived":false,"fork":false,"pushed_at":"2024-10-04T11:39:57.000Z","size":598,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-27T18:49:55.324Z","etag":null,"topics":["cogi","ct-630","ct630","plotter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dirk007.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-09-07T11:38:55.000Z","updated_at":"2024-10-04T11:40:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"38570fb7-6862-49a3-8403-47c04ea80f2d","html_url":"https://github.com/Dirk007/ancientPlotter","commit_stats":null,"previous_names":["dirk007/ancientplotter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Dirk007/ancientPlotter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dirk007%2FancientPlotter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dirk007%2FancientPlotter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dirk007%2FancientPlotter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dirk007%2FancientPlotter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dirk007","download_url":"https://codeload.github.com/Dirk007/ancientPlotter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dirk007%2FancientPlotter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32569766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cogi","ct-630","ct630","plotter"],"created_at":"2026-05-03T13:07:54.504Z","updated_at":"2026-05-03T13:07:56.246Z","avatar_url":"https://github.com/Dirk007.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AncientPlotter\n\nThis repository is a work in progress to revive a COGI CT-630 (and all its OEM-Name-Clones) serial Plotter.\n\nI've found some true and untrue informations as well as some Python-software in the web, however the found software always enforced me to painfully deal with the Python dependencies on MacOS. So I assembled what needed to be done and wrote this little tool. Thanks to the past [Python developers to discover the CT-630 endsequence-codes](https://gitli.stratum0.org/chrissi/cogidraw/-/blob/master/cogidraw.py?ref_type=heads#L58) and publishing them on the web.\n\n## Additional motivation\n\n[Inkscape](https://inkscape.org) in the version 1.3.2 at time of writing can save to `.hpgl` files (this is my way to convert a svg to a hpgl). However these have proven to be incompatible with my version of the CT-630. Therefore `ancientPlotter` does the following to succeed:\n- parse the given hpgl-file and split out all incompatible series to single instructions\n- send one instruction at once (there is reportedly a buffer problem with this plotter)\n- send the end-sequence\n\n## Contribution\n\nFeel free to file a PR if you like. I will try to process ASAP.\n\n## Binary distribution\n\nThis repository has binaries for Windows, Linux and MacOS each compiled for arm64 (intel) or arm64 (Apple / Raspberry) in the [bin](bin) folder. However, at least MacOS won't allow you to execute a binary directly loaded from the internet - which is pretty understandable.\n\n## Using docker - WIP\n\nI will - somewhere in the future - add a github-CI soon which will provide a docker image for the above mentioned architectures.\n\n## Building on your own\n\nThe safest way is to build the executable on your own. Here is how on Linux and MacOS. I dont have a clue how to do anything on Windows. If you found out, feel free to open a PR to this readme with instructions 😚\n\n- [Install go](https://go.dev/doc/install) in your favourite way.\n- Install [git](https://git-scm.com/) if not already done. \n- Checkout this repository and build the binary.\n\n```bash\n# go and git are already installed\ngit clone https://github.com/Dirk007/ancientPlotter.git\ncd ancientPlotter\ngo build .\n```\n\ngo will hopefully download all dependencies and place you a nice `ancientPlotter` executable in the current directory. You should be able to run it straight ahead\n\n```bash\n./ancientPlotter\n```\n\n### Building with `dagger`\n\nInvoke \n```bash\ndagger call build --src=. \n```\n\n## Usage\n\n`ancientPlotter [--serial-device \u003cdevice\u003e] [--dry-run] [--print-only] [--serve] [--port \u003cport\u003e (default 11175)] filename.hpgl`\n\n`--serve`\n\nSpin up this tool as a backend serving the required HTML and Websockets to drive your plotter.\n\nYou can reach the service by invoking http://127.0.0.1:11175/ (or whatever port you assigned). The documents will be served from [assets](./assets/). You can modify them at will *at runtime*. They will be freshly read and rendered on each onvocation.\n\nPlease don't blame me for the bad quality - I am everything but a frontend engineer.\n\n`--port`\n\nIf you specifiy this parameter and also use the `--serve` option, the default port `11175` will be overriden with this value.\n\n`--filename`\n\nThe only required parameter if you use this tool as a CLI, specifies which file you want to plot. The path can be absolute or relative - it does not matter. If you `serve` this parameter will simply be ignored.\n\nOny the first given file will be plotted.\n\n`--serial-device`\n\nSpecify the path to your serial-device where the Plotter is connected to. For example `--serial-device /dev/tty.usbserial-10`. The name of the port highly depends on your system but something with `usb` should point you to the right direction.\n\nThis parameter is **optional** - if you don't specify the serial-device, `ancientPlotter` tries to *guess* (relatively dumb) the right port. This works for me on my Mac, but I have no idea how stable it is on other machines. Maybe you can leave some feedback about that.\n\n`--dry-run`\n\nIf you specify this parameter, the instructions will be pached on the fly to **not** put the pen (cutter) down but always keep it hovering. I made this to not ruin too much foil while exploring the plotters functionality / scale. Maybe it is useful for someone else so I kept it. You may use it to see if your scaling is more or less correct. **WARNING** I have no idea if this will cause damage to the plotter if done too often. I am relatively sure that the plotter is designed to work with the resistence of the foil. But not sure. However, you've been warned.\n\n`--print-only`\n\nIf you specify this parameter, the instructions will **not** be sent to the Plotter but printed to the console instead. It is just for educational reasons and for debugging.\n\n## Other resources in the web\n\nYou make take a look at [stratum0.org](https://stratum0.org/wiki/Cogi_CT-630) which initially brought me some knowledge about this little diva of a Plotter.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirk007%2Fancientplotter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirk007%2Fancientplotter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirk007%2Fancientplotter/lists"}