-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata.go
28 lines (25 loc) · 1.13 KB
/
data.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package main
import "github.com/nItroTools/sungrow-go/ws"
var (
pvKeys = ws.Keys{
"I18N_COMMON_TOTAL_DCPOWER": "sunPower",
"I18N_COMMON_PV_DAYILY_ENERGY_GENERATION": "sunPowerDay",
"I18N_COMMON_PV_TOTAL_ENERGY_GENERATION": "sunPowerTotal",
"I18N_COMMON_FEED_NETWORK_TOTAL_ACTIVE_POWER": "netFeedIn",
"I18N_COMMON_DAILY_FEED_NETWORK_VOLUME": "netFeedInDay",
"I18N_COMMON_TOTAL_FEED_NETWORK_VOLUME": "netFeedInTotal",
"I18N_CONFIG_KEY_4060": "netPower",
"I18N_COMMON_ENERGY_GET_FROM_GRID_DAILY": "netPowerDay",
"I18N_COMMON_TOTAL_ELECTRIC_GRID_GET_POWER": "netPowerTotal",
"I18N_COMMON_LOAD_TOTAL_ACTIVE_POWER": "consumption",
"I18N_CONFIG_KEY_1001188": "consumptionRate",
"I18N_COMMON_AIR_TEM_INSIDE_MACHINE": "inverterTemp",
}
batteryKeys = ws.Keys{
"I18N_COMMON_BATTERY_SOC": "batteryLevel",
"I18N_CONFIG_KEY_3907": "batteryCharge",
"I18N_CONFIG_KEY_3921": "batteryDischarge",
"I18N_COMMON_BATTARY_HEALTH": "batteryHealth",
"I18N_COMMON_BATTERY_TEMPERATURE": "batteryTemp",
}
)