An open API service indexing awesome lists of open source software.

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.

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/)