3 ms·
anyone know how to do something similar on a windows laptop?
by netcraft 13y ago
anyone know how to do something similar on a windows laptop?
- jbert 13y agoI'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
- jradavenport 13y agoI have no experience with this kind of stuff for Windows, but I really hope somebody wiser than I can do it easily. I assume there must be an equivalent to cron in win8?
- voltagex_ 13y agohttp://www.techrepublic.com/blog/windows-and-office/check-out-the-health-of-your-device-with-the-windows-8-battery-report/ http://www.techrepublic.com/blog/windows-and-office/check-ou... This one will also output in XML. The APIs should be there in Windows 7, too.