This is a Next.js 16 web application for Raspberry Pi uConsole CM5 that: - Monitors battery metrics in real-time from AXP20x power supply - Visualizes battery data with charts (Recharts) - Stores historical data in SQLite database - Exports data to CSV - Manages monitoring sessions New Feature: 4G Power Manager - Automatically detects 4G modem state changes - Reduces CM5 CPU frequency when 4G is active to prevent hangs - Uses udev rules + systemd service for reliable monitoring - Solves battery power delivery limitation (18-20W max from AXP228) Hardware: Raspberry Pi CM5 with AXP228 power management IC Tech Stack: Next.js 16, React 19, TypeScript, Tailwind CSS 4, shadcn/ui
51 lines
654 B
Plaintext
51 lines
654 B
Plaintext
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
|
|
# dependencies
|
|
/node_modules
|
|
/.pnp
|
|
.pnp.*
|
|
.yarn/*
|
|
!.yarn/patches
|
|
!.yarn/plugins
|
|
!.yarn/releases
|
|
!.yarn/versions
|
|
|
|
# testing
|
|
/coverage
|
|
|
|
# next.js
|
|
/.next/
|
|
/out/
|
|
|
|
# production
|
|
/build
|
|
|
|
# misc
|
|
.DS_Store
|
|
*.pem
|
|
|
|
# debug
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
.pnpm-debug.log*
|
|
|
|
# env files (can opt-in for committing if needed)
|
|
.env*
|
|
|
|
# vercel
|
|
.vercel
|
|
|
|
# typescript
|
|
*.tsbuildinfo
|
|
next-env.d.ts
|
|
|
|
# battery monitor specific
|
|
battery-data.db
|
|
battery-data.db-shm
|
|
battery-data.db-wal
|
|
/var/log/4g-power-manager.log
|
|
/tmp/4g-modem-state
|
|
/tmp/4g-modem-last-state
|
|
test-manual.js
|