Hello,
Is it possible to retrieve or convert the result of "otherdevices_lastupdate" in the lua notation like "1480614240"?
Thanks for the help!
Rob
Output of otherdevices_lastupdate in LUA format?
Moderator: leecollings
-
- Posts: 370
- Joined: Monday 05 October 2015 10:16
- Target OS: -
- Domoticz version:
- Contact:
Re: Output of otherdevices_lastupdate in LUA format?
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest