Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Button (clockify)

Shows how create a button, that makes use of Clockify API.

Install

Create or edit a settings.json inside a .vscode subfolder and add the following entry:

{
    "ego.power-tools": {
        "buttons": [{
            "text": "Clockify",
            "color": "#ffff00",
            "action": {
                "type": "script",
                "script": "clockify_button.js",
                "options": {
                    "workspace": "My workspace name or ID",
                    "project": "My project name or ID"
                }
            }
        }]
    }
}

Replace My workspace name or ID and My project name or ID with the names (or IDs) of your workspace and project.

Now create a clockify_button.js inside the same folder and fill it with the content of that file.

Setup API token

Open My profile and generate a new API token, if needed:

Clockify My profile

The first time, you click on the button, a clockify-token.txt file, inside the current user's home directory will be created, where you have to save the API token to.

Files

Name Description
clockify_button.js The script file for the button.
settings.json The settings (entry) for the settings.json file inside a .vscode sub folder inside a workspace.