testsAndMisc/TS/battery-status/README.md
Krzysztof kuhy Rudnicki e3f9e6dc0b fix: correct shebang and executable permissions
- Add +x to Python scripts with shebangs (3 files)
- Remove -x from non-script files like .cpp, .txt, makefile (23 files)
- Move shebang to first line in C/imageViewer/lint.sh
2025-11-30 13:42:16 +01:00

535 B

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.