Output of otherdevices_lastupdate in LUA format?

Post Reply
schulpr
Posts: 116
Joined: Thursday 01 January 2015 10:10
Target OS: NAS (Synology & others)
Domoticz version: Beta
Contact:

Output of otherdevices_lastupdate in LUA format?

Post by schulpr » Thursday 01 December 2016 19:46

Hello,

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

Thanks for the help!

Rob

stlaha2007
Posts: 437
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Output of otherdevices_lastupdate in LUA format?

Post by stlaha2007 » Monday 05 December 2016 15:49

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests