Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 979 Bytes

README.md

File metadata and controls

45 lines (30 loc) · 979 Bytes

Timebank

Timebank is a time recording and statistics tool.

Web UI: https://github.com/jerryshell/timebank-web

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

About time_index

Timebank divides 24 hours of the day into 48 time clips, each of which is 30 minutes.

# 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.

./restart.sh timebank_http

LICENSE

GNU Affero General Public License v3.0