Re: Hamster (Gnome Time Tracker) integration

Sébastien Lerique <[email protected]> Wed, 2 Mar 2016 17:24:23 +0100
Newsgroups gmane.comp.misc.workrave.user
Message-ID <[email protected]>
--===============0933458465896236907==
Content-Type: multipart/alternative;
	boundary="_5a39bfa9-b393-4c88-9c39-4a5eacafc264_"

--_5a39bfa9-b393-4c88-9c39-4a5eacafc264_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi=2C

> > Now there's an issue on their tracker for integration between hamster
> > and workrave (not really a priority=2C but still):
> > https://github.com/projecthamster/hamster/issues/246 . Taken from there=
=2C
> > the two ideas are:
> >=20
> > 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"
>=20
> Interesting features=2C but I think they should not be implemented by Wor=
krave itself.
>=20
> I see two options:
>=20
> 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 ha=
d any use for them.
>=20
> 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 impleme=
nt both 1) and 2).
> I assume Hamster's dbus interface has functions to pause timing and chang=
e a task.
>=20
> I think option 2) is the easiest solution. It also allows more freedom in=
 selecting a programming
> language (python=2C javascript=2C...)
>=20
> > Idea #2 would probably need workrave to publish its status changes to
> > dbus (or maybe it's already done?)
>=20
> Already done (On Linux=2C I stopped supporting D-Bus on Windows for now)
>=20
> Just let me know if Workrave's dbus interface is insufficient to implemen=
t these features.
> I can add events/functions if needed.

Thanks for the pointers! I'll try and look into it in more detail when I ge=
t some time.

Best
S=E9bastien
 		 	   		  =

--_5a39bfa9-b393-4c88-9c39-4a5eacafc264_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 12pt=3B
font-family:Calibri
}
--></style></head>
<body class=3D'hmmessage'><div dir=3D'ltr'>Hi=2C<br><br><div>&gt=3B &gt=3B =
Now there's an issue on their tracker for integration between hamster<br>&g=
t=3B &gt=3B and workrave (not really a priority=2C but still):<br>&gt=3B &g=
t=3B https://github.com/projecthamster/hamster/issues/246 . Taken from ther=
e=2C<br>&gt=3B &gt=3B the two ideas are:<br>&gt=3B &gt=3B <br>&gt=3B &gt=3B=
 1) workrave could "ask whether current task is still correct on<br>&gt=3B =
&gt=3B resumption from micro or rest breaks"<br>&gt=3B &gt=3B 2) hamster co=
uld "pause timing during rest break"<br>&gt=3B <br>&gt=3B Interesting featu=
res=2C but I think they should not be implemented by Workrave itself.<br>&g=
t=3B <br>&gt=3B I see two options:<br>&gt=3B <br>&gt=3B 1) Adding a plugin =
framework to Workrave and implement these features as a plugin.<br>&gt=3B I=
 considered adding support for plugins to Workrave but I never really had a=
ny use for them.<br>&gt=3B <br>&gt=3B 2) Create a 3rd party application tha=
t uses Workrave's and Hamster's dbus interfaces.<br>&gt=3B Workrave has a d=
bus interface that provides an event that is raised when a breaks starts or=
 ends.<br>&gt=3B This event can be processed by a third party application t=
hat can implement both 1) and 2).<br>&gt=3B I assume Hamster's dbus interfa=
ce has functions to pause timing and change a task.<br>&gt=3B <br>&gt=3B I =
think option 2) is the easiest solution. It also allows more freedom in sel=
ecting a programming<br>&gt=3B language (python=2C javascript=2C...)<br>&gt=
=3B <br>&gt=3B &gt=3B Idea #2 would probably need workrave to publish its s=
tatus changes to<br>&gt=3B &gt=3B dbus (or maybe it's already done?)<br>&gt=
=3B <br>&gt=3B Already done (On Linux=2C I stopped supporting D-Bus on Wind=
ows for now)<br>&gt=3B <br>&gt=3B Just let me know if Workrave's dbus inter=
face is insufficient to implement these features.<br>&gt=3B I can add event=
s/functions if needed.<br><br>Thanks for the pointers! I'll try and look in=
to it in more detail when I get some time.<br><br>Best<br>S=E9bastien<br></=
div> 		 	   		  </div></body>
</html>=

--_5a39bfa9-b393-4c88-9c39-4a5eacafc264_--


--===============0933458465896236907==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
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
--===============0933458465896236907==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Workrave-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/workrave-user

--===============0933458465896236907==--