Timer script
@tshering (or anybody who knows bash scripting...)
I was thinking about the preventfreeze.sh I use for my Glo, and a timer I used in an old PDA of mine, to calculate my reading time and how long the battery lasted.
The idea was simple.
Start a timer app and then start the reader app.
When not reading, closing the PDA (a standby mode perhaps) made the timer stop.
Re-opening the device and the timer continues.
That way, I knew the battery consumption (more or less)
With the kobo script now.
I don't know anything about bash scripting, thats why I need some help.
As I understand it, it starts; it waits 1 (second?); and finishes.
I made it to wait 5, and it also didn't freeze.
If a script was made to add 5 seconds to a 0:00:00:00 (d:h:m:s) number in a text(?) file every 5 seconds, then the timer would be almost ready.
The only extra thing it would need is an other script that shows the 0:00:00:00 number and maybe has a way to reset it.
Of course this will count the reading time only if you shut down the reader when not reading (which is what I do, since the koreader sleep mode is not that reliable as the battery is concerned).
Is this possible?
TIA
|