If you change your SQL QUERY to only return the timestamp
and value
you can feed it into this function & it will do most of the work for you. NOTE: it expectes timestamp
not Timestamp
- you can either edit the function or change the query (e.g. select Timestamp as timestamp
)