Hi at all!
I’ve got a MySQL Database with the following rows:
id | channel_id | timestamp | value
1188122 | 16 | 1509134552863 | 1
1188117 | 16 | 1509134355607 | 1
1188116 | 16 | 1509134306097 | 1
1188115 | 16 | 1509134258030 | 1
1188113 | 16 | 1509134217868 | 1
1188106 | 16 | 1509134177735 | 1
1188104 | 16 | 1509134137744 | 1
1188101 | 16 | 1509134098104 | 1
1188097 | 16 | 1509134058869 | 1
1188095 | 16 | 1509134020423 | 1
1188091 | 16 | 1509133982958 | 1
1188088 | 16 | 1509133945493 | 1
1188085 | 16 | 1509133908074 | 1
1188079 | 16 | 1509133870714 | 1
1188078 | 16 | 1509133815953 | 1
the value is always 1 and equals 1/75 kW
with the following querry I got this graph:
SELECT
cast(timestamp/1000 as signed integer) as time_sec,
value as value,
"Stromverbrauch" as metric
FROM data
WHERE cast(timestamp/1000 as signed integer) > $__unixEpochFrom() and cast(timestamp/1000 as signed integer) < $__unixEpochTo() and
channel_id = 16
ORDER BY timestamp ASC
is there any chance to get a graph like this:
Cheers!
Karl