DOI: 10.3390/urbansci10080445 ISSN: 2413-8851

From Hourly Irradiance Discrepancy to Day-Ahead Photovoltaic Energy: Evaluating Free Weather APIs for Urban Energy Management

Matej Cenky, Jozef Bendik, Peter Janiga

Freely accessible weather APIs are an attractive input for photovoltaic (PV) power prediction, yet how their reference-based error carries through—under temporal aggregation—into day-ahead PV energy is rarely quantified before model development. This study audits eight freely accessible weather-data services—seven forecast services and the Meteostat observational archive—and finds that, for the endpoints, subscription tiers, and collection period evaluated here, only two of the forecast services expose hourly global horizontal irradiance (GHI), while a third advertised irradiance field returns empty—itself a material result for municipal integrators. The two irradiance-capable services are propagated through a common physical PV model of the 548 kWp east–west rooftop plant being built on a university campus in Bratislava, Slovakia, against independent references (CAMS irradiance; NASA POWER temperature and wind). Throughout, “error” denotes discrepancy against the reference, not measurement truth. Over a common 62-day spring–summer window, the day-ahead daily-energy mean absolute error (MAE, relative to mean reference daily energy) is 10–11% for both sources; Open-Meteo’s winter-inclusive own window raises its value to about 13%. On the matched window, Open-Meteo has the lower hourly GHI RMSE (121 vs. 128 W·m−2), yet this advantage does not carry through to day-ahead energy—the point-estimate ordering even changes—and neither matched-window difference is statistically resolved. Because daily aggregation rewards low bias over low scatter, this ordering change is already present in daily GHI energy—before the PV conversion—so hourly irradiance accuracy alone does not determine day-ahead energy. Propagated input-data auditing is therefore an advisable step before ML-based PV forecasting and day-ahead scheduling of urban distributed PV.

More from our Archive