as in "CA
MISJUIST"
This code can auto-fill your Cegeka CAMIS timesheets based on data provided from another, more usable, source.
- Toggl
- CSV-file
You can use an existing script or write your own that will perform the simple 3 steps:
- Import registered tasks from a source (e.g. Toggl)
- Data providers are used for this
- Normalize the data - round to 15 min chunks, trim descriptions, etc
- Model is where this happens
- Fill out CAMIS by interacting with its UI
- Selenium interface is written for this
- Have Python 3.8+ installed
- Clone this project locally
- Switch to the .venv virtual environment. Run:
> .venv/Scripts/Activate.ps1
- Import the modules from requirements.txt. Run:
> pip install -r requirements.txt
- Create a file called .env and put your Cegeka AD login in there, like this:
AD_LOGIN='firstname.lastname@cegeka.com'
- Write your own script or use an existing one if it matches your needs
An example of such a script is toggl_to_camis.py, which performs those three steps for a specific case:
-
Imports all entries from Toggl for today
-
Trims workorders and task descriptions to what's typical at the Ventouris team (using Ventouris processor)
-
Fills out CAMIS for today:
- reuses lines completely matching Workorder + Activity + Description
- adds new lines otherwise
IT DOESN'T SAVE AUTOMATICALLY THOUGH (that's on purpose to let you review the entries before clicking Save)