Page 1 of 1

Output of otherdevices_lastupdate in LUA format?

Posted: Thursday 01 December 2016 18:46
by schulpr
Hello,

Is it possible to retrieve or convert the result of "otherdevices_lastupdate" in the lua notation like "1480614240"?

Thanks for the help!

Rob

Re: Output of otherdevices_lastupdate in LUA format?

Posted: Monday 05 December 2016 14:49
by stlaha2007
hi Rob,

What's the value of Last Seen of that device? It looks like a Unix Timestamp....

There are basic examples (google) how to convert unix-timestamps back to Human Readable (Formatted) strings.

Just basic info, as i'm not a fan of LUA at the moment. But perl/php/bash do have them, and recently a forummember gave me some pointers about libraries for LUA, need to investigate it.

I'm sure you'll find it.