batlog icon indicating copy to clipboard operation
batlog copied to clipboard

Need Other People's Data!

Open jradavenport opened this issue 10 years ago • 30 comments

I hope you all have enjoyed seeing my battery data and using this simple script to learn about your own computer and behavior. Many people star'd or fork'd this repo last year. Now I would love if some of you would be willing to share your data in return! My intention is to study the differences in people's computer behavior, as well as characterize how many laptop batteries age.

Let me know!

jradavenport avatar Jul 26 '14 22:07 jradavenport

Stargazers, what ya say? Got some data for me?

@bgriffen @stuartgallacher @Tafkas @awadsayeed @va3paw @galambalazs @nlazarevic @romeoro @rvidal @nphase @jaboutboul @mikehotel @jmackenz @ssloss @kangman @arjuntemurnikar @JohannMG @0xf2 @ashleydev @sh @h13ronim @urbansheep @PaulCapestany @rohn @anekinone @garethl @robertely @dapurv5 @ghv @rakhmad @hawkrives @Jackneill @sahilgupta @mariofts @alanho @mikehhodgson @elofgren @csenkbeil @cpg @pcx @dmanchon @scott-42 @ndbroadbent @georgiee @racx

jradavenport avatar Jul 26 '14 22:07 jradavenport

And some other Stargazers, any data you can share?

@nicksuch @mbrodo @Tanner @tsironis @TrevorS @maximz @mrexroad @roblight @cinquemb @hugorodgerbrown @clsnyder @zlapper @Furchin @derekeder @zeckalpha @davidbarton @solidline @jcla1 @vincentstorme @bleuarg @marynagle @jrk @RSully @jehiah @wbrenna @chicks-net

jradavenport avatar Jul 26 '14 22:07 jradavenport

Here's mine, since Sept 3, 2013: https://www.dropbox.com/s/9ax7dpkol01ed8b/.batlog.dat.gz

nphase avatar Jul 26 '14 22:07 nphase

I've added in a check for ExternalConnected as well... see pull request #3. I also changed my collection rate a few times (1-5 minute intervals), but the timestamps are there so you should be able to figure it out. November 5, 2013 until now. Here you go: http://kyle.marek-spartz.org/files/batlog.dat.tar.gz

kmarekspartz avatar Jul 26 '14 23:07 kmarekspartz

You probably want to know system information, too. I have a 2009 MacBook Pro 13" 2.53 GHz. I switched from a hard disk and optical drive to SSD and hard disk, with symlinks between them so I have a makeshift "fusion drive". I suspect you may be able to tell when I switched (I don't recall actually) from the data.

Edit: I use mine for both home and work stuff. I'm a software developer. Occasionally, some of my work stuff puts it through its paces.

kmarekspartz avatar Jul 26 '14 23:07 kmarekspartz

Thanks for the early replies!

Yeah, any meta data you can provide would be awesome too. Examples:

  • What model/year is your computer?
  • Is this a work or home computer primarily? Or both, like mine?
  • Where/when do you use it

jradavenport avatar Jul 26 '14 23:07 jradavenport

Sadly the cron job that was running my test died / disappeared at some point, so I only have four months' worth of data - adding that just in case it's useful. It's a 13" MBA, bought Jan-2013, details attached, used at work & home. https://dl.dropboxusercontent.com/u/3850912/batlog.dat.zip screen shot 2014-07-27 at 12 46 20

hugorodgerbrown avatar Jul 27 '14 10:07 hugorodgerbrown

Here is mine: https://dl.dropboxusercontent.com/u/155737/Archives/batlog_work.dat.zip It is from my work laptop: MacBook Pro Retina (MacBookPro10,1) tracking since beginning of March 2014

Tafkas avatar Jul 27 '14 20:07 Tafkas

happy to share https://www.dropbox.com/s/z4ufoj9en78mjrd/batlog_jehiah.20140727.dat.gz

@jradavenport Can you share any of the scripts you use to parse and plot the data via this repo? I have used similar data for my annual report in the past few years, but i'm hopeful to include this battery data this year. My dataset is for a Mid-2012 Air starting in Aug 2013 at cycle 59.

jehiah avatar Jul 28 '14 00:07 jehiah

@jehiah Thanks for sharing!! I don't have a python data parser at the moment, but will work on one this week since several people have asked for it

jradavenport avatar Jul 28 '14 04:07 jradavenport

Here is mine! https://www.dropbox.com/s/zverf5aw5kqkahw/2011_MacbookPro.batlog.dat.gz Used for both work/home.

