Photovoltaic electricity production trend

Returns the electricity production trend of the municipal photovoltaic plants in Trnava over the selected period (increasing, decreasing, no trend) and the percentage change between the first and last value. With period "day" hourly values are evaluated, otherwise daily ones.

Publisher
Chief Executive's Office, City of Trnava

Format
API JSON

License
CC BY 4.0

Update frequency
Hourly

Last modified
3. 11. 2026

Download data

Parameters

{
  "from": "2026-10-13T00:00:00.000Z",
  "to": "2026-10-14T00:00:00.000Z",
  "period": "day"
}
from – start of the time interval, ISO 8601 (required)
to – end of the time interval, ISO 8601 (required)
period – day (hourly values), week, month (daily values); optional

Request

POST https://opendata.trnava.sk/api/datasets/v2/smart-metering/production-trend

Answer

{
  "ElectricityProduction": {
    "trend": "decreasing",
    "change": -31
  }
}
ElectricityProduction – measurement type (electricity production)
ElectricityProduction.trend – trend direction based on linear regression: increasing, decreasing, no-trend
ElectricityProduction.change – change between the first and last value as a percentage of the value range (min–max) in the interval, -100 to 100

Request

GET https://opendata.trnava.sk/api/datasets/v2/smart-metering/production-trend?outputType=csv

Answer

"ElectricityProduction.trend","ElectricityProduction.change"
"decreasing",-31
ElectricityProduction – measurement type (electricity production)
ElectricityProduction.trend – trend direction based on linear regression: increasing, decreasing, no-trend
ElectricityProduction.change – change between the first and last value as a percentage of the value range (min–max) in the interval, -100 to 100

Request

GET https://opendata.trnava.sk/api/datasets/v2/smart-metering/production-trend?outputType=xml

Answer

<root><ElectricityProduction><trend>decreasing</trend><change>-31</change></ElectricityProduction></root>
ElectricityProduction – measurement type (electricity production)
ElectricityProduction.trend – trend direction based on linear regression: increasing, decreasing, no-trend
ElectricityProduction.change – change between the first and last value as a percentage of the value range (min–max) in the interval, -100 to 100