https://github.com/jerryshell/timebank
⏰ Timebank is a time recording and statistics tool.
https://github.com/jerryshell/timebank
axum rust statistics timebank
Last synced: 12 months ago
JSON representation
⏰ Timebank is a time recording and statistics tool.
- Host: GitHub
- URL: https://github.com/jerryshell/timebank
- Owner: jerryshell
- License: agpl-3.0
- Created: 2022-11-26T06:15:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-20T06:19:01.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T15:27:01.844Z (about 1 year ago)
- Topics: axum, rust, statistics, timebank
- Language: Rust
- Homepage: https://timebank.jerryshell.eu.org
- Size: 236 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Timebank
⏰ *Timebank* is a time recording and statistics tool.
Web UI: [https://github.com/jerryshell/timebank-web](https://github.com/jerryshell/timebank-web)
```text
timebank_core -- Basic structures and functions
timebank_csv -- Convert csv_data/%Y-%m-%d.csv to timebank.sqlite
timebank_db -- Database access layer
timebank_http -- HTTP API
```
## HTTP API
See [doc/http-api.md](doc/http-api.md)
## About `time_index`
*Timebank* divides 24 hours of the day into 48 time clips, each of which is 30 minutes.
```python
# Python code
time_index = hh * 2 + mm // 30
```
Example:
```
00:00-08:30 => (0+0, 16+1) => (0, 17)
10:30-17:00 => (20+1, 34+0) => (20, 34)
18:00-24:00 => (36+0, 48+0) => (36, 48)
```
## How to use `restart.sh`
You first need to put the `timebank_http` binary and `restart.sh` in the same directory.
```bash
./restart.sh timebank_http
```
## LICENSE
[GNU Affero General Public License v3.0](https://choosealicense.com/licenses/agpl-3.0/)