aihardin avatar Jul 30 '14 04:07 aihardin

My data:

https://www.dropbox.com/s/5vmjk6oy8kd6u8t/batlog.dat This is where my actual log file is, so it will update every minute.

I can also share my coconutBattery logs, although they are much less informative (cycles and capacity only, with about 1 data point per day).

This is my primary computer (Engineering Student) late-2013 15" MBPr 30_jul_14__12_19_pm

ajf1994 avatar Jul 30 '14 16:07 ajf1994

I've written a batlog graph generator in JavaScript, using the d3.js library. You can find it here:

http://pietvandongen.github.io/batlog-d3-chart/

Its generated graphs look like this:

example graph

To use it, you'll have to convert a batlog dat file to csv first. You can do that using a Python script I've written:

https://github.com/pietvandongen/batlog2csv

Alternatively, you can generate CSV directly by replacing your shell script with another Python script I've written:

https://github.com/pietvandongen/batlog-python

pietvandongen avatar Aug 05 '14 12:08 pietvandongen

@pietvandongen This is really neat!!! thanks for sharing!

To those looking for a python parsing example, here you go!

jradavenport avatar Aug 06 '14 00:08 jradavenport

@jradavenport You're welcome, thanks for the inspiration! :)

pietvandongen avatar Aug 06 '14 12:08 pietvandongen

It doesn't seem to work as well for my dataset- Here's my data and the screenshot of the output.

https://www.dropbox.com/s/7s8lgum6ulbt4gu/Archive.zip

7_aug_14__6_18_pm

ajf1994 avatar Aug 07 '14 22:08 ajf1994

I don't have any data. When I update to 10.9 I lost everything, even the cron settings :'( But it's running again, this time pointing to dropbox. Call me again in a while. :) bye

mariofts avatar Aug 08 '14 04:08 mariofts

@ajf1994 Thanks for the bug report, I've reported it here: https://github.com/pietvandongen/batlog2csv/issues/4

pietvandongen avatar Aug 08 '14 08:08 pietvandongen

@ajf1994 I've fixed the bug, could you please try again?

pietvandongen avatar Aug 08 '14 08:08 pietvandongen

It's been almost a year! Anyone else have more data to share for a follow-up article comparing users?

jradavenport avatar Jul 07 '15 20:07 jradavenport

I shared a raw dataset previously on this thread, but i did use this dataset at the end of last year. https://jehiah.cz/one-four/ (it's the 5th report section on that page) and more details here https://jehiah.cz/a/macbook-air-battery

jehiah avatar Jul 07 '15 20:07 jehiah

Great plots, @jehiah. Thanks for sharing! Glad this script is being used

jradavenport avatar Jul 07 '15 21:07 jradavenport

My data up until just now is here (in CSV format): https://www.dropbox.com/s/9hq7s2okt4qbeh2/batlog.csv?dl=0

pietvandongen avatar Jul 08 '15 10:07 pietvandongen

Here is my 10 cents. Data since Dec 2013 from a 1.3GHz i5 Mac Air. https://drive.google.com/file/d/0Bwff1Zd8ZxmmWjVoTmw5dlRkTFE/view?usp=sharing

va3paw avatar Jul 09 '15 03:07 va3paw

Here are two log files for a 2011 Macbook Pro all the way to battery death and the replacement 2014 Macbook Pro. https://dl.dropboxusercontent.com/u/1031953/batlog.MBP2014.dat.gz https://dl.dropboxusercontent.com/u/1031953/batlog.MBP2011.dat.gz

aihardin avatar Jul 09 '15 03:07 aihardin

Specification file for computer : https://raw.githubusercontent.com/blakedietz/battery-log/master/system-specifications.md

Data : https://raw.githubusercontent.com/blakedietz/battery-log/master/batlog.dat

Have fun with the data! :+1:

blakedietz avatar Jul 12 '15 20:07 blakedietz

https://dl.dropboxusercontent.com/u/386773/batlog-2015.dat

Data for my rMBP (mid-2012) from the beginning of 2015 to July 13, 2015.

(I did replace the battery in… either April or May, I forget.)

hawkrives avatar Jul 13 '15 08:07 hawkrives

Here's my 12-month chart:

screenshot 2015-12-10 19 47 16

hugovk avatar Dec 10 '15 18:12 hugovk

Here's my 24-month chart: screenshot 2016-12-11 23 05 25

hugovk avatar Dec 11 '16 21:12 hugovk

Here's my 48-month (+1) chart: image

hugovk avatar Jan 05 '19 13:01 hugovk