kevinpapst / kimai2-console Goto Github PK
View Code? Open in Web Editor NEWConsole application for Kimai remote access - time-tracking via bash
Home Page: https://www.kimai.org/store/console-phar.html
License: MIT License
Console application for Kimai remote access - time-tracking via bash
Home Page: https://www.kimai.org/store/console-phar.html
License: MIT License
Thank you for the fantastic software! I noticed that on the store page the following command is displayed:
kimai configuration:create
Which will cause an error with the current version of the tool.
However the latest version in this repository says:
kimai configuration
Would it be possible to update the documentation on the store page?
Kimai start
displays customer list correctly (version 0.4:
but selection of customer fails (local php version PHP 8.2.6, i also tested with 8.0.27):
See error message in remote kimai 2.0.26 below, I also tested with demo kimai, same error.
[2023-06-22T17:33:54.102129+02:00] request.ERROR: Uncaught PHP Exception FOS\RestBundle\Exception\InvalidParameterException: "Parameter "customers" of value "4" violated a constraint "This value should be of type iterable."" at /home/clients/59/kimai2/vendor/friendsofsymfony/rest-bundle/Exception/InvalidParameterException.php line 62 {"exception":"[object] (FOS\RestBundle\Exception\InvalidParameterException(code: 0): Parameter "customers" of value "4" violated a constraint "This value should be of type iterable." at /home/clients/59/kimai2/vendor/friendsofsymfony/rest-bundle/Exception/InvalidParameterException.php:62)"} []
[2023-06-22T17:33:54.049494+02:00] security.INFO: Authenticator successful! {"token":{"Symfony\Component\Security\Http\Authenticator\Token\PostAuthenticationToken":"PostAuthenticationToken(user="myuser", roles="ROLE_SUPER_ADMIN, ROLE_TEAMLEAD, ROLE_ADMIN, ROLE_USER")"},"authenticator":"App\API\Authentication\SessionAuthenticator"} []
[2023-06-22T17:33:53.218112+02:00] request.INFO: Matched route "get_projects". {"route":"get_projects","route_parameters":{"_route":"get_projects","_controller":"App\API\ProjectController::cgetAction"},"request_uri":"https://kimai.example.ch/api/projects?customers=4&visible=1","method":"GET"} []
Unfortunately, I found this message too late.:
Release was tested with API version 0.6 and Kimai version 1.21 only.
Would be great to make it work again for kimai 2. Thanks !
Thanks very much for this tool! I'm finding it very useful.
A small quality-of-life improvement that would be nice to see: when using kimai stop
or kimai active -d
and there is only one active timesheet, it would be nice if the prompt to select a timesheet was skipped. At the moment there is a prompt with only one option, which seems redundant:
kimai stop
----- -------------------------- ---------------------- ------------ ------------ ---------------------------------------------------------- ------
ID Started at Activity Project Customer Description Tags
----- -------------------------- ---------------------- ------------ ------------ ---------------------------------------------------------- ------
217 ...
----- -------------------------- ---------------------- ------------ ------------ ---------------------------------------------------------- ------
Please select a timesheet:
[0] 217
> 0
[OK] Stopped 1 active timesheet(s) with ID: 217
composer global require kevinpapst/kimai2-console
Changed current directory to /home/necrogami/.config/composer
Info from https://repo.packagist.org: #StandWithUkraine
Cannot use kevinpapst/kimai2-console's latest version 0.3.3 as it requires php ^7.2.5 which is not satisfied by your platform.
In PackageDiscoveryTrait.php line 316:
Package kevinpapst/kimai2-console has requirements incompatible with your PHP version, PHP extensions and Composer version:
- kevinpapst/kimai2-console 0.3.3 requires php ^7.2.5 which does not match your installed version 8.1.8.
In the store https://www.kimai.org/store/console-phar.html it is written:
.. PHAR technology, so you need PHP >= 7.3 installed ...
whereas in this readme https://github.com/kevinpapst/kimai2-console#readme
Requirements
PHP 7.2.5
which one is correct?
Using recent Linux Mint 19.3 there's only php7.2 - so I get:
:~$ kimai configuration:create
[ERROR] Failed execution: There are no commands defined in the "configuration" namespace.
There are no commands defined in the "configuration" namespace.
When starting or stopping a time record is delayed for various reasons, it would be nice to have a parameter to counter that delay.
For instance like this:
kimai start --offset -10 ...
Would start the new task like it would have been started 10 minutes earlier.
kimai2-console could be a useful tool to create time records via scripts from the shell in bulk. That would be useful for instance to import longer vacation, sick-leave periods or national holidays. (In case kimai2 is used to track attendance and working hours.)
To do that, the kimai2-console would need an option to specify the date and duration of those entries when creating them.
Hi,
my commands look like these:
kimai start --customer 'Customer-X' --project 'Project X' --activity 'Training/Study' --description 'Any description' --tags ''
Please note the different String Parameter:
However this is working:
kimai start --customer 'Customer-X' --project 'Project X' --activity '10' --description 'Any description' --tags ''
I switched from activity 'Training/Study' to '10', the ID of this activity -> This is working. Other activity string-parameter like 'Meeting' or 'Docs' is also working
Kimai Version:
Kimai 2 - 1.7 stable (Ayumi) by Kevin Papst and contributors.
Kimai 2 - Remote Console version 0.3.3 2020-01-27 17:22:30 UTC (#5546282)
OS:
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=20.0.3
DISTRIB_CODENAME=Lysia
DISTRIB_DESCRIPTION="Manjaro Linux"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.