typerooni
typerooni copied to clipboard
Downloading data
Would it be possible to add a feature allowing the data from a single run to be downloaded in xls or csv format?
This is a good idea, and I'll go ahead and work on putting it in.
In the meantime, here's a workaround:
JSON.stringify(typerooni.core.history_json())
If you write that into your browser console after a game, it will spit out your history up until then as a JSON string (if you've taken quite a few tests, this string may be impractically long and very slow when it prints out to the console). It's the internal format of your history, and it's an array of histories, and in each histroy is an array of "words" that look like this:
{"times":[95,98,128,112],"word":"they ","correct":true,"backspace-used":false}
where 95 is the number of milliseconds between typing the "t" and the "h" in the word "they ". The 98 is the number of milliseconds between typing the "h" and the "e", and so on. If you typed the word correctly, then "correct" will be set to true, and if you used the backspace while typing that word, then "backspace-used" will be true.
Just don't forget that overall, it's an array of arrays of word objects!
This is great, thanks.
p
On Mon, Feb 8, 2016 at 6:40 PM, Dominic Muller [email protected] wrote:
This is a good idea, and I'll go ahead and work on putting it in.
In the meantime, here's a workaround:
JSON.stringify(typerooni.core.history_json())
If you write that into your browser console after a game, it will spit out your history up until then as a JSON string (if you've taken quite a few tests, this string may be impractically long and very slow when it prints out to the console). It's the internal format of your history, and it's an array of histories, and in each histroy is an array of "words" that look like this:
{"times":[95,98,128,112],"word":"they ","correct":true,"backspace-used":false}
where 95 is the number of milliseconds between typing the "t" and the "h" in the word "they ". The 98 is the number of milliseconds between typing the "h" and the "e", and so on. If you typed the word correctly, then "correct" will be set to true, and if you used the backspace while typing that word, then "backspace-used" will be true.
Just don't forget that overall, it's an array of arrays of word objects!
— Reply to this email directly or view it on GitHub https://github.com/domgetter/typerooni/issues/1#issuecomment-181625828.