testsAndMisc-archive/TS/battery-status
Krzysztof kuhy Rudnicki 01091c09ce Add tests and fix pre-commit issues across all projects
- C/lichess_random_engine, vocabulary_curve, misc/split,
  1dvelocitysimulator, opening_learner: test suites added
- CPP/miscelanious: tests added
- TS/battery-status, champions_leauge_scores, two-inputs: tests added
- python_pkg/fm24_searcher, wake_alarm: new packages added
- Fix ruff/cppcheck/eslint/clang-format failures
- Update .gitignore for C/C++ build artifacts
2026-04-12 20:45:24 +02:00
..
public feat: pof show battery in react app 2025-09-02 15:19:30 +02:00
src Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
.gitignore feat: pof show battery in react app 2025-09-02 15:19:30 +02:00
index.html feat: pof show battery in react app 2025-09-02 15:19:30 +02:00
package-lock.json Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
package.json Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
README.md fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
tsconfig.base.json Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
tsconfig.json feat: pof show battery in react app 2025-09-02 15:19:30 +02:00
vite.config.ts Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00

Battery Status (React + TypeScript + Vite)

Shows current battery status (charging and percentage), plus time to full/empty when available.

Run locally

  1. Install deps
  2. Start dev server
npm install
npm run dev

Then open the printed local URL (default http://localhost:5173).

Notes:

  • The Battery Status API may be unavailable or disabled in some browsers for privacy reasons. In that case, the app will show a helpful message.
  • On laptops it typically works in Chromium-based browsers; mobile support varies.