No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
toggl2pixela
.DS_Store
.gitignore
Gopkg.lock
Gopkg.toml
Makefile
README.md
serverless.yml

README.md

toggl2pixela

toggl2pixela is a serverless tool to export total time of some tasks (project) recorded in toggl to your Pixela graph.

screen

Project setup

Requirements

  • Go environment
  • serverless framework

compile & deploy

git clone https://github.com/jagijagijag1/toggl2pixela
cd toggl2pixela

Describe your toggl bucket info & pixela info to environment clause on serverless.yml. If you want, change the time for periodic invoking of Lambda function (default: 16:00 UST = 01:00 JST) in schedule.

...
functions:
  toggl2pixela:
    handler: bin/toggl2pixela
    events:
      - schedule: cron(0 16 * * ? *)
    # you need to fill the followings with your own
    environment:
      TZ: Asia/Tokyo
      TOGGL_API_TOKEN: <your-api-token>
      TOGGL_PROJECT_ID: <target-project-id> 
      PIXELA_USER: <user-id>
      PIXELA_TOKEN: <your-token>
      PIXELA_GRAPH: <your-graph-id-1>
    timeout: 10

Then, run the following.

make
sls deploy