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-cflag
- 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
Networktab - Click the
clearicon in the top left part of the console (looks like a circle with a slash through it) - Changing the default
Top 10selection in theMost Tracked Activitiessection toAll - You should see a response with a
namesimilar 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
nameand 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
invoiceDataFilePathinconfig.jsonaccordingly (should be whatever you named your data dump file)
