Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrishanzlik/sunshareesp8266client
ESP8266 client for the SunShareAPI project
https://github.com/chrishanzlik/sunshareesp8266client
automation client data-reader display esp8266 huawei inverter sun2000 wemos-d1-mini
Last synced: 12 days ago
JSON representation
ESP8266 client for the SunShareAPI project
- Host: GitHub
- URL: https://github.com/chrishanzlik/sunshareesp8266client
- Owner: chrishanzlik
- License: mit
- Created: 2023-04-02T06:49:28.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-23T09:55:25.000Z (over 1 year ago)
- Last Synced: 2024-11-05T13:12:47.528Z (about 2 months ago)
- Topics: automation, client, data-reader, display, esp8266, huawei, inverter, sun2000, wemos-d1-mini
- Language: C++
- Homepage:
- Size: 430 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SunShareESP8266Client
Client application that accesses the `SunShareAPI` to display inverter data.
![ESP Connection](./assets/sunshare_esp_connection.jpg)
D1 = SCL
D2 = SDA## Parts
| ID | Description |
| ----- | --------------------------------------------------- |
| LED1 | High gain indicator LED |
| LED2 | Error / message LED |
| KEY1 | Switch that toggles through different display modes |
| OLED1 | 128x64 px OLED I2C screen |
| R1 | 10kΩ pull-down resistor for KEY1 |
| R2 | Current limiting resistor for LED1 |
| R3 | Current limiting resistor for LED2 |
| WEMOS | WEMOS D1 Mini board with an ESP8266 chip (v. 12) |## Code setup
1. Create a file named `credentials.h` inside the **include/** folder.
2. Expose your wifi credentials in the following manner:```c
#if !defined(CREDS_H)
#define CREDS_Hchar *ssid = "YOUR_WIFI_SSID";
char *password = "YOUR_WIFI_PASSWORD";#endif // CREDS_H
```
3. 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):
```c
InverterDataProvider data_provider("http://rpi2-node-1/inverter-data");
```## Display modes
With 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.
- MODE1: Battery level / yield / power consumption
- MODE2: Large battery icon
- MODE3: Age of the dataset that is displayed (timestamp)More content (incl. pictures) coming soon...
## Visual prototype
![Visual](./assets/led_examples.png)
- Left: Normal state
- Center: High gain
- Right: Error