-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
Feature Proposal: Implement Data Export Features
Problem
Users can visualize data from various IoT sources (MQTT, ThingSpeak, Adafruit, Blynk, Grafana) but cannot export:
- Charts as images (PNG/JPEG)
- Raw data as CSV or JSON
- Only manual row-by-row copying is available (inefficient)
This limits usability for:
- Sharing dashboards with teams
- Including data in reports/documentation
- Offline analysis or external tool integration
- Enterprise compliance requirements
Solution
Add export functionality using CDN libraries:
- html2canvas: Convert charts to PNG downloads
- PapaParse: Convert JSON data to CSV downloads
Add "Export Chart" and "Export Data" buttons to the UI that enable one-click exports.
Implementation Steps
- Load CDN libraries in HTML header
- Create export utility functions in script.js
- Add export buttons to chart blocks and table section
- Bind buttons to export functions
- Handle file downloads with proper formatting
UI Changes
-
Export Chart button: Next to each chart (top-right of chart block)
- Exports chart as PNG with filename:
chart_[name]_[date].png
- Exports chart as PNG with filename:
-
Export Data button: Above the data table
- Dropdown/menu with CSV and JSON options
- Exports with filename:
data_[date].csvor.json
Benefits
- Data Sharing: Users can easily share dashboards + data with teams
- Reporting: Include professional charts in reports and documentation
- Integration: Export data for analysis in Excel, Python, R, external tools
- Compliance: Enable audit trails and data export requirements
- Competitiveness: Brings OpenDots to parity with other IoT dashboards
Reactions are currently unavailable