ndejong/solaredge-interface

some readouts missing depending on arguments

Opened this issue · 1 comments

Depending on the start and endtime some rows are missing.
manually downloading the data gives complete data. Values are Ok.
Here is an example.
Example 1 complete Day
Example 2 only the hours were the data is missing.

sTime = "2021-04-28 00:00:00"
eTime = "2021-04-29 00:00:00"
meter = api.get_site_power_details(siteid, sTime, eTime).pandas

,Consumption,Production,FeedIn,Purchased,SelfConsumption
2021-04-28 00:00:00+02:00,414.87054,269.2262,0.0,414.87054,0.0
2021-04-28 02:30:00+02:00,292.0685,269.2262,0.0,292.0685,0.0
2021-04-28 02:45:00+02:00,239.43077,0.0,0.0,239.43077,0.0
2021-04-28 03:00:00+02:00,214.84138,0.0,0.0,214.84138,0.0
2021-04-28 03:15:00+02:00,234.83218,0.0,0.0,234.83218,0.0
.....

sTime = "2021-04-28 00:00:00"
eTime = "2021-04-28 03:00:00"
meter = api.get_site_power_details(siteid, sTime, eTime).pandas

,SelfConsumption,Production,Purchased,Consumption,FeedIn
2021-04-28 00:00:00+02:00,0.0,0.0,414.87054,414.87054,0.0
2021-04-28 00:30:00+02:00,0.0,0.0,235.65666,235.65666,0.0
2021-04-28 00:45:00+02:00,0.0,0.0,247.18236,247.18236,0.0
2021-04-28 01:00:00+02:00,0.0,0.0,269.16855,269.16855,0.0
2021-04-28 01:15:00+02:00,0.0,0.0,282.6468,282.6468,0.0
2021-04-28 01:30:00+02:00,0.0,0.0,220.07762,220.07762,0.0
2021-04-28 01:45:00+02:00,0.0,0.0,196.75935,196.75935,0.0
2021-04-28 02:00:00+02:00,0.0,0.0,295.37402,295.37402,0.0
2021-04-28 02:15:00+02:00,0.0,0.0,372.43823,372.43823,0.0
2021-04-28 02:30:00+02:00,0.0,0.0,292.0685,292.0685,0.0
2021-04-28 02:45:00+02:00,0.0,0.0,239.43077,239.43077,0.0

I've seen this issue too, it's only for pandas/CSV output (CSV is created from pandas, so it's probably something with pandas). At first it appeared to due to date boundaries, but I still noticed some "holes" in the CSV output. I switched to JSON and everything is there.