Re: statistics in windows
Ray Satiro <[email protected]> Sun, 17 Jun 2012 21:48:26 -0700 (PDT)
| Newsgroups | gmane.comp.misc.workrave.user |
|---|---|
| Message-ID | <[email protected]> |
> From: Mahesh Madhav <[email protected]> [...] >Is there a version of workrave-dump for Windows? I would like to extract the statistics off of my work laptop. >I poked around the web, and this email list, and came up empty. All the tools seem to be linux specific. >I also tried searching for a stats file in various folders in Windows but came up empty. Is the information stored in the registry or some other esoteric location? The file is %APPDATA%\Workrave\historystats. You can do it from windows but it requires some modification and also you'll have to install gnuplot: http://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.0/gp460-win32-setup.exe/download I did it in Windows using strawberry perl to run the perl script workrave-dump. In the script you'll have to change $source to the windows location if win32. I already made that change but there's no pull request for it yet. You can get the updated version here: https://raw.github.com/jay/workrave/c9067f3/contrib/plot/workrave-dump The gnuplot settings are pretty high at 55000 max you might try something smaller by changing line 9 in gnuplot-workrave: set yrange [*:55000] Then make sure gnuplot-workrave and workrave.out are in the same directory and launch gnuplot. Open gnuplot-workrave in gnuplot. You will have to choose to see files of all extensions rather than just .plt files. After it's opened you'll see 'Loaded xxxxx'. If you look in the directory with workrave.out you should now have a file workrave.png >If I can find the stats file, could I just move it over to linux and use workrave-dump to parse the info that way? > If you're going to try in unix and you are copying your files from windows it will likely fail with a parsing error ]nrecognized line (line 1): [WorkRaveStats 4 I often see weird output like that with files that are in Windows EOL format. They must all be converted to Unix EOL. So when you copy over the files use dos2unix to convert historystats, gnuplot-workrave and workrave-dump to Unix EOL first. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/