A docker container providing a sync-server for TaskTimeTerminate
10K+
Updates of this image are currently disabled.
A docker image providing a sync-server for TaskTimeTerminate
Github Actions build of https://github.com/KIMB-technologies/TaskTimeTerminateServer
This is a docker project, so it you will need docker to run it. It is recommended to use the docker-compose.yml provided.
/php-code/data/)DEVMODE should always be false (enables error messages)CONF_DOMAIN the url where the service will be hosted (what the webbrowser sees)CONF_TIMEZONE a PHP timezone string, matching the location of the server users (see https://www.php.net/manual/en/timezones.php for list of supported ones)ADMIN_ACCOUNT username/ groupname of the initial account (will be created on first container startup; will be an admin user)ADMIN_PASSWORD password for the initial accountOne may delete
ADMIN_ACCOUNTandADMIN_PASSWORDafter the account is created (and also change the password), IfADMIN_ACCOUNTis set and the account already exists, the system will overwrite the password withADMIN_PASSWORD.
See https://github.com/KIMB-technologies/TaskTimeTerminate for more information about TTT.
Device Managementttt conf sync server in your clientThis repository contains a script to import data from other devices to the server and also a script that exports the data of all devices to a directory. The format used is the same as used in the local directory synchronisation.
So one may transfer the the data from an old client (not used anymore, used clients will automatically import their data when they are connected to the server for the first time) to the server.
Create the the device for which the data should be imported and remember its token. (The name of the device can only be set once via the Webinterface).
php ./imexport/import.php2020-04-01.json, 2020-04-03.json, ...)One may use any device of an account, but the device will only get data from other devices and no data from itself. (So create a new device for a full export!)
php ./imexport/export.phpIt is possible to create custom graph-views for the stats view.
See an example e.g. Pie
When the user selects a graph and clicks on Display Graph the corresponding JS-file is loaded and the the function createGraph(combiData, plainData, singleDayData, canvas)
of this file will be executed. In a file like Pie
such function like createGraph(combiData, plainData, singleDayData, canvas) can be defined.
Each function gets four parameters, three *Data and one canvas.
The parameter *Data are arrays containing objects with datasets, they all represent the same current data selection of the user, but haven different formats.
combiData
[{"category":"Test","name":"My Task","duration":3600,"times":1,"days":["23.09", ...],"devices":["Server", ...]}, ...]plainData
[{"name":"My Task","category":"Test","begin":1600866000,"end":1600869600,"duration":3600,"device":"Server"}, ...]singleDayData
false if more than one day selected by user.[{"Begin":"15:00","Category":"Test","Name":"My Task","Time":" 1h 0m"}, ...]The object canvas is a connector to the canvas on the page, where the chart should show up.
It can be directly used with new Chart(canvas, chartData).
The function must return the created Chart object, cause the stats page need access to it.
So a typical wokflow will use data to generate a object chartData for ChartJS and
end with return new Chart(canvas, chartData);.
For information how to create charts see https://www.chartjs.org/ (also jQuery is loaded in the DOM as $).
All JS file creating charts (and containing exactly one createGraph) have to be placed in the folder
/php-code/load/graphs/ inside the docker-container. Using docker-compose one might add
./charts/:/php-code/load/graphs/ to the volumes section of the docker-compose.yml and
add all file to ./charts/.
All JS file should be named like this <GraphName>.js. Of course it it recommended to
use only A-Za-z-9 for the GraphName.
Content type
Image
Digest
sha256:0c79eb35e…
Size
33.3 MB
Last updated
almost 3 years ago
docker pull kimbtechnologies/ttt_sync