gnome-pomodoro / gnome-pomodoro-tracking

Connect your Pomodoros to popular time tracking services (@odoo, @clockify, @toggl).
MIT License
27 stars 7 forks source link

Can't add toggl token #6

Closed sojusnik closed 4 years ago

sojusnik commented 4 years ago

Hey!

The new toggl plugin seems not to be working. When adding a token, then the following appears:

~$ gp-tracking --toggl-token 34jf827162hdasf...

usage: gp-tracking [-h] --clockify-token CLOCKIFY_TOKEN gp-tracking: error: the following arguments are required: --clockify-token

or

~$ gp-tracking --plugin toggl

usage: gp-tracking [-h] --clockify-token CLOCKIFY_TOKEN gp-tracking: error: the following arguments are required: --clockify-token

josehbez commented 4 years ago

Try:

  1. gp-tracking --clockify-token token-x-only-for-skip-process
  2. gp-tracking --plugin toggl
  3. gp-tracking --toggl-token 34jf827162hdasf...
sojusnik commented 4 years ago

Seems not to help:

~$ gp-tracking --clockify-token token-x-only-for-skip-process
{"message":"Full authentication is required to access this resource","code":1000}

BTW, I don't have a clockify account, only toggl.

josehbez commented 4 years ago

I added new patch, try:

Uninstall 
sh -c "$(curl -fsSL https://raw.githubusercontent.com/josehbez/gp-tracking/master/uninstall.sh)"

Install
sh -c "$(curl -fsSL https://raw.githubusercontent.com/josehbez/gp-tracking/master/install.sh)"

# toggl token 
gp-tracking --toggl-token TOKEN 
sojusnik commented 4 years ago

Thanks, works now!

BTW, Pomodoros under 2 minutes aren't captured by Toggl. Is this a limitation of Toggl or your plugin? At the beginning I thought that your plugin isn't working, because for testing purposes my Pomodoros were shorter than 2 minutes. Would love to see, that Pomodoros under 2 minutes were captured too.

Did you think about getting in touch with the maintainer of gnome-pomodoro, to advertise your plugin there? I think that a lot of people will find it quite useful, if it would be mentioned in the readme. Additionally, I've already linked it here.

Also, it should help to add "toggl" to the tag cloud of your project's GitHub page, see: grafik

josehbez commented 4 years ago

Thanks your feedback.