(25.02.2018, 09:53)Domoticatorino Wrote: Hi, great job.
in you script you wrote:
name, csv = trend_export(name, dates, 'csv', 'unixepoch')
but I think you should complete as follow:
name, data, csv = trend_export(name, dates, 'csv', 'unixepoch').
In this way I received the file by mail. GREAT.
But unfortunatey time stamp is not human readable.
I've updated above library a few times yesterday so maybe you has not last version and please check also last version of examples. Change return values was one of the last change. Now I'm thinking about add also some filter function which can be created by user e.g. check if value is from Monday and if then find min value from all Mondays from the specified period.
Yes, because you've specified 'unixepoch' Delete it and you will see human readable format.