Output Messages
The application sends two types of messages: a heartbeat message used for monitoring and the solar production report which is sent only in premises with PV systems.
Solar production report mesage
This message is sent every hour and contains 5-minute production estimates for the previous hour and 5-minute forecasting estimates for the next hour. The message payload is a json with the following fields:
{
"ts":1683813600,
"tz":-240,
"cl":"low",
"prod":[1468,1399,1505,1571,1572,1584,1596,1643,1586,1594,1619,1617],
"fc":[1521,1534,1542,1542,1543,1528,1521,1533,1529,1519,1533,1537]
}where
ts [int]: The UTC timestamp labelling the first production value, i.e. the start of the first 5-minute window.
tz [int]: The timezone offset from UTC (in minutes).
cl [string]: The consistency of logged 1-minute data for the previous 30 days (low, medium, and high)
prod [int array]: The solar production of the past hour. Array of 12 values, one for every 5-minute window, left-aligned. Element i (0-based) is labelled ts + 300i seconds and covers the interval [ts + 300i, ts + 300(i+1)) seconds. Invalid or missing measurements are set as -1, the rest of the values are measured in Watts.
fc [int array]: The solar forecasting of the next hour. Array of 12 values, left-aligned, continuing directly after the last
prodwindow. Element i is labelled ts + 3600 + 300i seconds and covers the interval [ts + 3600 + 300i, ts + 3600 + 300(i+1)) seconds. Windows that cannot be forecasted are set as -1, the rest are measured in Watts.
Heartbeat message
The application sends a regular message to the upstream system, in order to confirm that it is running and functioning correctly. The message format and a description of each field are presented below:
where
ver [str]: The current application version.
day [int]: The number of days that the application has been running in total.
rc [int]: The number of restarts of the application.
tz [int]: The timezone offset from UTC (in minutes).
tid[int]: The timezone id, retrieved from the meter (-1 if not found).
dtz[bool]: True if the timezone is the default (GMT-8), false if it is read from the meter.
mc [int]: The number of power measurements for this day. Range [0-1440].
dd [int]: The number of solar detection days in the past week used during training. Range [0-7].
vc [int, optional]: The minimum number of values per minute used for the calculation of a typical solar profile used internally by the application. Range [2-28]. Only included if dd >= 2.
Last updated
Was this helpful?

