Skip to content

A lightweight Go daemon that logs battery status and power information to CSV files on Linux systems with interactive TUI

License

Notifications You must be signed in to change notification settings

Prajwal-Prathiksh/battery-logger

Repository files navigation

Battery Logger Logo

Battery Logger

A lightweight Go daemon for battery monitoring, logging, and real-time visualization on Linux.

Battery Logger TUI Screenshot

Features

  • Battery and power monitoring
  • Configurable logging intervals
  • Automatic log rotation
  • Systemd integration
  • Interactive TUI: real-time charts, predictions, zoom/pan, cycle count

Installation

./install.sh

Usage

battery-logger run      # Start daemon
battery-logger tui      # Launch TUI
battery-logger status   # Show status

See docs/TUI.md for advanced TUI features and controls.

Service Management

make status     # Service status
make logs       # View logs
make stop       # Stop service
make start      # Start service
make uninstall  # Remove everything

Configuration

Config files (TOML):

See config file for all options (intervals, log paths, chart colors, etc).

Output

CSV log: ~/.local/state/battery-logger/battery.csv

Manual Service Installation

See systemd/ for service files. Use make or copy manually for custom setups.

Uninstallation

./uninstall.sh

Development

go build ./cmd/battery-logger
make clean

About

A lightweight Go daemon that logs battery status and power information to CSV files on Linux systems with interactive TUI

Resources

License

Stars

Watchers

Forks

Packages

No packages published