Bug 522 - provide a recipe to graph workrave-measured activity
Status:
RESOLVED FIXED
Component:
Core :: UNIX
Version:
1.8.1
Hardware:
PC Linux
Importance:
P5 enhancement
Target Milestone:
---
Assignee:
Rob Caelers
URL:
http://www.tsaiberspace.net/projects/workrave/
Depends on:
Blocks:
Reported:
Mar 30 2006 22:22:41 UTC
by:
Robert Tsai
Modified:
Jan 25 2016 16:59:22 UTC
CC List:
Yaco
IdWhoWhenSizeType
52dump workrave statistics into a normalized format
Robert TsaiMar 30 2006 22:24:02 UTC4083application/octet-stream
53reads output "workrave.out" from workrave-dump and produces a graph
Robert TsaiMar 30 2006 22:24:33 UTC375application/octet-stream
WhoWhenWhatRemovedAdded
Robert TsaiMar 30 2006 22:25:04 UTCccRobert Tsai
urlhttp://www.patrika-online.com/blog/2006/03/30/workrave/
Robert TsaiMar 30 2006 22:25:20 UTCccRobert Tsai
Robert TsaiApr 23 2006 08:59:04 UTCurlhttp://www.patrika-online.com/blog/2006/03/30/workrave/http://www.patrika-online.com/projects/workrave/
Robert TsaiApr 23 2006 23:21:03 UTCurlhttp://www.patrika-online.com/projects/workrave/http://www.tsaiberspace.net/projects/workrave/
Rob CaelersMay 12 2006 21:29:38 UTCstatusNEWRESOLVED
resolutionFIXED
YacoJan 25 2016 16:59:22 UTCccYaco
Description
Robert Tsai  Mar 30 2006 22:22:41 UTC
This is just for fun; I wrote a script to dump the statistics measured by workrave (keyboarding, mousing, etc.). This output is then fed to gnuplot to generate a graph of activity over time.
Comment 1
Robert Tsai  Mar 30 2006 22:24:02 UTC
Created attachment 52
dump workrave statistics into a normalized format

script reads workrave historystats file and outputs to stdout (intended use is to redirect to file "workrave.out".
Comment 2
Robert Tsai  Mar 30 2006 22:24:33 UTC
Created attachment 53
reads output "workrave.out" from workrave-dump and produces a graph
Comment 3
Rob Caelers  Apr 23 2006 00:42:28 UTC
Very cool!

Perhaps we could add a link on workrave.org or add this to a contrib directory.

Raymond?
Comment 4
Robert Tsai  Apr 23 2006 08:59:04 UTC
I would prefer contrib. The link will not be very reliable (it is a home connection that IRL will be moving soon). If you require a contact e-mail address (I understand that perhaps you do not want to support "contrib" material), I can provide one to be included with any "contrib" notes.
Comment 5
Rob Caelers  May 12 2006 21:29:38 UTC
Added contrib directory. 
Comment 6
Yaco  Jan 25 2016 16:59:22 UTC
The script is not working. I am using 1.10.08. This is the error:

[yaco@manjaro stats]$ ./workrave-dump 
syntax error at ./workrave-dump line 88, near "@breaktypes qw(micro rest daily)"
Global symbol "@breaktypes" requires explicit package name (did you forget to declare "my @breaktypes"?) at ./workrave-dump line 89.
Execution of ./workrave-dump aborted due to compilation errors.