This tool allows you to use a data dump from Clockify to generate a PDF invoice
- Use the provided example.config.json file to customize the generated invoice.
- Default expected name for this file is
config.json
, but filepath can be passed via command line argument using the-c
flag
- Default expected name for this file is
- Retrieve a data dump of time entries for Clockify by:
- Navigating to the DashBoard
- Select the invoice date period in the top right hand corner
- Opening the JavaScript console (right click the page and select
inspect
) - Navigating to the
Network
tab - Click the
clear
icon in the top left part of the console (looks like a circle with a slash through it) - Changing the default
Top 10
selection in theMost Tracked Activities
section toAll
- You should see a response with a
name
similar to:https://global.api.clockify.me/workspaces/5aa8c6ceb12345693e9b90c7/reports/mostTracked?count=ALL&start=2020-05-22T00:00:00.000Z&end=2020-06-07T23:59:59.999Z
- Right click the
name
and selectCopy > Copy response
- In the directory you've installed the binary in, create a file called
dataDump.json
(or whatever you'd like) and paste what you copied into items - Update the
invoiceDataFilePath
inconfig.json
accordingly (should be whatever you named your data dump file)