2 ms·
I'd guess: - write a little code to drive this API: http://stackoverflow.com/questions/7785096/read-laptop-battery-status-in-float-double http://stackoverflow.
by jbert 13y ago
I'd guess:
- write a little code to drive this API: http://stackoverflow.com/questions/7785096/read-laptop-battery-status-in-float-double http://stackoverflow.com/questions/7785096/read-laptop-batte...
- and either use a task scheduler to run your code every minute, or startup a long-lived process which just does this and sleeps
- output in whatever format you like. CSV is obviously good, but given richer APIs on windows you could dump it straight into an excel sheet I guess.
- Scaevolus 13y agoRRDTool is great for storing these sorts of time-series archives, and it will generate pretty graphs as well. You could cobble together an app starting from these StackOverflow postings: Task Scheduling: http://stackoverflow.com/a/2725908 http://stackoverflow.com/a/2725908 RRD interface: https://pypi.python.org/pypi/PyRRD https://pypi.python.org/pypi/PyRRD Battery reading: http://stackoverflow.com/a/6156606 http://stackoverflow.com/a/6156606