Skip to content

Commit 5d844b3

Browse files
committed
Solaredge API, now using minus 10 minutes
1 parent 2bc44f0 commit 5d844b3

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

hardware/SolarEdgeAPI.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ bool SolarEdgeAPI::StopHardware()
9494

9595
void SolarEdgeAPI::Do_Work()
9696
{
97+
_log.Log(LOG_STATUS, "SolarEdgeAPI Worker started...");
9798
int sec_counter = 295;
9899
while (!m_stoprequested)
99100
{
@@ -147,7 +148,7 @@ void SolarEdgeAPI::GetMeterDetails()
147148
sResult = ReadFile("E:\\SolarEdge.json");
148149
#else
149150
time_t atime = mytime(NULL);
150-
atime = (atime / 300) * 300;
151+
//atime = (atime / 300) * 300;
151152
struct tm ltime;
152153
localtime_r(&atime, &ltime);
153154

@@ -162,7 +163,7 @@ void SolarEdgeAPI::GetMeterDetails()
162163
if (ActHourMin - 60 > sunSet)
163164
return;
164165

165-
time_t atime_min5 = atime - 360;
166+
time_t atime_min5 = atime - 600; //minus 10 minutes
166167
struct tm ltime_min5;
167168
localtime_r(&atime_min5, &ltime_min5);
168169

www/app/HardwareController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3320,7 +3320,7 @@ define(['app'], function (app) {
33203320
}
33213321
else if (data["Type"].indexOf("SolarEdge via") >= 0) {
33223322
$("#hardwarecontent #hardwareparamssolaredgeapi #siteid").val(data["Mode1"]);
3323-
$("#hardwarecontent #hardwareparamssolaredgeapi #apikey").val(data["Username"]);
3323+
$("#hardwarecontent #hardwareparamssolaredgeapi #serial").val(data["Username"]);
33243324
$("#hardwarecontent #hardwareparamssolaredgeapi #apikey").val(data["Password"]);
33253325
}
33263326
else if (data["Type"].indexOf("Philips Hue") >= 0) {

www/html5.appcache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# ref 1137
2+
# ref 1138
33

44
CACHE:
55
# CSS

0 commit comments

Comments
 (0)