Photovoltaic electricity production summary
Returns the total amount of electricity (kWh) produced by the municipal photovoltaic plants in Trnava over the selected period, summed over all devices or for a selected device. Calculated from daily totals.
Publisher
Chief Executive's Office, City of Trnava
Format
API JSON
License
CC BY 4.0
Update frequency
Daily
Last modified
3. 11. 2026
Download data
- API JSON Sample
- CSV Sample
- XML Sample
- API Documentation
Parameters
{
"from": "2026-10-12T22:00:00.000Z",
"to": "2026-10-13T22:00:00.000Z",
"period": "day"
}
from – start of the time interval, ISO 8601 (required); daily totals start at local midnight
to – end of the time interval, ISO 8601 (required)
period – day, week, month (optional, does not affect the result – daily totals are always summed)
itemId – photovoltaic plant identifier (optional, without it the sum of all devices is returned)
type – array of measurement types (optional), only ElectricityProduction in Trnava
Request
POST https://opendata.trnava.sk/api/datasets/v2/smart-metering/production-summary
Answer
{
"ElectricityProduction": 1976.6299999999999
}
ElectricityProduction – total electricity produced in the interval (kWh); each measurement type with non-zero production has its own field
Request
GET https://opendata.trnava.sk/api/datasets/v2/smart-metering/production-summary?outputType=csv
Answer
"ElectricityProduction"
1976.6299999999999
ElectricityProduction – total electricity produced in the interval (kWh); each measurement type with non-zero production has its own field
Request
GET https://opendata.trnava.sk/api/datasets/v2/smart-metering/production-summary?outputType=xml
Answer
<root><ElectricityProduction>1976.6299999999999</ElectricityProduction></root>
ElectricityProduction – total electricity produced in the interval (kWh); each measurement type with non-zero production has its own field