{"id":21456039,"url":"https://github.com/etkecc/ttm","last_synced_at":"2025-10-08T20:19:25.545Z","repository":{"id":253879048,"uuid":"841935432","full_name":"etkecc/ttm","owner":"etkecc","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-17T20:48:06.000Z","size":116,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-19T10:42:21.954Z","etag":null,"topics":["cli","matrix-org"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/etkecc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"liberapay":"etkecc"}},"created_at":"2024-08-13T10:43:01.000Z","updated_at":"2025-07-17T20:48:10.000Z","dependencies_parsed_at":"2024-08-20T05:54:45.151Z","dependency_job_id":"b29951ef-4d7d-4c1c-bf94-130506f61e2f","html_url":"https://github.com/etkecc/ttm","commit_stats":null,"previous_names":["etkecc/ttm"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/etkecc/ttm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etkecc%2Fttm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etkecc%2Fttm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etkecc%2Fttm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etkecc%2Fttm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/etkecc","download_url":"https://codeload.github.com/etkecc/ttm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etkecc%2Fttm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000662,"owners_count":26082817,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":["cli","matrix-org"],"created_at":"2024-11-23T05:14:19.257Z","updated_at":"2025-10-08T20:19:25.526Z","avatar_url":"https://github.com/etkecc.png","language":"Go","funding_links":["https://liberapay.com/etkecc"],"categories":[],"sub_categories":[],"readme":"# ttm - a `time` To Matrix [![Matrix](https://img.shields.io/matrix/ttm:etke.cc?logo=matrix\u0026server_fqdn=matrix.org\u0026style=for-the-badge)](https://matrix.to/#/#ttm:etke.cc)\n\nA `time`-like command that will send end of an arbitrary command output and some other info (like exit status) to matrix room.\n\nConsider this project a \"bash-oneliner\" to do some stuff fast. It's not supposed to be beautiful and shiny, it just must work.\n\n## Features\n\n* Run any arbitrary command with colors, tty window size and other fancy stuff\n* Collect time information (real/user/sys, like `time command`)\n* Send that info to the matrix room\n* Project functionality considered final, so no breaking changes are possible, only fixes, tests and minor updates (like new options)\n\n\u003cdetails\u003e\n\u003csummary\u003eHow it looks like\u003c/summary\u003e\n\n### you run command in terminal...\n\n```bash\n$ ttm ansible-playbook --with args\n# ... scroll-scroll-scroll\nPLAY RECAP *****************************************************************************************************************************\ngitlab.com                    : ok=33   changed=0    unreachable=0    failed=0    skipped=147  rescued=0    ignored=0\n\n\nreal\t15.166239745s\nuser\t10.330419s\nsys\t\t2.213327s\n```\n\n### ...and get fancy html-formated message in matrix\n\n**ttm report**\n\n```bash\nansible-playbook --with args\n```\n\n```bash\n# end of log (if configured)\nPLAY RECAP *****************************************************************************************************************************\ngitlab.com                    : ok=33   changed=0    unreachable=0    failed=0    skipped=147  rescued=0    ignored=0\n```\n\n```bash\nreal\t15.166239745s\nuser\t10.330419s\nsys\t\t2.213327s\n```\n\nExit code: `0`\n\n\u003c/details\u003e\n\n## How to get\n\n* Arch Linux [AUR](https://aur.archlinux.org/packages/time-to-matrix-git/)\n* or [Releases](https://github.com/etkecc/ttm/releases)\n* or `go install github.com/etkecc/ttm@latest`\n* or from source code\n\n## Quick start\n\n```bash\n# get the ttm app first, from the \"How to get\" section\n\n# ttm configuration, check the \"Configuration\" section below to get the full (pretty impressive) list of available options\nexport TTM_HOMESERVER=\"https://matrix.example.com\"\nexport TTM_TOKEN=\"matrix_access_token\"\nexport TTM_ROOM=\"!XODRhTLplrymaFicdK:etke.cc\"\n\n# synax: ttm \u003cany-command\u003e [with any args]\nttm echo \"that command will be sent to matrix, alongside with time stats, exit code and neat html formatting\"\n```\n\n## Configuration\n\nAll ttm config options are env vars\n\n### mandatory\n\n* **TTM_HOMESERVER** - the real address of your matrix HS, not a delegated url, eg: `https://matrix.example.com`\n* **TTM_ROOM** - matrix room id or alias, eg: `!XODRhTLplrymaFicdK:etke.cc` or `#ttm:etke.cc`\n\nauth can be done with access token or login/password, that's up to you\n\n**login/password** _if you want to login with matrix user login and password_\n\n* **TTM_LOGIN** - matrix login (localpart), eg: `ttm`, not `@ttm:example.com`\n* **TTM_PASSWORD** - matrix password, eg: `superSecurePassword`\n\n**access token** _if you want to login with existing session_\n\n* **TTM_TOKEN** - matrix session access token\n\n### optional options\n\n* **TTM_LOG** - send full log information to matrix, allowed values: `0`, `1`; default: `0`\n* **TTM_MSGTYPE** - message type, allowed values: `m.text`, `m.notice`; default: `m.text`\n* **TTM_NOHTML** - do not send html-formatted message, only plaintext (increases allowed log size x2), allowed values: `0`, `1`; default: `0`\n* **TTM_NOTEXT** - do not send plaintext message, only html (increases allowed log size x2), allowed values: `0`, `1`; default: `0`\n* **TTM_NOTICEFAIL** - send message with `TTM_MSGTYPE=\"m.notice\"` if exit code is not 0, allowed values: `0`, `1`; default: `0`\n* **TTM_NOTIME** - do not send time information to matrix, allowed values: `0`, `1`; default: `0`\n\n### deprecated\n\nfollowing env vars still available and work, but were replaced:\n\n* TTM_ROOMID (use **TTM_ROOM** instead) - matrix room id or alias (eg: `!fsafaFSAsf:example.com` or `#ttm:etke.cc`)\n\n## Additional info\n\nttm developed by [etke.cc](https://etke.cc), say hello in [#ttm:etke.cc](https://matrix.to/#/#ttm:etke.cc) matrix room (or ask questions, if you have any)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetkecc%2Fttm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetkecc%2Fttm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetkecc%2Fttm/lists"}