openclimatefix / PVConsumer

Consumer PV data from various sources
Apache License 2.0
3 stars 1 forks source link

Aternative zeros #26

Closed peterdudfield closed 2 years ago

peterdudfield commented 2 years ago

Describe the bug Alternating zeros from pvoutput.org

Screenshot 2022-06-08 at 09 23 14

but no zeros in pvoutput.org - https://pvoutput.org/intraday.jsp?id=45118&sid=45118&dt=20220607&gs=0&m=1

To Reproduce

select * from pv_yield
join pv_system on pv_yield.pv_system_id = pv_system.id
where pv_system.pv_system_id = 45118
and datetime_utc> '2022-06-01'
order by datetime_utc

Expected behaviour No zeros, in the day time

Additional context Add any other context about the problem here.

peterdudfield commented 2 years ago
from pvoutput import PVOutput
from datetime import datetime

pv =PVOutput()
s =pv.get_system_status(pv_system_ids=[6964],date=datetime(2022,6,8),use_data_service=True,timezone="Europe/London")
JackKelly commented 2 years ago

Some PV systems on PVOutput.org only report data every 15 mins or every 30 mins. Is the issue that we're "filling" those missing timesteps with zeros?

peterdudfield commented 2 years ago

Some PV systems on PVOutput.org only report data every 15 mins or every 30 mins. Is the issue that we're "filling" those missing timesteps with zeros?

I found it, its a bug wiht pvoutput.org. Now solved with https://github.com/openclimatefix/PVConsumer/pull/27