Download — retrieve files¶
Document Context¶
- Purpose: SD card file download API for retrieving CSV reports and other files with appropriate MIME type handling
- When to use: Downloading meter data CSV files, retrieving stored reports, backing up configuration files
- Prerequisites: SD card with files available, knowledge of target filenames, HTTP download mechanisms
- Related to: File listing, CSV format specification, data logging configuration
- Validates against: File existence on SD card, MIME type detection by extension, HTTP content delivery standards
Key Facts¶
- Endpoint: GET
/sdcard/filename.ext- Download specific file by exact filename - MIME types: text/csv for CSV reports, appropriate types based on file extension
- Download methods: Direct browser access, cURL with -O flag for filename preservation
- Content: Raw file data with proper Content-Type headers for client handling
- CSV format: Structured meter data with timestamps, measurements, and status information
Download files directly via HTTP. For CSV reports the device serves text/csv; for other files the MIME type depends on extension.
Request¶
Examples¶
View content:
Save to disk:
Download with curl
Use -O to keep the original filename. You can also download from the browser at http://<device_ip>/sd.html.