Output of otherdevices_lastupdate in LUA format?

Moderator: leecollings

Post Reply
schulpr
Posts: 137
Joined: Thursday 01 January 2015 9:10
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Output of otherdevices_lastupdate in LUA format?

Post 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
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Output of otherdevices_lastupdate in LUA format?

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest