Skip to content

jagijagijag1/toggl2pixela

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published