https://github.com/bumi/kredits-toggl
A Kredits oracle for toggl.com time tracking entries
https://github.com/bumi/kredits-toggl
Last synced: 8 months ago
JSON representation
A Kredits oracle for toggl.com time tracking entries
- Host: GitHub
- URL: https://github.com/bumi/kredits-toggl
- Owner: bumi
- Created: 2019-05-14T08:54:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-14T09:03:33.000Z (about 7 years ago)
- Last Synced: 2025-10-14T14:05:11.617Z (8 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kredits toggl
A Kredits oracle for [toggl.com](http://toggl.com/) time tracking entries.
This script reads time entries from toggl for specific projects and specific timeframe and creates Kredits contribution entries for those.
By default 1 minute will result in 1 contribution token.
## Installation
$ npm install
## Run it
### Options:
Configuration options are set via environment variables: (also see the Config variable in index.js)
* TOGGL_API_TOKEN: (required) toggle.com API token
* WORKSPACE_ID: (required) toggl.com workspace ID
* PROJECT_IDS: toggl.com project IDs as comma separated string
* DAO_ADDRESS: (required) Kredits DAO address
* ETH_NETWORK: Ethereum network: local, rinkeby, etc.
* ETH_RPC_URL: Ethereum RPC URL (default: http://localhost:7545)
* APM_DOMAIN: Aragon APM domain (default: aragonpm.eth)
Contributors must have a `{ site: 'toggl.com', uid: TOGGLE_USER_ID, username: '' }` accounts entry.
If a `claimedLabel` is set all time entries will be tagged and ignored in future runs.
The script also creates a `last-import.txt` file with a timestamp which will be used as `since` parameter in future runs.
$ node index.js