Using the givenergy API to get half hour data, but the data for the 23:30 slot nearly always (95% of the time) comes back empty (all power values exactly 0). Not sure if it’s a problem with the battery starting to charge (set for 23:30 at start of cheap tariff) or the firmware/API not returning the last record of the day.
Has anyone else seen this sort of thing? Have any ideas??
I’ve been using the API this week to download historical whole days info from the inverter, not seen any issues with data gaps at all.
The inverter doesn’t have any concept of half hour slots, it just has data uploaded every 5 minutes-ish from the inverter, so for example around 23:15 onwards I have records at:
|2023-09-01 23:16:19|10.7|3423|0|4522.4|12.7|3130.7|8.5|3238.7|0.4|36.9|1.2|4451.3|9.3|7.7|2839.1|
|2023-09-01 23:21:20|10.7|3423|0|4522.4|12.7|3130.7|8.5|3238.7|0.4|36.9|1.2|4451.3|9.3|7.8|2839.2|
|2023-09-01 23:26:22|10.7|3423|0|4522.5|12.7|3130.7|8.6|3238.8|0.4|36.9|1.2|4451.3|9.3|7.9|2839.3|
|2023-09-01 23:31:25|10.7|3423|0|4522.6|12.7|3130.7|8.7|3238.9|0.4|36.9|1.2|4451.3|9.3|8|2839.4|
|2023-09-01 23:37:29|10.7|3423|0|4522.7|12.7|3130.7|8.8|3239|0.4|36.9|1.2|4451.3|9.3|8.1|2839.5|
|2023-09-01 23:50:34|10.7|3423|0|4522.9|12.7|3130.7|9|3239.2|0.4|36.9|1.2|4451.3|9.3|8.3|2839.7|
|2023-09-01 23:50:44|10.7|3423|0|4522.9|12.7|3130.7|9|3239.2|0.4|36.9|1.2|4451.3|9.3|8.3|2839.7|
|2023-09-01 23:55:39|10.7|3423|…
Hi Geoffrey.
Thanks for the reply - I’m using the API to request half hour data, so I can use that for cost calculations with smart tariffs.
See:
https://givenergy.cloud/docs/api/v1#energy-flow-data-POSTinverter--inverter_serial_number--energy-flows
for the docs.
But a look at the raw data might help figure out if it’s an inverter firmware problem or an API bug.
Can you confirm which endpoint you used for the data you showed?
Cheers
Alvin
Cheers
Alvin
I’m using GET on the data-points API, vis:
https://api.givenergy.cloud/v1/inverter/$SerialNum/data-points/$DatePick"?"page=$page"&"pageSize=$pageSize -Headers $headers_Giv_En
Is it a problem with page size your retrieval maybe? I’m using page size 1000 which is enough to get all rows for a day back in a single page
There are only 48 records in a day for 1/2 hr data, so no problem getting several days in one call.
If I get the fine grain data using data-points end point (needs page size slightly >1000) it shows meaningful data in the 23:30 to midnight period (approx 5 min samples from 23:33:45 to 23:58:54 for example).
So I think that shows clearly that it must be a problem with their API when they attempt to calculate the power flows.
I’ll shift battery charging until after midnight to reduce the size of the error until they fix it, or I CBA to do a DIY calculation from the fine grain data.
Thanks for taking the time to comment on my post!
No problem.
I’d suggest you ping an email to GivEnergy support or maybe @TheDragon_Giv can pass the API issue on to the right team
Haven’t made use of API query, but seeing similar behaviour in the mobile app where 23:30 - 00:00 is missing from the “energy graph” and also looks to be missing from the import / export fields under “tariff information”, which is throwing out my estimated daily costs as I tend to export any surplus from battery 2300-0000, so missing the export data for 30mins isn’t ideal.
Also looks to be intermittent, affects a few days this week, but not last week
Thanks for the input - suggests there is a real issue, not just me!
I’ve pinged support, but no answer yet.
Had another look this morning - over the last seven days two are missing 2330-0000 data, although looking back further into late February there are also a few days where 1730-1930 or 2030-2200 is also blank.