Script to get current task times form specific Clockify project and compare task entries to weekly targets giving pertinent feedback/output.
The purpose of this repo is to create a page giving real-time feedback on projects tracked on a specific tool (Clockify). This projects are based on specific custom(personal) tasks and targets but, as much as possible, it'll be general-purpose oriented to ease its use.
All this script does is to fetch the data using Clockify's API from current's week projects and compare the time tracked with current targets (task targets on the Main project depend on the amount of time tracked on other projects that have a higher priority). The result is the calculation and output of current status for all projects and tasks (target achieved/not achieved and ETA).
clockifyTargets.html will show the results, script.js does the api call, calculations and outputs and creds.js holds the API credentials (not recommended; currently trying to implement .env or similar approach), targets and output colors.
Refs: