{"id":18282795,"url":"https://github.com/chrishanzlik/sunshareesp8266client","last_synced_at":"2026-05-16T08:35:49.636Z","repository":{"id":156442291,"uuid":"622455463","full_name":"chrishanzlik/SunShareESP8266Client","owner":"chrishanzlik","description":"ESP8266 client for the SunShareAPI project","archived":false,"fork":false,"pushed_at":"2023-04-23T09:55:25.000Z","size":440,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T23:48:28.654Z","etag":null,"topics":["automation","client","data-reader","display","esp8266","huawei","inverter","sun2000","wemos-d1-mini"],"latest_commit_sha":null,"homepage":"","language":"C++","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/chrishanzlik.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}},"created_at":"2023-04-02T06:49:28.000Z","updated_at":"2023-04-26T14:34:26.000Z","dependencies_parsed_at":"2023-07-10T11:00:40.314Z","dependency_job_id":null,"html_url":"https://github.com/chrishanzlik/SunShareESP8266Client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrishanzlik%2FSunShareESP8266Client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrishanzlik%2FSunShareESP8266Client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrishanzlik%2FSunShareESP8266Client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrishanzlik%2FSunShareESP8266Client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrishanzlik","download_url":"https://codeload.github.com/chrishanzlik/SunShareESP8266Client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247983265,"owners_count":21028272,"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":["automation","client","data-reader","display","esp8266","huawei","inverter","sun2000","wemos-d1-mini"],"created_at":"2024-11-05T13:06:16.744Z","updated_at":"2026-05-16T08:35:44.600Z","avatar_url":"https://github.com/chrishanzlik.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SunShareESP8266Client\n\nClient application that accesses the `SunShareAPI` to display inverter data.\n\n![ESP Connection](./assets/sunshare_esp_connection.jpg)\n\nD1 = SCL  \nD2 = SDA\n\n## Parts\n\n| ID    | Description                                         |\n| ----- | --------------------------------------------------- |\n| LED1  | High gain indicator LED                             |\n| LED2  | Error / message LED                                 |\n| KEY1  | Switch that toggles through different display modes |\n| OLED1 | 128x64 px OLED I2C screen                           |\n| R1    | 10kΩ pull-down resistor for KEY1                    |\n| R2    | Current limiting resistor for LED1                  |\n| R3    | Current limiting resistor for LED2                  |\n| WEMOS | WEMOS D1 Mini board with an ESP8266 chip (v. 12)    |\n\n## Code setup\n\n1. Create a file named `credentials.h` inside the **include/** folder.\n2. Expose your wifi credentials in the following manner:\n\n```c\n#if !defined(CREDS_H)\n#define CREDS_H\n\nchar *ssid = \"YOUR_WIFI_SSID\";\nchar *password = \"YOUR_WIFI_PASSWORD\";\n\n#endif // CREDS_H\n\n```\n\n3. Adjust the API-Endpoint inside `main.cpp` to the address where your SunShareAPI is running (e.g replace `rpi2-node-1` with an ip address of your choice):\n\n```c\nInverterDataProvider data_provider(\"http://rpi2-node-1/inverter-data\");\n```\n\n## Display modes\n\nWith the KEY1 button, mentioned above, it's possible to switch through different display modes. The default display mode (MODE1) shows the current battery level, yield and the power consumption.\n\n- MODE1: Battery level / yield / power consumption\n- MODE2: Large battery icon\n- MODE3: Age of the dataset that is displayed (timestamp)\n\nMore content (incl. pictures) coming soon...\n\n## Visual prototype\n\n![Visual](./assets/led_examples.png)\n\n- Left: Normal state\n- Center: High gain\n- Right: Error\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrishanzlik%2Fsunshareesp8266client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrishanzlik%2Fsunshareesp8266client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrishanzlik%2Fsunshareesp8266client/lists"}