{"id":20542828,"url":"https://github.com/jerryshell/timebank","last_synced_at":"2025-03-06T04:29:33.715Z","repository":{"id":113051039,"uuid":"570792250","full_name":"jerryshell/timebank","owner":"jerryshell","description":"⏰ Timebank is a time recording and statistics tool.","archived":false,"fork":false,"pushed_at":"2024-04-20T06:19:01.000Z","size":242,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-16T15:27:01.844Z","etag":null,"topics":["axum","rust","statistics","timebank"],"latest_commit_sha":null,"homepage":"https://timebank.jerryshell.eu.org","language":"Rust","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/jerryshell.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":"2022-11-26T06:15:13.000Z","updated_at":"2024-04-20T06:18:59.000Z","dependencies_parsed_at":"2023-06-07T14:00:49.221Z","dependency_job_id":"4e368371-aa6b-4dc9-a57e-1cc83c61740f","html_url":"https://github.com/jerryshell/timebank","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/jerryshell%2Ftimebank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryshell%2Ftimebank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryshell%2Ftimebank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryshell%2Ftimebank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerryshell","download_url":"https://codeload.github.com/jerryshell/timebank/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242149792,"owners_count":20079994,"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":["axum","rust","statistics","timebank"],"created_at":"2024-11-16T01:34:32.940Z","updated_at":"2025-03-06T04:29:33.695Z","avatar_url":"https://github.com/jerryshell.png","language":"Rust","readme":"# Timebank\n\n⏰ *Timebank* is a time recording and statistics tool.\n\nWeb UI: [https://github.com/jerryshell/timebank-web](https://github.com/jerryshell/timebank-web)\n\n```text\ntimebank_core -- Basic structures and functions\ntimebank_csv  -- Convert csv_data/%Y-%m-%d.csv to timebank.sqlite\ntimebank_db   -- Database access layer\ntimebank_http -- HTTP API\n```\n\n## HTTP API\n\nSee [doc/http-api.md](doc/http-api.md)\n\n## About `time_index`\n\n*Timebank* divides 24 hours of the day into 48 time clips, each of which is 30 minutes.\n\n```python\n# Python code\ntime_index = hh * 2 + mm // 30\n```\n\nExample:\n\n```\n00:00-08:30 =\u003e (0+0, 16+1) =\u003e (0, 17)\n10:30-17:00 =\u003e (20+1, 34+0) =\u003e (20, 34)\n18:00-24:00 =\u003e (36+0, 48+0) =\u003e (36, 48)\n```\n\n## How to use `restart.sh`\n\nYou first need to put the `timebank_http` binary and `restart.sh` in the same directory.\n\n```bash\n./restart.sh timebank_http\n```\n\n## LICENSE\n\n[GNU Affero General Public License v3.0](https://choosealicense.com/licenses/agpl-3.0/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerryshell%2Ftimebank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerryshell%2Ftimebank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerryshell%2Ftimebank/lists"}