the colum is “timestamp” type. Default value is “CURRENT_TIMESTAMP” so on every INSERT the mysql db inserts the current timestamp.
The macro “timefilter” calculates the 1 missing hour. In SQL it starts from 01:00:00 and not from 00:00:00
I have bypassed this macro using the following:
SELECT
time AS "time",
'Außentemperatur' AS metric,
value
FROM vitocal_aussentemperatur_0034
WHERE
time >= $__timeFrom() AND time <= $__timeTo()
ORDER BY time
with this statement the sql query is correct and the result shows the missing hour between 00 and 01.
I had the same problem but I’m pretty sure that your values aren’t missing, they are just one hour in future.Please correct me if it isn’t like that.
Try
SELECT
UNIX_TIMESTAMP(time) AS “time”,
‘Außentemperatur’ AS metric,
value
FROM vitocal_aussentemperatur_0034
WHERE
time >= __timeFrom() AND time <= __timeTo()
ORDER BY time