{"id":50361113,"url":"https://github.com/tectiv3/r3p-dashboard","last_synced_at":"2026-05-30T01:30:35.131Z","repository":{"id":343291283,"uuid":"1176976515","full_name":"tectiv3/r3p-dashboard","owner":"tectiv3","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-20T17:52:42.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-21T09:07:45.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tectiv3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-09T15:12:22.000Z","updated_at":"2026-03-20T17:52:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tectiv3/r3p-dashboard","commit_stats":null,"previous_names":["tectiv3/r3p-dashboard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tectiv3/r3p-dashboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fr3p-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fr3p-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fr3p-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fr3p-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tectiv3","download_url":"https://codeload.github.com/tectiv3/r3p-dashboard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fr3p-dashboard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33677258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-30T01:30:34.688Z","updated_at":"2026-05-30T01:30:35.122Z","avatar_url":"https://github.com/tectiv3.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# r3p-dashboard\n\nStandalone Go binary that subscribes to MQTT topics published by [r3p-mqtt](https://github.com/tectiv3/r3p-mqtt), logs all data to SQLite, and serves a web dashboard for live state and historical time-series visualization.\n\n\u003cimg width=\"800\" src=\"https://github.com/user-attachments/assets/71d6685b-7d35-439e-90e5-e85eb8a7b8d2\" /\u003e\n\n\n## Features\n\n- Real-time monitoring via SSE (Server-Sent Events)\n- Historical time-series charts with automatic resolution selection\n- Automatic data downsampling (raw → 5min → 1h → 1d)\n- Dark/light/system theme support\n- Configurable metric and chart visibility (saved in browser localStorage)\n- Zero external services — single binary, SQLite storage\n- Embedded web UI — no separate frontend build step\n\n## Quick Start\n\n```bash\n# Build\ngo build -o r3p-dashboard\n\n# Configure\ncp config.example.json config.json\n# Edit config.json with your MQTT broker address\n\n# Run\n./r3p-dashboard\n```\n\nOpen `http://localhost:8080` (or whatever port you configured).\n\n## Configuration\n\n```json\n{\n  \"mqtt\": {\n    \"host\": \"192.168.1.105\",\n    \"port\": 1883,\n    \"topic_prefix\": \"ecoflow/r3p\"\n  },\n  \"db_path\": \"database.db\",\n  \"listen\": \":8080\"\n}\n```\n\nPass a custom config path as the first argument: `./r3p-dashboard /path/to/config.json`\n\n## API\n\n| Endpoint | Description |\n|----------|-------------|\n| `GET /api/current` | Latest value for all topics |\n| `GET /api/history?topic=X\u0026from=T\u0026to=T` | Time-series (auto-selects resolution) |\n| `GET /api/topics` | Topic registry (name, scale, unit) |\n| `GET /api/events?from=T\u0026to=T` | Fault events |\n| `GET /api/stream` | SSE real-time updates |\n\n## Data Retention\n\n| Age | Resolution |\n|-----|-----------|\n| \u003c 7 days | Raw (per-second) |\n| 7–90 days | 5-minute aggregates |\n| 90 days–2 years | 1-hour aggregates |\n| \u003e 2 years | 1-day aggregates |\n\n## Deployment\n\n```bash\n# Copy binary and config\nsudo mkdir -p /opt/r3p-dashboard\nsudo cp r3p-dashboard config.json /opt/r3p-dashboard/\n\n# Install systemd service\nsudo cp r3p-dashboard.service /etc/systemd/system/\nsudo systemctl enable --now r3p-dashboard\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftectiv3%2Fr3p-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftectiv3%2Fr3p-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftectiv3%2Fr3p-dashboard/lists"}