Re: Hamster (Gnome Time Tracker) integration

Rob Caelers <[email protected]> Wed, 24 Feb 2016 19:18:58 +0100
Newsgroups gmane.comp.misc.workrave.user
Message-ID <[email protected]>
Hi,

> Now there's an issue on their tracker for integration between hamster
> and workrave (not really a priority, but still):
> https://github.com/projecthamster/hamster/issues/246 . Taken from there,
> the two ideas are:
> 
> 1) workrave could "ask whether current task is still correct on
> resumption from micro or rest breaks"
> 2) hamster could "pause timing during rest break"

Interesting features, but I think they should not be implemented by Workrave itself.

I see two options:

1) Adding a plugin framework to Workrave and implement these features as a plugin.
I considered adding support for plugins to Workrave but I never really had any use for them.

2) Create a 3rd party application that uses Workrave's and Hamster's dbus interfaces.
Workrave has a dbus interface that provides an event that is raised when a breaks starts or ends.
This event can be processed by a third party application that can implement both 1) and 2).
I assume Hamster's dbus interface has functions to pause timing and change a task.

I think option 2) is the easiest solution. It also allows more freedom in selecting a programming
language (python, javascript,...)

> Idea #2 would probably need workrave to publish its status changes to
> dbus (or maybe it's already done?)

Already done (On Linux, I stopped supporting D-Bus on Windows for now)

Just let me know if Workrave's dbus interface is insufficient to implement these features.
I can add events/functions if needed.

Kind regards,
  Rob

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140