Skip to content

Web-UI: show SD card storage usage - #451

Open
joker-mik wants to merge 2 commits into
biologist79:devfrom
joker-mik:webui-sd-card-storage
Open

Web-UI: show SD card storage usage#451
joker-mik wants to merge 2 commits into
biologist79:devfrom
joker-mik:webui-sd-card-storage

Conversation

@joker-mik

Copy link
Copy Markdown
Contributor

Summary

Adds storage usage information for the SD card to the Files section of the web UI.
image

The display shows:

  • used storage
  • total storage
  • free storage
  • usage percentage
  • progress bar

Storage values are displayed using decimal units (MB / GB).

Implementation

  • add helpers for SD card mounted state, total filesystem size and used size
  • expose storage information through /info?section=sdcard
  • display storage usage above the file browser
  • refresh the information when opening the Files/RFID tab and after file operations
  • add German, English and French translations
  • handle unavailable SD cards and unavailable filesystem statistics

Testing

Tested on real ESPuino hardware with an SD card.

  • storage capacity and usage are displayed correctly
  • file browser continues to work normally
  • storage information updates after file operations
  • tested with desktop browser and Android/Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant