ndejong / solaredge-interface

The SolarEdge Interface provides both a command-line interface and a Python module interface to interact with the SolarEdge API service.
https://solaredge-interface.readthedocs.io
BSD 2-Clause "Simplified" License
14 stars 5 forks source link

some readouts missing depending on arguments #1

Open Deepdiigger opened 3 years ago

Deepdiigger commented 3 years ago

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

MediumFidelity commented 3 years ago

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.