Skip to content

This is a simple shell script along with a R script which logs your battry health status and creat a daily and life time battry life trend.

Notifications You must be signed in to change notification settings

karan3242/linux_battry_health_log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is a selection of Shell and R Scripts which logs the battery health of your laptop. The script saves your batries current health and charge percentage, and also a computed real charge percentage based on the over all battery health.

Running the Scripts

To log the script you need to setup a cronjob calling the script every few minuets. I personally call the script.sh every 5 mins (*/5 * * * *). The output is printed out to a log.csv file from which the print_chart.R script reads. You may have to update script.sh to point to the correct system files to retrie the battry healt.

You can rung the print_chart.R script when ever you want to update the chart and save it a battery_helth.pdf.

About

This is a simple shell script along with a R script which logs your battry health status and creat a daily and life time battry life trend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published