Workrave keeps precise data about when the user was idle in
~/.workrave/idlelog..log.
An example of what one can do with this data can be seen in a graph of
the data included in an Ubuntu bug report at this location:
https://bugs.launchpad.net/bugs/78959Unfortunately, there does not seem to be any documentation of the
format of the ~/.workrave/idlelog..log file, and the format is not
obvious from merely viewing the file.
I've asked the reporter of the above-mentioned bug whether he still
has the code he used to extract the data from the idle log file. He
is not sure whether he still has the code.
Does anyone else have code (outside of Workrave itself) for extracting
the idle data from ~/.workrave/idlelog..log? As an alternative, is
there some way to use Workrave itself to output this data in an
easy-to-parse format, perhaps a command-line option?
I'd like to use the data in a daily cron job to automatically reward
the user if the idle time data matches certain patterns. For example,
this would make it easy for me to write a program that rewarded the
user for refraining from touching the keyboard/mouse during a certain
time period.
I need something that can run from a cron job. It is not sufficient
to use Workrave's GUI unless doing so can cause Workrave to be
scheduled to emit this data to a file once per day in an easy-to-parse
and documented format.
Thanks for your time in considering my question.
--
With my best regards,
Joe Wells
------------------------------------------------------------------------------
_______________________________________________
Workrave-user mailing list
Workrave-user@...
https://lists.sourceforge.net/lists/listinfo/workrave-user