API getstatus returns blank consumption data for my system

I have an account with active donation.
Using the Web interface I can see good data for Energy Used against my system.

However the Energy Consumption field returns NaN with this example POST request.

Request:
curl -v -d “d=20220601&h=1&limit=288&ext=0&sid1=SYSTEM_ID” -H “X-Rate-Limit: 1” -H “X-Pvoutput-Apikey: API_KEY” -H “X-Pvoutput-SystemId: SYSTEM_ID” http://pvoutput.org/service/r2/getstatus.jsp

Returns:
20220601,23:55,47898,2.456,0,0,0.000,NaN,NaN,NaN,NaN;20220601,23:50,47898,2.456,0,0,0.000,NaN,NaN,NaN,NaN

There has been a similar topic that mentions the consumption data is only available for your own system, but API_KEY and SYSTEM_ID match my account correctly.

Thanks for any assistance.

Generally it is not possible to view consumption for an external system by using “sid1”

For your own system, remove “sid1” from the request and consumption should show.

1 Like

Thank you for your response, removing sid1 parameter works and does show consumption.

curl -v -d “d=20220601&h=1&limit=288&ext=0” -H “X-Rate-Limit: 1” -H “X-Pvoutput-Apikey: API_KEY” -H “X-Pvoutput-SystemId: SYSTEM_ID” https://pvoutput.org/service/r2/getstatus.jsp

Returns:
20220601,23:55,47898,2.456,0,0,0.000,79754,2559,NaN,NaN;20220601,23:50,47898,2.4
56,0,0,0.000,79754,2506,NaN,NaN;20220601,23:45,47898,2.456,0,0,0.000,79754,2503,
NaN,NaN;20220601,23:40,47898,2.456,0,0,0.000,79754,2503,NaN,NaN;20220601,23:35,4
7898,2.456,0,0,0.000,79754,2508,NaN,NaN;20220601,23:30,47898,2.456,0,0,0.000,797
54,2542,NaN,NaN;20220601,23:25,47898,2.456,0,0,0.000,79754,2636,NaN,NaN

This provides what I need.
Strangely though the Power Consumption (2559 watt) matches the web page at 23:55 but Energy Consumption (79754 watt hours) does not.

The 79754 value corresponds to 23:25 on the web page and is not increased in the returned data while the web page shows 81015 at 23:55.
All the values before 23:25 are correct.
Similar pattern applies to other dates.
Energy Generation matches perfectly.

Get Status should return the same data as the web page now.

Yes, all of the values do match the web page now.
Thank you.