{"id":26530142,"url":"https://github.com/zebrajaeger/solarcurrentlogger","last_synced_at":"2026-04-18T09:40:12.796Z","repository":{"id":282680059,"uuid":"949335976","full_name":"zebrajaeger/SolarCurrentLogger","owner":"zebrajaeger","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-16T08:11:27.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T09:20:57.464Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zebrajaeger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-03-16T08:08:10.000Z","updated_at":"2025-03-16T08:11:30.000Z","dependencies_parsed_at":"2025-03-16T09:21:06.275Z","dependency_job_id":"011680fa-9c04-4fd3-9485-607a13e462d2","html_url":"https://github.com/zebrajaeger/SolarCurrentLogger","commit_stats":null,"previous_names":["zebrajaeger/solarcurrentlogger"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2FSolarCurrentLogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2FSolarCurrentLogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2FSolarCurrentLogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2FSolarCurrentLogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zebrajaeger","download_url":"https://codeload.github.com/zebrajaeger/SolarCurrentLogger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244841689,"owners_count":20519461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2025-03-21T17:38:19.497Z","updated_at":"2026-04-18T09:40:07.748Z","avatar_url":"https://github.com/zebrajaeger.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SolarCurrentLogger\n\n## Overview\n\n**SolarCurrentLogger** is a two-component project designed to measure and log current flow through a solar cell. It consists of:\n\n- **Firmware** (ESP32-based client): Measures current using an INA219 sensor and transmits data to a server.\n- **Server** (Node.js \u0026 InfluxDB): Stores received data and provides visualization via Grafana.\n\n## Features\n\n- **ESP32 Client (Firmware)**\n  - Reads current values from an INA219 sensor.\n  - Stores measurements in a ring buffer.\n  - Sends data asynchronously via HTTP/HTTPS.\n  - Supports API token authentication.\n  \n- **Server**\n  - Receives data via an Express.js API.\n  - Stores measurements in an InfluxDB database.\n  - Provides a Grafana dashboard for visualization.\n\n## Installation\n\n### 1. Clone the Repository\n\n```sh\ngit clone \u003crepository-url\u003e\ncd \u003crepository-folder\u003e\n```\n\n### 2. Set Up the Server\n\nNavigate to the `server` directory and follow the installation steps in `server/README.md`.\n\n```sh\ncd server\n```\n\nStart the server with:\n```sh\ndocker compose up -d\n```\n\nSet up **InfluxDB**:\n- Open: `http://\u003cyour-server-ip\u003e:8086`\n- Log in (`admin` / `admin123` by default)\n- Generate a **Write API Token** and update `docker-compose.yml`.\n- Generate a **Read API Token** for Grafana.\n\nSet up **Grafana**:\n- Open: `http://\u003cyour-server-ip\u003e:3000`\n- Log in (`admin` / `admin` by default)\n- Add InfluxDB as a data source using the Read API Token.\n\n### 3. Set Up the ESP32 Client\n\nNavigate to the `firmware` directory and follow the installation steps in `firmware/README.md`.\n\n```sh\ncd firmware\n```\n\nModify `src/config.h`:\n```cpp\n#define WIFI_SSID \"your_wifi_ssid\"\n#define WIFI_PASSWORD \"your_wifi_password\"\n#define SERVER_URL \"http://\u003cyour-server-ip\u003e:7777/api/v1/data\"\n```\n\nCompile and upload the firmware:\n```sh\npio run --target upload\n```\n\n### 4. Verify Data Flow\n\n- The ESP32 client should now send data to the server every few seconds.\n- Data should appear in **InfluxDB**.\n- **Grafana** should display the real-time measurements.\n\n## License\n\nThis project is licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebrajaeger%2Fsolarcurrentlogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzebrajaeger%2Fsolarcurrentlogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebrajaeger%2Fsolarcurrentlogger/lists"}