Meteo for Energy - PV - GET Real time series

API service to retrieve hourly energy generation data

The energy generation (in kWh) is required to be uploaded to make accurate forecasts (see example link). These data is stored on Meteo for Energy databases and also available for the user in case third party services require this information.

This example will show:

Now, we can start preparing our request of energy generation for a site.

The response is a JSON that is converted to a DataFrame, but all the types are not correctly parsed (datetimes are objects). So we need to define correctly the datetime columns and define it on our desired time zone (List of tz database time zones), as it is localized in UTC time zone.

Similarly, we can also use Unix Epoch Time to make the same transformation

Note that we haven't use the response datetime_local directly as some timezones have Daylight Saving Time (DST) activated and some datetimes might repeat or not appear. To avoid raising errors, it's better to proceed as mentioned.

Plot time

It's time to plot the information requested for data validation.