• Stars
    star
    190
  • Rank 203,739 (Top 5 %)
  • Language
    Shell
  • License
    BSD 2-Clause "Sim...
  • Created about 11 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

1 Year of MacBook Air Battery Logs

batlog

Tracking your Mac's battery useage, with data saved every minute!

As an example, includes 1 Year of my 2012 MacBook Air's. See blog post here: http://www.ifweassume.com/2013/08/the-de-evolution-of-my-laptop-battery.html

Note: The data file is a litle ugly, but nothing a simple parser can't fix.

Install Guide

To run the script yourself, first download the battest.sh file. I renamed it using my terminal to be a hidden file like so:

$ mv battest.sh .battest.sh

Next, set up your cron jobs using crontab. You can directly edit your current cron jobs by typing this in to the Terminal:

$ crontab -e

and enter this line:

* * * * * /path/to/your/repo/.battest.sh

or if you didn't rename it to be hidden, add this line:

* * * * * /path/to/your/repo/battest.sh

However, if you have lots of various cron jobs like me running, you might want to keep a file sitting around with all your cron jobs listed out. I have another hidden file in my home directory called .cron.username (replace username, of course) that is full of these cron job lines, like above. You could call this file anything you want, and just use TextEdit to create it if you like. Just create this file with one line in it:

* * * * * /path/to/your/repo/.battest.sh

and then tell cron to look at it by typing:

$ crontab .cron.username

At any time you can see what is in your cron job list by typing:

$ crontab -l

Happy data gathering!

Charts

You can turn your data into charts by first converting the batlog data file into a CSV file using batlog2csv and then dropping the CSV into batlog chart generator. This will generate charts like:

example graph

More Repositories

1

cubehelix

A full implementation of Dave Green's "cubehelix" colormap for Python
Jupyter Notebook
83
star
2

cubehelix_hex

HEX codes for cubehelix, also formatted for Tableau
11
star
3

appaloosa

Python-based flare finding code for Kepler light curves.
Python
8
star
4

jradavenport_idl

General purpose IDL tools written by @jradavenport
IDL
8
star
5

pykosmos

An easy to use reduction package for one-dimensional longslit spectroscopy.
Jupyter Notebook
8
star
6

elevate-apj

Working to elevate the readability and design of astronomy journal articles.
TeX
7
star
7

FFD

How to generate a stellar Flare Frequency Distribution, and its uncertainties
Python
6
star
8

plx_gif

Creating an animation demonstrating astronomical parallax in IDL
IDL
6
star
9

salary

Jupyter Notebook
5
star
10

random-forest-timeseries

Messing about with doing time series forecasting using Random Forest regression
5
star
11

batlog2019

the 2019 investigation of my laptop battery use
Jupyter Notebook
5
star
12

Gender-in-Astro

A central repository for the ongoing study of gender in astronomy conferences
Jupyter Notebook
5
star
13

twainbot

Python code to create Twitter robot
Python
5
star
14

TheHammer

The Hammer: An IDL Spectral Typing Suite
Prolog
4
star
15

NWxSW_github_tutorial

Jupyter Notebook
4
star
16

gaia2_kep_rot

Rotation from Kepler + Distances from Gaia DR2 = Age distribution in the field!
Jupyter Notebook
3
star
17

EBHRD

HR Diagram of Eclipsing Binary Stars
Jupyter Notebook
3
star
18

Interesting_Boring

Things that seem interesting, but on closer examination turn out to be boring, which is interesting!
Jupyter Notebook
3
star
19

kic2tic

convert from Kepler Input Catalog (KIC) to TESS Input Catalog (TIC)
Jupyter Notebook
3
star
20

faceball

Ranking football players by their smiles
Python
3
star
21

ingot

Estimating stellar [Fe/H] using Wise + Gaia data alone
Jupyter Notebook
3
star
22

rayleigh

Searching for periodicity from event times
Python
2
star
23

kosmos-arc

Calibrated internal arc lamp templates for KOSMOS at APO
Jupyter Notebook
2
star
24

HS-Hya

An eclipsing binary with shrinking eclipses, observed with TESS
Jupyter Notebook
2
star
25

apollo11landing

Jupyter Notebook
2
star
26

kepler_flares2

the sequal
Jupyter Notebook
2
star
27

FBEYE

Flares By Eye, an IDL suite for analyzing Kepler light curves and validating flares
IDL
2
star
28

aas225-gender

Data and analysis for the AAS 225 gender in science talks study
Jupyter Notebook
2
star
29

GoT

exploring the scripts for every episode of Game of Thrones (HBO)
Jupyter Notebook
2
star
30

airports_2019

Jupyter Notebook
2
star
31

gj1243_10yrs

What does the benchmark flaring M dwarf look like after +10 years of space-based monitoring?
Jupyter Notebook
2
star
32

betelgeuse

Jupyter Notebook
1
star
33

flare-decomp

Trying to properly decompose complex flares
Python
1
star
34

playing_with_shapefiles

Jupyter Notebook
1
star
35

sunrise

Python
1
star
36

RadioTrip

Python
1
star
37

gaia_rot

playing with Gaia DR1 & the Kepler rotating stars
Jupyter Notebook
1
star
38

dialogo

sopra i due massimi sistemi del mondo: a Bayesian approach
TeX
1
star
39

flare-fit

Use IDL scripts to fit flare model
IDL
1
star
40

us_sbux2018

Jupyter Notebook
1
star
41

spots-and-flares

A phenomenological light curve model with spots and flares
IDL
1
star
42

flare_index_gp

Model the solar "flare index" using a Gaussian Process
Jupyter Notebook
1
star
43

qthist2d

Use a simple Quad Tree to generate a 2D histogram
Jupyter Notebook
1
star
44

nwam2018

CSS
1
star
45

WWU-seminar-2018

Astro/Phys seminar on practical coding and data science techniques
Jupyter Notebook
1
star
46

trappist-flares

messing about with Trappist 1 & K2
Jupyter Notebook
1
star
47

spot-colors

Kevin's Technicolor Dreamcoat
Jupyter Notebook
1
star
48

world-flag

A new Flag of Earth made in Python
Jupyter Notebook
1
star
49

WWU-seminar-2016

Practical coding and data science techniques for astronomy students
Jupyter Notebook
1
star
50

issues-2016

Python
1
star
51

2mass_paper

TeX
1
star
52

GALEX_Boyajian

Looking at "Boyajian's Star" with the GALEX gPhoton tool
Jupyter Notebook
1
star
53

gender-web-form

Web Form used for Gender in Astro Conference studies
HTML
1
star
54

FFIorBUST

Make really bad light curves from the Kepler Full Frame Images
Python
1
star