This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Reading trends from RRD in Lua
#12
(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'Wink Delete it and you will see human readable format.
Reply


Messages In This Thread
Reading trends from RRD in Lua - by buuuudzik - 06.04.2017, 16:53
RE: Reading trends from RRD in Lua - by buuuudzik - 25.02.2018, 10:13
RE: Reading trends from RRD in Lua - by iJAF - 07.07.2022, 17:09

Forum Jump: